Mojira Archive
MC-276454

/teleport command on Command Blocks is no longer relative to the command block

This is my first submitted issue, so I apologise if there is any incorrect formatting.

On 24w36a, when using the /teleport command on a Command Block, it seems that the command is instead relative to whichever entity is specified. Thus, when entering a command (i.e. /tp @e[type=pig,limit=1] ~ ~1 ~) into a command block, it will teleport a pig upwards by one block relative to its own position instead of the command block's.

Notably, the command output seems to output the expected coordinates.

I have not seen this on any changelog, so I'm assuming this somehow relates to the teleportation bug currently present with ender pearls.

How to reproduce

  1. Enter a world with commands enabled on Creative.
  2. Place a command block of any type (preferably Repeating so the effect is noticeable).
  3. Type a command such as "/tp @e[type=pig] ~ ~1 ~" into the command block, and enable it. Notice how any pigs nearby immediately begin to 'levitate' into the air.

    Expected behaviour

    The pigs are teleported one block above the command block.

    Actual behaviour

    The pigs are teleported one block above theirselves individually.

Duplicate

CathodeRay

2024-09-06, 07:34 PM

2024-09-06, 07:35 PM

2024-09-06, 07:35 PM

0

0

Unconfirmed

(Unassigned)

24w36a

-