mojira.dev
MC-73910

When unloading an entity, and then reloading, "that entity cant be found"

i am making a minigame, i have the "heavy redstone" at 0,0, and the gamefield is at 1000, 0, so the client does not have to load the redstone, well, there are some entities at 1000,0, but when i leave 1000,0, and go to 0,0, when i come back to 1000,0 none of the entityes "can be found", if i try to /execute on any of the entityes, the message is "that entity couldnt be found" and that appies for all the entities (about 70) i also cant use /kill, i cant use any command on them, i must restart the server to be able to use them again (just /stop and reopening makes it all work perfectly fine).

Workarround i am using right now:
detecting if the entities are there, but gliched (testfor with /stats = number of entities,set count count 0 & /execute @e ~ ~ ~ add count count 1, if the /stats says more than 1, but execute says 0 (bcos execute does not work on them), then just summon creepers with fuse:0, (other alternatives are: summon inst damage potions, summon falling sand with HurtEntities:1 and high damage value, or setblock lava if you feel like it, but that's slow))

Linked issues

Attachments

Comments 9

I'm experiencing the same issue on a map I'm creating with a similar layout (redstone at 0,0 and entities in a play area 10000 blocks away). Would it help to provide a test map that exhibits the problem?

I wasn't able to reproduce the problem in a new world, but it happens all the time in a map I'm working on. I attached the map with all the redstone and stuctures erased. The problem reproduces almost every time by:

  • Pressing "Go to play area"

  • Press "Summon a Villager"

  • Press "Go to 0,0"

  • Press "Go to play area"

  • Press "Kill all villagers"

  • The villager doesn't die 😞

  • Running /testfor @e shows one "That entity cannot be found"

I'm attaching a screenshot of the "That entity cannot be found" error message resulting from the "/testfor @e" command

by the way, this also happens if you summon entities with a custom UUID, and you use the command twice (before killing the other one) bcos there cant exist 2 entities with the same UUID, one gets "that entity cant be found", and the newest does respond to the UUID

Yeah, I've seen that before too pablo (surely by accident! 🙂. This problem is happening for me for villagers & armor stands spawned using the normal (non-commandblock) way too.

I have noticed that this issue does seem to be chunk related. I spawned villagers in adjacent chunks and they were still able to be found by the @e selector. Villagers in that one chunk were consistently "lost". As a test, I deleted that chunk from the map using MCedit so that it would be regenerated. The regenerated chunk didn't appear to have the same problem. Maybe the chunk got corrupted somehow?

I wonder if this is the same as MC-65151. Pablo, did you have any villagers in the chunks where the entities went missing? I've found that villagers seem to mess up all entities in the chunk they're in when the chunk gets unloaded.

nope, 0 villager, both in the chunks and all the world, i can guarantee there were no villagers in all the world, just slimes (invisibles + noai) and some armor stands

maybe it has to do with the NoAI tag?

I still see this problem in 1.8.4. I had a horse entity that couldn't be targeted.

pablete1234

(Unassigned)

Community Consensus

Minecraft 1.8.1-pre3, Minecraft 1.8.4

Retrieved