Specsight on Product Hunt We support a Polish startup Vote
Discord
Specsight on Product Hunt minecraft.pl supports a Polish startup Specsight shows what changed after every release. Please vote and comment. Vote

/locate command

The /locate command finds the nearest structures (villages, fortresses, temples) or biomes and shows their coordinates and distance. It's an essential exploration tool when you play with cheats.

Information OP 2 since 1.11

Syntax

Java and Bedrock Edition

/locate structure <structure>

Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.

Parameters

Parameter Type Required Description
structure/biome subcommand Yes "structure" searches for structures, "biome" searches for biomes (Java 1.19+).
structure/biome ID ID Yes The ID of a structure (for example village, fortress, stronghold or ancient_city) or a biome (for example cherry_grove or deep_dark).

Usage examples

Example 1
/locate structure fortress

Finds the nearest Nether fortress. It's key to getting blaze rods and blaze powder.

Example 2
/locate structure village

Finds the nearest village. Trading with villagers is one of the most important sources of resources.

Example 3
/locate structure stronghold

Finds the nearest stronghold with an End portal. It's faster than throwing Eyes of Ender.

Example 4
Java
/locate biome cherry_grove

Searches for the nearest cherry grove biome, one of the rarest and most beautiful biomes.

Example 5
/locate structure ancient_city

Finds the nearest ancient city in the deep dark. Watch out for the Warden.

Tips and tricks

*

In Java Edition, the /locate result is clickable in chat: click the coordinates to put a /tp command into the chat box.

*

/locate structure trial_chambers (1.21+) finds trial chambers, with their new mobs and loot.

*

In the Nether, /locate structure fortress finds a Nether fortress and /locate structure bastion_remnant finds a bastion remnant (with piglins and gold loot).

*

Bedrock uses slightly different syntax: /locate structure <type>, without the minecraft: prefix.

Related commands

/teleport (/tp)

Teleports a player or entity to specific coordinates, to another player or between dimensions. It...

/seed

Shows the seed of the current world. The seed is the number that determines how the terrain, stru...

/execute

The most powerful command in Minecraft. It runs other commands in a modified context: as another ...

/fillbiome

Changes the biome in a chosen area without touching the blocks. The new biome affects things like...

Frequently asked questions

How do you use the /locate command in Minecraft?

Open the chat with the T or / key and type the command using this syntax: /locate structure <structure>. The /locate command finds the nearest structures (villages, fortresses, temples) or biomes and shows their coordinates and distance. It's an essential exploration tool when you play with cheats.

What permissions does /locate require?

The /locate command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.

Does /locate work in Bedrock Edition?

Yes, the /locate command works in both Java Edition and Bedrock Edition, with similar syntax.