-
Bug
-
Resolution: Duplicate
-
None
-
24w36a
-
None
-
Unconfirmed
-
(Unassigned)
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
- Enter a world with commands enabled on Creative.
- Place a command block of any type (preferably Repeating so the effect is noticeable).
- 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.
- duplicates
-
MC-276315 Teleport command runs at the entity's position and ignores location from execution context
- Resolved