Minecraft Java Edition – How to Force Regenerate End Gateways in Minecraft

minecraft-java-editionminecraft-java-edition-server

On my server, we just pruned the end because we have a world border and ran out of cities. Everything seems to be working great now, except for one thing: End gates are spawning above the void. This is impossible when looking at the game code, so our guess is that the gate locations are saved somewhere in NBT data. Naturally, I went looking around, but I didn't find anything, so I was hoping someone here could help.

In short: Is there a way to force end gateways to regenerate correctly (and possibly delete the old ones)?

Best Answer

So I figured out the solution to the problem. First it is important to note that the teleportation data is stored in block data. Secondly, when in the end, an end portal without block data defaults to its spawning state.

The way to fix the problem is to respawn all end gateway blocks via the set block command. Example for gateway 17: /setblock 29 75 -91 minecraft:end_gateway 0

This will respawn that particular gateway and everything will run smoothly from there.