News
Game
Guides
Downloads
Versions
/locate
COMMANDS WORLD & RULES CHEATS · LEVEL 2 Added in 1.14 or earlier

/locate command in Minecraft

The /locate command finds the nearest structure, biome or point of interest and gives its coordinates and distance. Use it to reach an Ancient City, Trial Chambers or a Cherry Grove without exploring for hours, then click the coordinates to teleport.

Syntax

/locate biome <biome>
/locate poi <poi>
/locate structure <structure>
ArgumentExpectsWhat it does
biomeID or #tag · biomeBiome ID like minecraft:cherry_grove or minecraft:mushroom_fields. Biome tags starting with # also work.
poiID or #tag · point_of_interest_typePoint of interest type, e.g. minecraft:lodestone, minecraft:nether_portal or a job site like minecraft:librarian. Tags like #minecraft:bee_home work too.
structureID or #tag · structureStructure ID like minecraft:ancient_city or minecraft:stronghold, or a tag like #minecraft:village for every village type.

Examples

Find an Ancient City

/locate structure minecraft:ancient_city

Gives the X and Z of the nearest Ancient City; the height shows as ~.

Java 26.3

Nearest village of any type

/locate structure #minecraft:village

The tag covers plains, desert, savanna, snowy and taiga villages in one search.

Java 26.3
The answer in the chat: the nearest Plains Village is at -752, ~, -480, and clicking the coordinates teleports you there Scene setup: Taken with /locate structure minecraft:village_plains; the #minecraft:village tag of this example returns the nearest village of any type. In-game screenshot · Java Edition 26.3

Find a Cherry Grove

/locate biome minecraft:cherry_grove

Returns full coordinates, Y included, and the distance in blocks.

Java 26.3

Find a Nether Fortress from the Overworld

/execute in minecraft:the_nether run locate structure minecraft:fortress

Searches the Nether without leaving; the result is in Nether coordinates.

Java 26.3

Find a lodestone nearby

/locate poi minecraft:lodestone

Finds a placed lodestone close to you, useful to retrace a compass target.

Java 26.3
Interactive tool

Command generator

Fill in the fields, copy the command, paste it in the chat. Syntax checked against Java Edition 26.3.

Turn on JavaScript to use the interactive version.

/locate structure #village

Calculated from the Java Edition 26.3 game files

IDs for /locate structure

Abandoned Campabandoned_camp_bamboo_jungleAncient Cityancient_cityBastion Remnantbastion_remnantBuried Treasureburied_treasureDesert Pyramiddesert_pyramidEnd Cityend_cityIglooiglooJungle Pyramidjungle_pyramidMineshaftmineshaftNether FortressfortressNether Fossilnether_fossilOcean MonumentmonumentOcean Ruinsocean_ruin_coldPillager Outpostpillager_outpostRuined Portalruined_portalShipwreckshipwreckStrongholdstrongholdSwamp Hutswamp_hutTrail Ruinstrail_ruinsTrial Chamberstrial_chambersVillagevillage_desertWoodland Mansionmansion

Structures →

IDs for /locate biome

BadlandsbadlandsBamboo Junglebamboo_jungleBasalt Deltasbasalt_deltasBeachbeachBirch Forestbirch_forestCherry Grovecherry_groveCold Oceancold_oceanCrimson Forestcrimson_forestDappled Forestdappled_forestDark Forestdark_forestDeep Cold Oceandeep_cold_oceanDeep Darkdeep_darkDeep Frozen Oceandeep_frozen_oceanDeep Lukewarm Oceandeep_lukewarm_oceanDeep Oceandeep_oceanDesertdesertDripstone Cavesdripstone_cavesEnd Barrensend_barrensEnd Highlandsend_highlandsEnd Midlandsend_midlandsEroded Badlandseroded_badlandsFlower Forestflower_forestForestforestFrozen Oceanfrozen_oceanFrozen Peaksfrozen_peaksFrozen Riverfrozen_riverGrovegroveIce Spikesice_spikesJagged Peaksjagged_peaksJunglejungleLukewarm Oceanlukewarm_oceanLush Caveslush_cavesMangrove Swampmangrove_swampMeadowmeadowMushroom Fieldsmushroom_fieldsNether Wastesnether_wastesOceanoceanOld Growth Birch Forestold_growth_birch_forestOld Growth Pine Taigaold_growth_pine_taigaOld Growth Spruce Taigaold_growth_spruce_taigaPale Gardenpale_gardenPlainsplainsRiverriverSavannasavannaSavanna Plateausavanna_plateauSmall End Islandssmall_end_islandsSnowy Beachsnowy_beachSnowy Plainssnowy_plainsSnowy Slopessnowy_slopesSnowy Taigasnowy_taigaSoul Sand Valleysoul_sand_valleySparse Junglesparse_jungleStony Peaksstony_peaksStony Shorestony_shoreSulfur Cavessulfur_cavesSunflower Plainssunflower_plainsSwampswampTaigataigaThe Endthe_endWarm Oceanwarm_oceanWarped Forestwarped_forestWindswept Forestwindswept_forestWindswept Gravelly Hillswindswept_gravelly_hillsWindswept Hillswindswept_hillsWindswept Savannawindswept_savannaWooded Badlandswooded_badlands

Biomes →

Reading the result

The answer looks like "The nearest minecraft:ancient_city is at [x, ~, z] (n blocks away)". For structures the height shows as ~, because only the map position is known: dig or fly to find the right level. Biomes and points of interest come with a full Y. The coordinates in chat are clickable to teleport there.

Dimensions and IDs

/locate only searches the dimension you are in. To find a Nether Fortress from the Overworld, run it through /execute in minecraft:the_nether. Several structures have variants: villages are split into village_plains, village_desert and others, so the tag #minecraft:village is easier. Some IDs differ from the names: a Woodland Mansion is mansion, an Ocean Monument monument, Trial Chambers trial_chambers.

Common errors

  • "Could not find a structure of type ... nearby": the structure does not generate in this dimension, or the world was created with Generate Structures off.
  • Points of interest only exist in chunks that were already generated, so poi works best close to you.
  • Searching a rare biome can take a moment on a busy server.

Once you have the coordinates, /teleport takes you there.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/locate: FAQ

How do I find a stronghold with /locate?

Run /locate structure minecraft:stronghold. The Y value shows as ~, so dig down at the given X and Z to reach it.

Why does /locate not find a fortress in the Overworld?

Nether Fortresses only generate in the Nether. Go there, or use /execute in minecraft:the_nether run locate structure minecraft:fortress.

How do I use /locate?

Type it in the chat with cheats on: /locate biome <biome>.

Who can use /locate?

Cheats on, or operator level 2.

Copy & paste lists with /locate

Related commands