Minecraft End City Command: The Exact Syntax That Works

If you’ve beaten the Ender Dragon and want the Elytra without wasting an hour bridging across the End’s outer islands, one command does the job — the End City Command: The Exact Syntax That Works is simple:

/locate structure minecraft:end_city

That’s the current Java Edition syntax. Bedrock Edition uses /locate structure End_city — no namespace. Below is exactly how to use either one, what the output means, and what to do if it doesn’t work.

Before You Type Anything: 3 Requirements

The /locate command will fail (or won’t even show up) unless all three of these are true:

  1. Cheats are enabled. This is a per-world setting, not something you toggle mid-game unless you’re the host.
  2. You have operator/cheat permission. In singleplayer this is automatic once cheats are on. On a realm or someone else’s server, you need to be opped or have cheats granted to you — the world owner has to do this.
  3. You’re standing in the correct dimension. /locate structure minecraft:end_city only returns a result when you run it inside the End. Running it from the Overworld or Nether returns an error, because End cities don’t generate there.

How to enable cheats

SituationHow
Singleplayer, new worldEnable “Allow Cheats” in world creation settings
Singleplayer, existing worldOpen to LAN → toggle “Allow Cheats” → click Start LAN World (re-enables for that session)
Bedrock worldWorld Settings → Cheats → toggle on
RealmThe realm owner must enable cheats in Realm settings; not all realm types allow this
Third-party serverAsk an admin for operator status or /locate permission — you can’t self-enable this

The Command, Step by Step

  1. Get into the End and make sure you’re on solid ground (an outer island is fine — you don’t need to be on the main island).
  2. Open chat: press T on Java Edition (PC), or the chat/command icon on Bedrock.
  3. Type the command for your edition (see table below) and press Enter.
  4. Read the returned coordinates.
  5. Travel or teleport to them.

Java Edition vs. Bedrock Edition syntax

Java EditionBedrock Edition
Command/locate structure minecraft:end_city/locate structure end_city
Namespace requiredYes — minecraft: prefixNo — plain ID only
Optional argumentStructure tags (e.g. #village)useNewChunksOnly boolean, e.g. /locate structure end_city true
Case sensitivityLowercase, exactSelected from an in-game enum/autocomplete list
Permission requiredPermission level 2 (operator)Cheats must be enabled
Works in Creative & SurvivalYes, as long as cheats are onYes, as long as cheats are on

Both versions search from your current position and return the nearest End city — not necessarily the biggest or the one with an End ship attached.

Why minecraft:end_city and not EndCity or /locate EndCity? Older guides you’ll find online use outdated syntax. Structure names became lowercase starting in snapshot 20w21a, and Java Edition switched to full namespaced resource locations (like minecraft:end_city) in the 1.18.2 update. If you’re running a current release, the plain lowercase name without minecraft: will fail — the command needs the full ID on Java.

Reading the Output

A successful command returns a message shaped like this:

The nearest structure "minecraft:end_city" is at [1520 ~ -864] (632 blocks away)

A few things to note about that output:

  • There’s no Y (height) coordinate. The ~ stands in for it. /locate ignores vertical position entirely when searching for structures — End cities span a wide range of heights on floating islands, so the game only gives you X and Z.
  • The distance shown is horizontal, not a straight-line distance to the structure.
  • On Java Edition, the coordinates are clickable. Clicking them auto-fills /tp @s <x> ~ <z> into your chat box, ready to send.

Getting to the Coordinates

Knowing the X/Z location doesn’t put you there — you still have to cross the void between islands. Two realistic options:

Teleport (fastest, requires cheats — which you already have enabled):

/tp @s 1520 100 -864

Pick a Y value comfortably above the terrain (100–150 is usually safe) so you don’t spawn inside a block or fall into the void.

Fly there manually with Elytra, if you already have one from a previous city, or bridge/pearl your way across the outer islands if this is your first run. Since End islands are scattered and separated by empty space, most players either teleport straight to the coordinates or use existing Elytra + fireworks to glide over.

Either way, once you land, remember: End cities are guarded by Shulkers, whose projectiles inflict Levitation — dangerous near the edge of a floating island. Approach carefully.

Troubleshooting: Why the Command Isn’t Working

ProblemCauseFix
“Unknown command” or command doesn’t appear in chat suggestionsCheats aren’t enabled, or you lack operator permissionEnable cheats (see table above) or ask a server admin to op you
“Failed to locate structure”You ran the command outside the EndTravel to the End first — /locate structure minecraft:end_city only searches the dimension you’re currently in
Command runs but nothing happens on BedrockTyped the Java-style ID with a namespaceDrop the minecraft: prefix — Bedrock wants just end_city
Coordinates lead to an already-looted citySomeone else on a multiplayer server already explored itRun the command again after moving a few hundred blocks — it always returns the nearest city relative to your current position, so relocating first can surface a fresh one
Nothing happens at all when you press EnterYou’re not actually in cheat/creative-enabled mode, or you mistyped the commandDouble-check spelling exactly as shown above; structure names are case-sensitive on Java

Related Commands Worth Knowing

Since you’re already deep in the End with cheats on, these tend to come up next:

  • Find the nearest stronghold (to get back to the End in a new world): /locate structure minecraft:stronghold
  • Find an End city in new chunks only (Bedrock, avoids already-explored areas): /locate structure end_city true
  • Locate a biome instead of a structure: /locate biome minecraft:end_highlands (Java) — useful since larger End cities tend to spawn on bigger islands with chorus trees, which cluster in this biome
  • Teleport once you have coordinates: /tp @s <x> <y> <z> (Java) or /tp @s <x> <y> <z> (Bedrock)

Quick Reference

Java Edition:    /locate structure minecraft:end_city
Bedrock Edition: /locate structure end_city

Run it from inside the End, with cheats/operator permission on, and you’ll get X/Z coordinates you can teleport to immediately.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top