Find Nearest Biomes and Structures in Bedrock
The /locate command finds the nearest specified biome or structure in your current dimension. If the biome or structure does not exist in that dimension, the game prints an error message.
Players and server admins use this command to save time when searching for rare places to explore or build. Because it requires the Game Directors permission level, you must have cheats enabled in your world to run it.
| Argument | Type | What it means |
|---|---|---|
biome | Biome | The Biome ID of the environment type you are looking for. |
useNewChunksOnly | Boolean | A Boolean (true or false) that tells the game whether to search only in new chunks, which defaults to false. |
/locate structure villageFinds the nearest village in the Overworld, including those in chunks you have already explored.
/locate structure stronghold falseSearches all generated and ungenerated chunks to find the closest stronghold.
/locate structure ancient_city trueLocates the nearest ancient city by searching only in new chunks that have not been loaded before.
/locate structure fortressFinds the closest Nether fortress when you run the command while standing in the Nether.
/locate structure end_city trueFinds an unexplored End city in new chunks while you are in the End dimension.
/locate biome desertGives you the coordinates to the closest desert biome in your current dimension.
/locate biome cherry_groveFinds the nearest cherry grove biome so you can gather pink petals and cherry wood.
/locate biome crimson_forestLocates the closest crimson forest biome when you are travelling inside the Nether.
In Minecraft Java Edition, the command also splits into subcommands like /locate biome <biome> and /locate structure <structure>, and it adds a third option called /locate poi <poi> to find points of interest like villager job sites, though Java Edition does not have the useNewChunksOnly argument.
The command only searches inside your current dimension, so it will print an error if you look for an End or Nether location while standing in the Overworld.
Add true at the very end of a structure search command to set the useNewChunksOnly option, which forces the game to ignore chunks you have already visited.
Yes, this command requires the Game Directors permission level, which means cheats must be enabled in your world settings before you can run it.
/clone/daylock/difficulty/fill/fog/gamerule/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather