-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.12.2, 1.14.4, 19w42a, 1.15.2, 20w17a, 20w18a, 20w20b, 20w51a
-
None
-
Confirmed
-
Commands, Networking
The bug
When a NoAI entity is teleported downwards, while the player is outside of the entity view distance, and the player enters that distance while the entity is still teleported, the entity may end up displayed at the wrong position
I assume that there is some mismatch being created between what the client thinks where the entity is located at, and where the entity is actually located at. Once the server updates the entity's position on the client to its absolute coordinates (for example by leaving and re-entering the tracking range another time), the entity appears at the correct position.
How to reproduce
- Summon a villager with the following command:
/summon minecraft:villager ~ ~ ~ {NoAI:true,Tags:["MC-130725"]}
- Put down a repeating command block with following command and activate it:
execute as @e[tag=MC-130725] at @s if block ~ ~-0.5 ~ minecraft:air run tp @s ~ ~-0.5 ~
- Execute following command in chat:
/execute as @e[tag=MC-130725] at @s run tp @s ~ ~50 ~
→ The villager will be teleported downwards until he is standing directly above the block, as expected
- Now go far enough away from the villager that he is no longer rendered
- Execute the command again in chat
- Enter the render distance while the villager is still being teleported downwards
→ The villager may appear as if he was inside of the block