Minecraft Locate Command Generator
Quickly generate the /locate command to find the exact coordinates of the nearest structures, biomes, or point of interests (POIs).
/locate structure minecraft:ancient_cityWhat this generator does
Pick a structure, biome or point of interest (POI) from the list and the generator builds the /locate command. /locate changed its syntax four times (capitalized names, lowercase names, minecraft: IDs, then separate structure/biome/poi), and the generator writes the right form for the version you pick. If a category does not exist in that version, it tells you which version added it.
Command Usage Examples
Finds an ancient city in the Deep Dark, where the Warden appears. The Y coordinate comes back as ~, so look downward after you arrive.
/locate structure #minecraft:villageFinds the nearest Deep Dark Ancient City where the Warden spawns.
/locate structure minecraft:ancient_cityFinds the nearest nether portal block (POI). It only searches areas that have been loaded before, so it is useful for finding your way back.
/locate biome minecraft:mushroom_fieldsFinds the nearest lectern (the librarian's job site). POI search needs 1.19.
/locate poi minecraft:nether_portalSearches for the nearest Village from my location, regardless of whether it's in a desert or plains.
/locate structure #minecraft:village/locate syntax by version (Java Edition)
/locate changed syntax often, so commands from old tutorials frequently fail in current versions.
| Version | Syntax |
|---|---|
| 1.11 ~ 1.15 | /locate followed by a structure name starting with a capital letter. Example: /locate Village |
| 1.16 ~ 1.18.1 | /locate followed by a lowercase structure name. Biomes use the separate /locatebiome. Example: /locate village |
| 1.18.2 | Structures use minecraft: IDs and #tags. Biomes still use /locatebiome. Example: /locate #minecraft:village |
| 1.19 ~ | Split into /locate structure, /locate biome and /locate poi, and /locatebiome was removed. Example: /locate structure #minecraft:village |
How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). Structure, biome and POI lists are extracted from the official server jar's data generator reports, and FAQ error messages are quoted from the game's language file (en_us). Last checked: November 2026.
Frequently Asked Questions (FAQ)
I get 'Could not find a structure of type ... nearby'.
The structure is not within the search range. Usually you searched for a structure that does not generate in your current dimension (an End city from the Overworld) or the world was created with Generate Structures off. It may also simply be out of range, so travel further and try again.
I get 'There is no structure with type ...'.
The structure ID is wrong. Since 1.18.2 you need an exact ID such as minecraft:village_plains or a tag such as #minecraft:village. Names like village from 1.18.1 and earlier no longer work.
/locatebiome gives 'Unknown or incomplete command'.
/locatebiome was removed in 1.19 and merged into /locate biome. Type /locate biome minecraft:cherry_grove instead. In 1.16–1.18.2, /locatebiome is correct.
/locate poi cannot find my nether portal.
POI data is stored only for chunks that have been loaded, so portals in places nobody has visited are not found. 'Could not find a point of interest of type ... within reasonable distance' means no recorded portal is in range.
The structure's Y coordinate shows as ~.
Structures report only X and Z, with the height shown as ~, because the height depends on the terrain. Click the coordinates to go there, then search downward for underground structures like ancient cities and upward for tall ones like End cities. Biomes and POIs include Y.
How do I go straight to the coordinates I found?
Click the green coordinates in chat to fill in a /tp command, then press Enter. You also need permission to use /tp.
Can I search from another player's position?
Combine it with execute at, as in /execute at Steve run locate structure minecraft:mansion, to search from that player's position.
Can I find a Nether fortress from the Overworld?
/locate searches only in the dimension it runs in. Set the dimension with execute in, as in /execute in minecraft:the_nether run locate structure minecraft:fortress, to search the Nether while standing in the Overworld.
Useful IDs and tags
IDs and tags for common targets. Using 1.19+ syntax.
1. Common structures
Any village is #minecraft:village, ancient city is minecraft:ancient_city, woodland mansion is minecraft:mansion, stronghold (End portal) is minecraft:stronghold, trial chambers is minecraft:trial_chambers, Nether fortress is minecraft:fortress, and End city is minecraft:end_city.
2. Search several types at once with tags (#)
A tag with # finds the nearest of several types. It is handy for structures with many variants, such as villages (#minecraft:village). Tags need 1.18.2 or later.
3. What POI can find
Villager job sites (for example minecraft:librarian is a lectern and minecraft:armorer is a blast furnace), beds (minecraft:home), bells (minecraft:meeting), nether portals (minecraft:nether_portal) and bee nests (minecraft:bee_nest). It only searches loaded chunks.