Skip to content
[/craft]

Give a Compass

Get a compass pointing to world spawn

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Gives 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 compass
16 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. Follow the needle to return to world spawn.
  4. Right-click a lodestone with it to bind it to that spot instead.

Related commands

Get a pair of elytra wings

/give @p elytra

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 totem that saves you from death

/give @p totem_of_undying

Get a netherite sword pre-enchanted with Sharpness V

/give @p netherite_sword[enchantments={sharpness:5}]