| Type: | Bug | ||
| Reporter: | Yasuo Iwakura | Assignee: | [Mojang] Panda |
| Resolution: | Fixed | Votes: | 179 |
| Labels: | baby, mob | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category: |
Hitboxes
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mojang Priority: | Low | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Area: | Gameplay | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
The bugAnimals seem to suffocate when growing up near a solid block. How to reproduce
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. 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 Code analysisCode analysis by Xcom6000 can be found in this comment. |
| Comments |
| Comment by [Mojang] Panda [ 13/May/24 ] |
|
This report collected a lot of dust over the years. |
| Comment by [Mod] tryashtar [ 11/May/24 ] |
|
Video_2024-05-10_18-58-13.mp4 |
| Comment by LordEnder_Kitty [ 10/May/24 ] |
|
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. |
| Comment by Brevort [ 07/Apr/23 ] |
|
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. |
| Comment by Dschinghis Khan [ 07/Jul/22 ] |
|
Can confirm in 1.19.1-pre3. |
| Comment by Dschinghis Khan [ 06/Jul/22 ] |
|
Can confirm in 1.19.1-pre2. |
| Comment by socrlax24 [ 07/May/22 ] |
|
Cows growing up inside a 1x7 space teleport through the walls. They don't seem to suffocate as often as they just pop out the other side. |
| Comment by Daniel L [ 10/Apr/22 ] |
|
Is this still an issue? Since I cannot reproduce it, although in my survival world, there is something going on with my animals, still researching and testing. |
| Comment by Jacob the person [ 08/Oct/21 ] |
|
I noticed while trying to make a fox powered chicken cooker that this bug does not often happen for me under normal circumstances, however if there is a carpet on top of a slab that the chicken is growing up into, it moves into the wall and suffocates. the chicken is safely not suffocated if it merely grows up on a slab in an enclosed space without a carpet. |
| Comment by [Mod] Avoma [ 18/Jul/21 ] |
|
Can confirm in 1.17.1. |
| Comment by [Mod] ampolive [ 07/Jun/21 ] |
|
Affects 1.17 Release Candidate 1 per |
| Comment by bugsbugsbugs [ 19/Feb/21 ] |
|
Affects 21w07a |
| Comment by [Mojang] slicedlime [ 08/Feb/21 ] |
|
If there are new issues introduced, please post new issues. |
| Comment by [Mod] Avoma [ 05/Feb/21 ] |
|
Can confirm in 21w05b. |
| Comment by [Mojang] Panda [ 04/Feb/21 ] |
|
If you summon it with a large negative age you can also push it into the wall before it growing up? I think baby pigs are 0.45 wide, so if it's at 0.82 that puts the side of it's AABB at 1.045, slightly into the wall. |
| Comment by bugsbugsbugs [ 04/Feb/21 ] |
|
Seems to depend on how close they are near the wall. If they are very close, they can still suffocate. MC-9568 Still not fixed.mp4
/summon pig 112.82 78.00 158.25 {Age:-5}
|
| Comment by JohannesM [ 04/Feb/21 ] |
|
But it seems like it introduced a new performance issue along with the bug fix: https://youtu.be/H8PZgqm7fGc?t=678 |
| Comment by [Mod] tryashtar [ 04/Feb/21 ] |
|
According to the updated video that issue is indeed fixed: https://youtu.be/syRAo-I_600?t=938 |
| Comment by JohannesM [ 03/Feb/21 ] |
|
@[Mojang] Panda |
| Comment by [Mojang] Panda [ 03/Feb/21 ] |
|
Thank you for testing this! When reproducing it in 21w05a, can you confirm that the mobs are not glitched into the blocks before growing up already? If it still happens without a) or b) being the reason it would be great to get more precise reproduction steps, like the exact entity coordinates and block configuration. |
| Comment by bugsbugsbugs [ 03/Feb/21 ] |
|
Can confirm, indeed still not fixed in 21w05a. |
| Comment by Ismael Rosillo [ 03/Feb/21 ] |
|
Not fixed in 21w05a |
| Comment by [Mojang] slicedlime [ 01/Feb/21 ] |
|
Please do not comment on the issue tracker if you do not have additional information to add. |
| Comment by David G [ 29/Jan/21 ] |
|
I have been subscribed to this bug for a VERY long time now..
How is it that it has been marked resolved twice now but not actually resolved ? From the various videos it isn't hard to reproduce / test? xisumavoid 21w03a https://youtu.be/P7PncU3lLfI?t=546 |
| Comment by WitherSlayer5000 [ 29/Jan/21 ] |
|
Confirm for 20w51a |
| Comment by JohannesM [ 21/Jan/21 ] |
|
Indeed not fixed in 21w03a: Ilmango's snapshot video |
| Comment by bugsbugsbugs [ 20/Jan/21 ] |
|
Not fixed in 21w03a MC-9568 not fixed.mp4 |
| Comment by [Mod] Avoma [ 24/Dec/20 ] |
|
Can confirm in 20w51a. |
| Comment by [Mod] Avoma [ 01/Dec/20 ] |
|
Can confirm in 20w48a. |
| Comment by pulpetti [ 16/Jul/20 ] |
|
Affects 20w29a |
| Comment by Numeritos [ 02/Jul/20 ] |
|
Affects 1.16.1 and 20w27a |
| Comment by Numeritos [ 24/Jun/20 ] |
|
Affects 1.16 |
| Comment by Orbic [ 18/Mar/20 ] |
|
In 20w12a |
| Comment by user-2a4c8 (Inactive) [ 21/Mar/19 ] |
|
19w12a |
| Comment by Greg Milson [ 19/Jun/18 ] |
|
Affects 1.13-pre2 |
| Comment by Michael Kreitzer [ 02/Oct/17 ] |
|
I had some issues with escapees syill when trying out the code provided by Xcom. I've built on his idea and come up with the attached. The screenshot shows a pen with a mix of iron bars, cobblestone walls, and full blocks in a ring shape, and all of the cows in the pen started as baby variants. I've managed to reproduce this a few times with various combinations of blocks without any animals escaping thus far. The changed code first sends "null" as the first argument to "this.world.getCollisionBoxes" to prevent it sending nearby entity collision boxes. After that it walks through the list of all block collision boxes that intersect the new entity collision box that did not intersect the old one. It then checks the X and Z axis independently, and if the new collision box collides with the block collision box it moves the new entity collision box in the direction opposite of the relative position to the old entity collision box on that axis only if the old entity collision box completely clears the block collision box on that axis. It's a bit of a mouthful, but it seems to work. |
| Comment by Xcom6000 [ 24/Sep/17 ] |
|
The proposed fix is to simply change the size of the hitbox based on the centre position. Then check if the entity is overlapping any other hitbox. If its overlapping any other hitbox it should move the entity back out but only by first checking if its not overlapping with the old hitbox (the last check is to make sure that entity's aren't moved out of blocks they were previously occupying). These two images shows a code proposal. https://i.imgur.com/8sVcGr2.png |
| Comment by Xcom6000 [ 24/Sep/17 ] |
|
Pokechu22 helped point out the code where mobs are resized. It happens in EntityAgeable.java in "setScale" (MCP code). This line is called when a mob changes size to an adult. This then calls a method "setSize" (MCP code) in Entity.java where the size is changed. Studying the code it shows clearly that the resizing is done in a very odd fashion. If the resizing is done towards smaller then the entity simply shrinks without problems keeping the centre position as the reference point, no problems observed. If it's done towards expanding then its done differently and is the reason this problem happens. The expansion strictly expands the current hitbox towards the positive axies as shown here this.setEntityBoundingBox(new AxisAlignedBB(axisalignedbb.minX, axisalignedbb.minY, axisalignedbb.minZ, axisalignedbb.minX + (double)this.width, axisalignedbb.minY + (double)this.height, axisalignedbb.minZ + (double)this.width)); "axisalignedbb.minX + (double)this.width". After the hitbox is resized its moved back by the total width amount. this.moveEntity(MoverType.SELF, (double)(f - this.width), 0.0D, (double)(f - this.width));. Basically moved back by a full expanded amount. Two observed issues that can be seen by this is |
| Comment by Dylan [ 02/Jan/17 ] |
|
I can confirm that this is still an issue in 1.11.2. |
| Comment by [Mod] Michael Wobst [ 01/Nov/16 ] |
|
Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w43a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself. |
| Comment by Mark Herget [ 21/Jun/16 ] |
|
Pigs, Cows, Chicken.... all disappearing frequently. I filled the whole ground of my enclosures with Hoppers to see wether they are despawning or dying. After there was invested so much time to add many new features recently, I hope you will now get rid of some of the ancient nasty bugs like this one |
| Comment by Gothrung [ 18/Mar/16 ] |
|
This also happens with villagers. |
| Comment by Warren Liddell [ 17/Nov/15 ] |
|
I have seen this also in 15w46a |
| Comment by [Mod] redstonehelper [ 30/Oct/15 ] |
|
Confirmed. |
| Comment by [Mod] Michael Wobst [ 30/Oct/15 ] |
|
Can this be confirmed 1.8.8 onwards? Should consider closing this bug for now until someone can confirm this with a more recent version. |
| Comment by WellyPL [ 21/Oct/14 ] |
|
There might be many reasons. That should be fixed ASAP |
| Comment by Daniel McQ [ 20/Oct/14 ] |
|
My guess is the problem is related to rounding errors and/or the hit box of the mobs. |
| Comment by WellyPL [ 20/Oct/14 ] |
|
Because they kinda cant move |
| Comment by Spencer Stith [ 19/Oct/14 ] |
|
But it doesn't appear to happen with Item Frames, which are also entities |
| Comment by WellyPL [ 19/Oct/14 ] |
|
So this bug appears when entitles are rendering, nevermind if you've just started the server, logged in or came back from a journey. Please fix it ASAP |
| Comment by Spencer Stith [ 19/Oct/14 ] |
|
It appears to be a bug in the loading of the coordinates of the mobs. I did a test in my survival world; I had cows in an underground area, so they were in an area encased by stone. When I logged back in, every single time (as I could see through parts of the world as it was loading, and entities always render before blocks), I saw that they were being damaged. Then, at another time, I had them above ground, enclosed with fences. When j logged back in, or came back from the Nether, some would be outside of the fences. So, I thinkmors a problem in their coordinate locations. Like off by a block, or they can walk through blocks for a bread moment upon loading, then die, or escape like with fences... |
| Comment by WellyPL [ 19/Oct/14 ] |
|
Animals randomly suffocate or appear outside the fence/solid block even when they are already grown. It's really annoying. I have to breed my animals 2 times a day to prevent extinction. |
| Comment by Destinee Trenberth [ 13/Aug/14 ] |
|
If your animal can walk a straight 20 blocks in any direction it will despawn. My issue appears to be fixed as of the last update, no more dead chickens! However I now have new issues I didn't have before, ones that were supposedly fixed with this update are now causing ME trouble. WTF |
| Comment by Niknokinater [ 11/Aug/14 ] |
|
This could be my problem. I would have a Baby Cow in an area that has fence for the bottom block, and wood planks on top. I'd leave to do some mob killing and I would come back and discover a missing cow. When I see them grow up, they don't suffocate in the wall or something, but when I am gone and suppose they grow while I'm away, they disappear. There are no drops or evidence of them dying, but they could be despawning. |
| Comment by Spencer Stith [ 09/Aug/14 ] |
|
Happens in 14w32d. My baby cows keeps dying, and I can't repopulate! |
| Comment by Jonathan Neufeld [ 11/Jul/14 ] |
|
This just happened to one of my donkeys. Donkey got pushed inside a wall, suffocated, and died. All the items inside the donkey's chest flew all over the place and I had no room to store them anywhere. |
| Comment by Destinee Trenberth [ 26/May/14 ] |
|
Not only are animals dying but so are villagers; suffocating or getting stuck in the stupidest spots. I can't stupid proof my village anymore than I already have! |
| Comment by Daniel McQ [ 05/Apr/14 ] |
|
This is definitely happening to me in 14w11b with both chickens and cows (haven't tested with pigs). My chickens have a smaller enclosure (2x2) and die more frequently (during gameplay, probably when chunk gets unloaded then loaded). The cows' enclosure is a larger one (approx 8x15) and they seem to only die when I log back into my world. |
| Comment by Hartspoon [ 04/Mar/14 ] |
|
I just tested this in many versions from 1.6.2 to 14w08a, with 200 chickens in a 1x1 pit. Not even one chicken died when growing up. Can someone who noticed the bug before can test it on a recent snapshot? |
| Comment by Dominick Page [ 31/Jan/14 ] |
|
This still holds true for the current snapshot 14w05a. I've had a donkey and wolf both suffocate after I accidentally nudged them near a wall. |
| Comment by Kevin Lane [ 29/Jan/14 ] |
|
My horse was tethered outside my house and walked up against the wall and just started suffocating. It was free to walk away (not stuck) and the tether was even pulling it away from the wall, yet it stood there and died. Can't you just make mob's hitboxes (for damage/suffocation) slightly smaller than their collision hitbox to allow room for error? ...or as with players, let them be pushed out of a block when inside it? |
| Comment by John Smith [ 29/Jan/14 ] |
|
Not only does this still happen in 1.7.4, but it's a frightfully common bug and all mobs can do that, not just animals and not just babies. I have a zoo map where I have rooms with mobs of each kind, and each mob has PersistenceRequired:1 and Invincibility:1 tags. If a mob (let's say a cow) is near a thin wall (glass pane, iron bars, doors etc.) and then you quit and reload the world, in most cases it will already be on the other side of the wall. This can also happen if a mob pushes another one into a wall - mobs get stuck in it even if it's a solid thick wall made of 3 layers of stone. Thanks to invincibility tag, mobs didn't suffocate on my map and they were really stuck in the wall, with blackened colours. Squids and bats are especially prone to execute this bug. |
| Comment by someone314 [ 29/Jun/13 ] |
|
this seems to happen almost all the time with baby sheep growing up close to a wall and it ruins my sheep farm in survival |
| Comment by ArmEagle [ 18/Jun/13 ] |
|
A fix for this seems to have been made by people here, on a related issue: |
| Comment by Swiftykitty2K [ 18/Jun/13 ] |
|
13w25b confirmation. Baby Horses are a pain to look after in a pen due to them getting pushed into solid blocks and suffocating or just walking through fences/non-solid blocks. I really thought that Mojang would have fixed this by now. |
| Comment by fake fakes [ 23/May/13 ] |
|
Stin in 13w21a. MUCH easier to reproduce with horses. |
| Comment by user-7ff2f (Inactive) [ 10/May/13 ] |
|
This is still happening in 1.5.2 full release. |
| Comment by Christoph Lipka [ 27/Apr/13 ] |
|
still present in 13w17a |
| Comment by Nathan Gorzelanczyk [ 11/Mar/13 ] |
|
Mark This as Duplicate. Keep |
| Comment by Nathan Gorzelanczyk [ 11/Mar/13 ] |
|
This is related to my post of,,, MC-11349 |
| Comment by Gregory Brown [ 09/Mar/13 ] |
|
This is still happening in the 1.5 pre- release especially with chickens on top of hoppers for me |
| Comment by Kevin Lane [ 05/Mar/13 ] |
|
There are a lot of related bugs which are essentially duplicates. They are all related to the baby/adult collision box mix-up. |
| Comment by Kevin Lane [ 05/Mar/13 ] |
|
Still an issue in 13w10a. |
| Comment by Gregory Brown [ 02/Mar/13 ] |
|
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, |
| Comment by Tommaso Ricci [ 15/Feb/13 ] |
|
I have the same issue: ( |
| Comment by ChrisvA [ 14/Feb/13 ] |
| Comment by Morilibus [ 14/Feb/13 ] |
|
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. |
| Comment by Toni Salomäki [ 13/Feb/13 ] |
|
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. |