Video Summary
In this video, I show you how to create a player tracking compass in Minecraft Java Edition that always points toward a player’s location. The method uses a command block with the execute and set world spawn commands to continuously update the spawn point to match a player’s coordinates, causing any compass to follow that player’s movement. This simple technique allows players to track each other’s locations in real-time using just a standard compass.
“`html
Hey everybody, it’s UnderMyCap and welcome back to another video! Today I’m going to be showing you how to make a player tracking compass in Minecraft Java Edition. If you want the Bedrock Edition version, I’ll be leaving a link in the description as that video should be coming out soon, but today I’m purely going to be focusing on how to do it on Java Edition. Basically, how it works is the compass will always point towards the world spawn. The world spawn is where you first spawn when you enter a world. If we keep changing that with the Set Spawn command, it will mean that the compass will always be pointing towards that point. With that being said, let’s set that up for a player! First, you’ll want to give yourself a command block. To do that, simply use the give command to get one and then place it on the floor. Once you’ve done that, you’re going to type in the following command: Replace [playerName] with whatever player you want to track. What this command does is execute the command at the chosen player and run the Set World Spawn command using their coordinates. This means the world spawn point is constantly being updated to match the player’s current location, which is exactly what makes the compass track them! If you want to get rid of the constant command block output messages cluttering your screen, it’s simple! Just use the following game rule command: Now the output won’t show, but you’ll know that the command is still running and setting the world spawn to the tracked player’s position. Once everything is set up, if you open your inventory and search for a compass, you’ll be able to see it updating in real time. As the tracked player moves around, the compass needle will follow them, which is really cool! Even when running to different areas, the compass will update and continue to point directly towards the tracked player. If you’d prefer to follow along visually, you can watch the full video below! Watch the full tutorial on YouTube And that’s basically it! It’s actually pretty simple. I thought this was going to be a much more complex video but it really isn’t. If you did enjoy this, please leave a like on the video and don’t forget to subscribe — that would be greatly appreciated! I’m a very small channel and every bit of support helps. Thank you so much and I can’t wait to see you in the next one!How Does a Player Tracking Compass Work?
Setting Up the Command Block
/execute at [playerName] run setworldspawn ~ ~ ~Cleaning Up the Command Block Output
/gamerule commandBlockOutput falseWatching It in Action
Watch the Video
Wrapping Up





