Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-130725

Teleported NoAI entities can end up being displayed at a wrong location if the viewing player is near the entity view distance



    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Minecraft 1.12.2, 1.14.4, 19w42a, 1.15.2, 20w17a, 20w18a, 20w20b, 20w51a
    • None
    • 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

      1. Summon a villager with the following command:
        /summon minecraft:villager ~ ~ ~ {NoAI:true,Tags:["MC-130725"]}
      2. 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 ~
      3. 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

      4. Now go far enough away from the villager that he is no longer rendered
      5. Execute the command again in chat
      6. Enter the render distance while the villager is still being teleported downwards
        The villager may appear as if he was inside of the block




            Unassigned Unassigned
            blablubbabc bla blubb
            5 Vote for this issue
            3 Start watching this issue