mojira.dev
MC-9568

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

  1. Create a one block large, two block high enclosure. Use solid blocks like cobble.

  2. Throw chicken eggs in it until 4 chickens have spawned

  3. Wait until all chickens are grown up

  4. 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

[media]

which provides a concrete way to reproduce and an explanation.

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

MC-9435 Adult chicken die when you pushing them on a solid block Resolved MC-9540 Adult chickens eventually die if caged near solid blocks Resolved MC-9626 Glitching mob that kill them Resolved MC-9635 Baby chickens glitching into solid blocks and dying Resolved MC-9742 Mobs suffocating by walking into walls Resolved

Attachments

Comments 78

Toni Salomäki

This happens also in bigger areas, at least with cows. I created a 2 high sandstone wall with 4x8 area inside, and over 50% of cows died pretty much immediately after growing up.

Something else is wrong with the collision boxes even if the cows survive this. Rest of the cows that were originally small cows (spawned with eggs, but problem occurs also with the ones born "naturally"), died quite rapidly to suffocation when walking around the wall holding a wheat.

Noticed this on a SMP server. Was breeding cows in a fairly large pen, and cows were pushing each other into the walls(2 high stone brick blocks) and suffocating. There was plenty of room in the pen for the cows to go, but they tend to cluster around the sides. And if you have baby cows they will clump together around the closest adult cow, in which they typically force the adult against the wall and it dies.

I have the same issue: (MC-9838)

This also still happens in 13w09c and another thing to note is when reloading chunks baby mobs will glitch out of the fence if the fence is intersecting in 3 points with a torch on top.

Sorry that I couldn't be more helpful,
jamesloon

68 more comments

Can confirm in 1.19.1-pre3.

Can confirm in 23w14a. This is extremely severe for frogs. They don't even try to escape the block they are stuck in and usually just die of suffocation.

LordEnder_Kitty

i see this a lot whenever i breed a bunch of cows in fences. i'll get cows roaming around outside the fences because the children grow up near the fence and phase through it.

[media]


Is this really fixed?
EDIT: the pushing out seems to work okay when the mob is squished properly against the wall, with no suffocation. I think the change was just for tadpoles

This report collected a lot of dust over the years.
The core of the issue has been fixed a while back, but it got reopened with changed repo steps.
So this time it was fixed according to the repo steps. Chickens did suffocate when spawned from eggs, because they would end up slightly in blocks. That's fixed, spawning chickens from eggs no longer does that.
Addionally MC-253791 (the frogs) and MC-252846 are fixed. Both were issues that were hidden in the duplicates of this issue and MC-2025.
Which brings me to the reason for my little rant: If there is new repos for suffocating mobs showing up, please make sure this issue is not reopened, but they are reported as new issues. Otherwise easy to fix issues can get lost behind lots of outdated information of old reports. Thank you! (and thank you for testing if the fix worked!) 🙂

Yasuo Iwakura

Panda4994

Confirmed

Gameplay

Low

Hitboxes

baby, mob

Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w09a, Snapshot 13w09b, Minecraft 1.5, ..., 1.19.2, 1.19.4, 23w14a, 1.20 Pre-release 6, 1.20.6

21w05a, 24w19a

Retrieved