Teleporting Entites from/to a ticking area fail to render and can no longer be interacted with
Verification Build: Release_516590 & Release_525000_EDU
Summary:
When encountering this bug I was primarily teleporting Villagers. I was trying to position them in the play area of our map. I initially spawned them in a ticking area I created called "SpawnChunks" (Which on the world is located at: 688 1 15) I also setup a ticking area in the areas I wanted to teleport them to (414 3 -224). I then executed the following command:
/tp @e[type=Villager,name="Martin the Miner"] 414 3 -224
The Villager would teleport, however in its new location it did not seem to appear. (The command executed successfully) I then tested for the location of the villager by teleporting myself to "Martin the Miner". I was teleported to the location that I had teleported the villager to. However the Villager appeared not to be rendered and I could not interact with it (trading etc...)
Impact:
Teleporting entities from/to a ticking area causes them to sometimes stop rendering or be interacted with after the teleport.
Reproduce:
1. Open up a world
2. Spawn a villager(or any other entity) and give it a custom name.
3. Setup a ticking area at its location
4. Go to another location a good distance away (The first location is no longer rendered by the player, only by the ticking area)
5. (Optional) Setup a ticking area in the second location
6. Teleport the custom named entity to you at the second location.
7. If it does not appear the entity teleported, teleport yourself to it, to confirm its location.
Observed Result: After being teleported the entity cannot be interacted with (trading, fighting, etc...) or be seen. It is invisible/not rendered
Expected Result: The Entity will teleport from point A to point B and still function normally.
Screenshots/Video: None
Notes:
From what I've experienced so far, it seems that if you teleport an entity that isn't rendered by a player (even if it is loaded by a ticking area) upon reaching its target destination, it causes them to not be rendered anymore. However there does not appear to be an issue when teleporting entities rather short distances within the player's own render distance.