Give a Compass
Get a compass pointing to world spawn
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Gives a compass that always points to the world spawn point. Pair it with a lodestone to make it point anywhere you choose instead — see the lodestone command. In the Nether it spins uselessly unless lodestone-bound.
/give @p compass16 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- Follow the needle to return to world spawn.
- Right-click a lodestone with it to bind it to that spot instead.
Related commands
Get a diamond sword pre-enchanted with Sharpness V
/give @p diamond_sword[enchantments={sharpness:5}]Get an enchanted book with Mending
/give @p enchanted_book[stored_enchantments={mending:1}]Get a pickaxe that never breaks
/give @p diamond_pickaxe[unbreakable={}]Get a netherite sword pre-enchanted with Sharpness V
/give @p netherite_sword[enchantments={sharpness:5}]