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.
Thank you for your report!
We're tracking this issue in MC-276315, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Fixed. Please check the Fix Version/s field in that ticket to see in which version this behavior was or will be fixed.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki