locator_bar
booleanJava 26.2 onlyControls the locator bar UI element added in Java Edition 1.21.6. The locator bar shows the positions of nearby players on your HUD.
Enable locator_bar
The locator bar is visible in the HUD, showing nearby player positions.
Java
/gamerule locator_bar trueDisable locator_bar
The locator bar is hidden. Players must use maps or other methods to find each other.
Java
/gamerule locator_bar falseDefault: true. Restore with /gamerule locator_bar true
What locator_bar does
Controls the locator bar UI element added in Java Edition 1.21.6. The locator bar shows the positions of nearby players on your HUD.
locator_bar is a Java Edition-only gamerule and is not available in Bedrock.
Frequently asked questions
- What version added the locator bar?
- Added in Java Edition 1.21.6 (Spring to Life drop).
- Is locator_bar in Bedrock?
- Bedrock has a locatorbar rule but it is string-typed (not boolean). The Java snake_case name is locator_bar since snapshot 25w44a.
- Does turning off the locator bar affect PvP?
- Potentially — the locator bar makes it easier to find other players. Disabling adds a stealth element to PvP.