mojira.dev
MC-81536

Teleported entities refer to old chunk

Relates to:

It seems like when an entity gets teleported it still refers to the chunk it was before. (This fixes itself when the chunk it referred to gets unloaded or when you reopen the world).

How to reproduce:

  1. Go away from the spawn chunks

  2. Use this command /summon ArmorStand ~ ~ ~ {CustomName:playerChunk}

  3. Teleport the ArmorStand in an unloaded chunk, for example: /tp @e[type=ArmorStand,name=playerChunk] ~3000 ~ ~

  4. Wait some time and use /say @e[type=ArmorStand,name=playerChunk] It should say the name of the ArmorStand

  5. Try to execute on the entity
    It will fails which means the chunk is not loaded, however commands still find the entity which means it is still loaded

Checking if the entity is in a different chunk after the teleportation, removing it from the old chunk and adding it to the new chunk seems to work.

Related issues

Comments

kumasasa

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

marcono1234

(Unassigned)

Unconfirmed

/tp, chunk, entity, load, tp

Minecraft 1.8.7, Minecraft 15w50a

Retrieved