mojira.dev
MC-154235

Baby mobs are getting crammed into corners, making them not consider all mobs in the same block for cramming damage

The Bug

Baby mobs tend to get pushed into one of the 4 corners of the block, when there is a high amount of mobs in that block. For cramming damage, they only consider mobs within the same corner for cramming damage, and not all mobs within the same block

How to reproduce

  1. /gamerule maxEntityCramming 1

  2. Go into one corner of the block

  3. /summon minecraft:piglin ~ ~ ~ {IsBaby:true}

  4. Quickly leave the corner to prevent the piglin being damaged by the player entity

  5. Go into the opposite corner and run the same command again

  6. Leave the block
    → ❌ The baby piglins do not receive entity cramming damage.

Attachments

Comments 5

Cannot reproduce in 20w30a

From my testing, baby zombified piglins (or zombified baby piglins?) are pushed into all 4 corners. The game only considers the piglins from the same corner for cramming, and not all entities from the same block. That has the effect, unless there are a ton of baby piglins, that only adult piglin receive cramming.

This seems to be true for all baby mobs

Can confirm in 1.16.4

I've tried to replicate this issue in Minecraft 1.19 since my gold farm was not running as efficiently as I need, so I came up with a solution using a stair in the block where the zombified piglins will head to. This will force zombified piglins to step on half the space and will not push baby zombies to the corners. A screenshot with entity hitboxes shown was attached to this track, so you can see my idea.

 

Hope it works for most of you guys

Entity cramming has never been a value of "max amount of mobs per block", it's been "entity starts suffocating of <number> other entities collide with it".

Baby mobs have smaller hitboxes that just don't cover a full block.
The same can be experienced with silverfish, endermites and chickens.

This is just how the gamerule was designed.

Pardiac Antoine

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.14.2, 1.16.1, 20w30a

Retrieved