0

So according to this video, you can actually locate an End City rather easily, before even fighting the Ender Dragon.

The video suggests standing underneath the Portal, then using a piston to push you (the player), which causes you to trigger the Portal, but instead of sending you to the central island with the End Dragon, it will instead send you to the "relative coordinates" (Slow Falling and Ender Pearls advised) of an End City.

Can anyone explain how exactly this works? That is, the functionality of the underside of the End Portal, as opposed to the topside; and what determines the End City chosen? I.e. is it only one particular End City? or is there something about the End City that determines the link?

2
  • Btw I would suggest editing the title to be more descriptive, say "Why does entering the end portal from the underside teleports you to the relative coordinates of an end city"
    – 54D
    Commented Jan 17, 2022 at 17:15
  • @54D well, a non-descriptive title is still better than posting on the wrong page... I originally posted this on SF&F by accident!
    – Ben
    Commented Jan 18, 2022 at 0:52

2 Answers 2

3

This bug seems to be currently tracked as MC-123364 although a more relevant reproduction is MC-223409. Here's what I think is happening.

We can take a look at the description part of the first bug report written by Runemoro:

The NetHandlerPlayServer.processPlayer (MCP name) function checks if the player's bounding box is intersecting any blocks, and if it is, reverts the player's position to the old one.

However, this check is done even if the player has been teleported by a portal block such as the end portal, which can lead to the following problem:

  1. A player somehow sends a move packet that places them halfway between an end portal block and an end portal frame block
  2. Even though the move is illegal, the end portal's collision function gets called and the player is teleported into the end (Bug 1)
  3. The collision checks whether the player's move was invalid and reverts the player's position, but not dimension change (Bug 2)
  4. The player is dropped into the end at their previous position, likely causing them to fall into the void and die

Doing this check before block collision functions are called (or at least also cancelling the dimension change) would solve the problem.

Now I have yet been able to find why a player triggers teleportation even though they are one block below an end portal block, but as far as I can remember, a player's y position slightly jumps up immediately when they are pushed before being placed in a legal post-push position, as technically there is a collision into a (moving) block.

Assuming this is true, the player is placed in a position between the end portal block and end portal frame block right above the player's original position (which has slightly changed in either the x or z direction, but not fully). This satisfies the condition in step 1, and the bug is triggered. The rest of the quote directly applies to this situation.

To answer your other questions, the functionality of the underside remains the same if the end portal blocks are accessed in a normal manner. Only when the player is displaced by something else that causes their position to satisfy the condition in step 1 does the teleportation act unexpectedly.

As for the technicality behind the game "choosing" an End City, pinckerman has explained the irrelevance.

1
  • 1
    +1 for finding the bug tracker page, I had no time at work this morning and totally forgot to update it
    – pinckerman
    Commented Jan 17, 2022 at 18:46
2

That glitch will send you to the "relative coordinates" in The End, you have no clue that you will find an End City.

But, we know that:

  • Outer End Islands are found 1000 blocks away from the central island
  • End Cities are generated only in chunks numbered 0-8 +- a multiple of 20

So it's technically possible to deduce an End City location.

(But I can't answer why this actually works.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.