Turn Off the Locator Bar
Hide the player locator bar HUD element. Run: `/gamerule locator_bar false`. Disables the locator bar — the HUD element added in Java 1.21.6 (Spring to Life drop) that shows nearby player positions. Run /gamerule locator_bar true to re-enable it. Useful on PvP servers where stealth matters, or simply to declutter the HUD. Works on Java Edition 26.2. Last verified June 2026.
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026/gamerule locator_bar false- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T) on Java Edition 1.21.6 or later.
- Paste /gamerule locator_bar false and press Enter.
- The locator bar disappears from all players HUDs.
- Run /gamerule locator_bar true to restore it.
Frequently asked questions
Does Turn Off the Locator Bar work on Bedrock Edition?
The locator_bar gamerule is Java Edition only, added in 1.21.6.
Do you need OP or cheats enabled to use Turn Off the Locator Bar?
Yes -- you need operator permissions (OP) on a server, or cheats enabled in your world settings (Java: open to LAN with cheats on; Bedrock: enable cheats in world settings).
Can Turn Off the Locator Bar be used in a command block?
Yes -- paste the command into a command block and activate it with a button or redstone signal. Remove the leading slash when using a command block.
Does Turn Off the Locator Bar work in multiplayer?
Yes -- the command works the same in multiplayer as in singleplayer. Operator permissions may be required depending on your server settings.
Related commands
God Mode (Resistance + Regeneration)
Become nearly invincible
Set World Border Size
Create or resize the world border boundary
Track Player Kills on a Scoreboard
Automatically count how many players each player kills
Create a Team With Friendly Fire Off
Make a team whose members can't hurt each other
Scatter All Players Randomly
Spread all players across a large area
Strike Lightning On All Players
Summon lightning bolts on every player at once
Need something different?
Customize this command in the /execute builder — choose your own options and copy the result.
Learn more
📖Minecraft Commands Not Working -- How to Fix
Troubleshooting guide for Minecraft commands that show errors or do nothing -- covers cheats off, wrong edition, syntax errors, OP permissions, and version changes.