Updated:

The basic form

GoalJava 1.19+Bedrock
Nearest village/locate structure #minecraft:village/locate structure village
Stronghold/locate structure minecraft:stronghold/locate structure stronghold
Cherry grove/locate biome minecraft:cherry_grove/locate biome cherry_grove

The chat shows the nearest position and the distance. For structures the Y value appears as ~ because only X and Z are fixed. On Java you can click the coordinates to put a teleport command in the chat box.

The # in #minecraft:village means a group: it searches plains, desert, savanna, taiga and snowy villages together. Use minecraft:village_plains to look for one kind only.

Common structure IDs (Java)

StructureIDWhere
Village (any)#minecraft:villageOverworld surface
Strongholdminecraft:strongholdUnderground
Ancient cityminecraft:ancient_cityDeep underground
Trial chambersminecraft:trial_chambersUnderground (1.21+)
Woodland mansionminecraft:mansionDark forest
Ocean monumentminecraft:monumentDeep ocean
Nether fortressminecraft:fortressNether
Bastion remnantminecraft:bastion_remnantNether
End cityminecraft:end_cityOuter End islands

You do not need to remember them: type /locate structure and pick from the suggestions. Nether and End structures are only found when you run the command in that dimension.

Useful biomes

BiomeJava ID
Mushroom fieldsminecraft:mushroom_fields
Ice spikesminecraft:ice_spikes
Badlandsminecraft:badlands
Deep darkminecraft:deep_dark

Some Bedrock biome names differ, for example mushroom_island and mesa. Use the suggestions while typing.

Only unexplored places (Bedrock)

/locate structure village true

On Bedrock, true at the end skips structures in chunks that were already generated, so you find a new village instead of one you have visited.

Older versions

Java 1.18 and earlier used /locate village without the word structure, and biomes had a separate /locatebiome command from 1.16 to 1.18. That is why commands from older tutorials fail on current versions.

Getting there safely

/tp @s 1200 200 -340
/effect give @s minecraft:slow_falling 30 0 true

Because the Y value is unknown, teleport high above the spot and fall slowly instead of guessing a height that might put you inside the ground. For strongholds and ancient cities, which are underground, dig down from the given X and Z.

Common problems

Check your command

The Command Error Doctor checks common syntax mistakes in your browser.