Are we sure that this is a bug and not the intended behavior. It seems like a related bug was just fixed and the behavior changed to work this way with arrows. From the 1.0.7 changelog: "Arrows fired from a dispenser will now hit entities directly in front of the dispenser"
It seems consistent that dispensed eggs should also follow this logic. It is inconvenient for chicken farms, but I'm not sure it isn't working as intended. Farms can still be made to work if they are built slightly larger so the dispensed eggs can't hit baby chickens
I can also confirm that this is still a bug on our realms server after further testing. We've lost chickens, horses, and donkeys that have all been interacted with or named after 1.0.5 and onwards. It does seem less common than it was before 1.0.5, but it still occurs periodically.
This ticket should be reopened.
That's a good question. I think that some of the chickens had been fed to accelerate their growth as well, but I am not completely sure that's true. I will definitely keep an eye on it more closely.
After updating to 1.0.6 on our realms server, all chickens in our chicken farm have disappeared. They had all been spawned from player-thrown eggs on version 1.0.5.
I do not believe this issue is fixed.
Is this happening on mobs that spawned prior to the 1.0.5 update but are still around? On our realms server, we lost some chickens and horses on 1.0.5 that had spawned prior to the update. However, I don't believe it has happened yet to new mobs that spawned after 1.0.5.
@Chip Well, this bug has not been fixed yet so that is unfortunately the current behavior. The intended behavior is as SuperGeniusZeb described and should be the case after 1.0.5 comes out if all goes well. It's relevant in knowing what should function after the bug is fixed and what is actually a bug vs what is working as intended. In your case, the despawning is definitely due to the bug, which means it should not continue to occur after the next update.
Perfect thank you! Just gotta wait for 1.0.5. Hopefully soon!
Thanks SuperGeniusZeb!
> If the entity ever sets you as its target, follows you, gets fed/bred/punched/etc. by you, that counts as interaction.
So, does this mean that in the case of chickens if they are spawned as a result of a player throwing an egg but no further interaction takes place, they are supposed to despawn? Or does the spawning through player throwing an egg cause them to be "interracted with"?
Very happy it sounds like this might be resolved soon.
@SuperGeniusZeb What constitutes "interacted with"? For example, I have a chicken farm on my realms server that always despawns its mobs when players travel to the nether. If no one remains behind in the chunk, all the animals will be gone when we come back.
In the case of chickens, they have been created as a result of a player throwing eggs, but otherwise hadn't been interacted with after that. Do we need to interact with them further for them to stick around? There are also cows that have been fed wheat and/or bred and those also despawn after the chunk unloads.
Note: nothing despawns as a result of logging out and back in, but when the chunk unloads due to teleporting to the nether.
On our realms server, this bug has gotten significantly worse in 1.0.3 from what I can tell. Our farms constantly depopulate when we travel to and from the nether. Any progress on it in 1.0.4?
Note, this bug seems to be avoided if the animals are in a ticking area. We have quite a few pens in a ticking area on our realms server and it does not occur. Prior to setting the ticking area, they would periodically disappear.
It seems related to memory cleanup when the chunks get unloaded. Putting them in a ticking area works around this by keeping them in memory at all times when the game is running.