/locate Command in Minecraft Java Edition

Find Biomes, Structures, and Points of Interest

Java EditionWorld & BlocksPermission: Level 2Bedrock version →

The /locate command helps you find the nearest biome, generated structure, or point of interest in your world. You need permission level 2, which means cheats must be turned on in single-player or you need operator status on a server.

Players use this command to quickly find specific areas like desert pyramids or bastion remnants without wandering around for hours. You can search for a single entry ID or use a tag starting with a hash symbol to search for a group of targets at once.

Syntax (Java 26.3, 3 forms)

  1. /locate biome <biome>
  2. /locate poi <poi>
  3. /locate structure <structure>

The forms you will use most

/locate biome <biome>
Finds the nearest biome that matches the specified biome ID or tag.
/locate poi <poi>
Finds the nearest point of interest that matches the given entry ID or tag.
/locate structure <structure>
Finds the nearest generated world structure that matches the specified structure ID or tag.

Arguments

ArgumentTypeWhat it means
<biome>entry or #tag
worldgen/biome
An entry ID or a #tag from worldgen/biome that specifies which biome to find.
<poi>entry or #tag
point of interest type
An entry ID or a #tag for a point of interest type that you want to locate.
<structure>entry or #tag
worldgen/structure
An entry ID or a #tag from worldgen/structure that tells the game which structure to search for.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.19 Syntax changed.
    + /locate biome <biome>+ /locate poi <poi>+ /locate structure <structure>− /locate <structure>
  2. 1.18.2 Syntax changed.
    + /locate <structure>− /locate bastion_remnant− /locate buried_treasure− /locate desert_pyramid− /locate endcity− /locate fortress− /locate iglooand 12 more
  3. 1.16 Syntax changed.
    + /locate bastion_remnant+ /locate buried_treasure+ /locate desert_pyramid+ /locate endcity+ /locate fortress+ /locate igloo− /locate Buried_Treasure− /locate Desert_Pyramid− /locate EndCity− /locate Fortress− /locate Igloo− /locate Jungle_Pyramidand 21 more
  4. 1.14 Syntax changed.
    + /locate Pillager_Outpost
  5. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Bedrock Edition also has the /locate command available for finding features in your world.

See /locate in Bedrock Edition →

FAQ

Why does /locate <structure> not work anymore?

In Minecraft 1.19, the command syntax was updated to unify different search types, so you must now type /locate structure <structure>, /locate biome <biome>, or /locate poi <poi>.

What permission level do I need to use /locate?

You need permission level 2, which means you must be an operator on a multiplayer server or have cheats enabled in your single-player world.

Can I search for a group of biomes or structures at the same time?

Yes, since version 1.18.2 for structures and 1.19 for biomes and points of interest, you can type a #tag instead of a single entry ID to find the nearest match from a tag group.

Related commands

/clone/difficulty/fill/fillbiome/forceload/gamerule/place/seed/setblock/setworldspawn/time/waypoint/weather/worldborder

More on 9Minecraft