This datapack uses the compass to track other players in your world
Made for Minecraft Java Edition 1.18+
https://github.com/RedSparr0w/player_tracker/releases/latest/download/player_tracker.zip
The closest player to you will be tracked by default. Players can be tracked in the Overworld, Nether and End dimensions.
/trigger pt.menu
/trigger pt.info
While holding the tracking compass in your main hand
Look towards the ground
Right click
/trigger pt.player_list
/trigger pt.get_compass