Mobs suffocate / go through blocks when growing up near a solid block
The bug
Animals seem to suffocate when growing up near a solid block.
How to reproduce
- Create a one block large, two block high enclosure. Use solid blocks like cobble.
- Throw chicken eggs in it until 4 chickens have spawned
- Wait until all chickens are grown up
- Count the chicken
Most of the time all of the chickens have died, sometimes 1 or 2 survive. This happens not only in tight enclosure but also randomly near walls or blocks.
If the blocks are transparent (glass, fence) the animal just can walk through.
I think this is probably due to a smaller hitbox, that is immediately enlarged, when the animal grows up.
See this comment and ticket: https://bugs.mojang.com/browse/MC-1524?focusedCommentId=43968&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-43968
Also note DpP41Mf.png
which provides a concrete way to reproduce and an explanation.
Code analysis
Code analysis by Xcom6000 can be found in this comment.
2013-02-10, 06:16 PM
2024-05-13, 11:52 AM
2024-05-07, 02:32 PM
179
48
Snapshot 13w06a - 1.20.6
Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w09a, Snapshot 13w09b, Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w17a, Snapshot 13w19a, Snapshot 13w21a, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.9, Minecraft 14w32d, Minecraft 1.8, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w46a, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 1.13-pre2, Minecraft 19w12a, Minecraft 1.14, 1.15.1, 1.15.2, 20w12a, 20w19a, 1.16.2, 1.16.3, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05a, 21w05b, 21w07a, 21w11a, 1.17 Release Candidate 1, 1.17, 1.17.1, 1.18.1, 22w03a, 1.18.2, 1.19, 1.19.1 Pre-release 2, 1.19.1 Pre-release 3, 1.19.2, 1.19.4, 23w14a, 1.20 Pre-release 6, 1.20.6