Compass Target (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.0
Syntax
[the] compass target of %players%Description
The location a player's compass is pointing at. As of Minecraft 1.21.4, the compass is controlled by the resource pack and by default will not point to this compass target when used outside of the overworld dimension.
Examples
# make all player's compasses target a player stored in {compass::target::%player%}
every 5 seconds:
loop all players:
set the loop-player's compass target to location of {compass::target::%%loop-player%}