mojira.dev
MC-108731

maxEntityCramming counts passengers and ridden entities as separated entities instead of one combined

After setting maxEntityCramming to 1, every entity riding another (or being ridden) get suffocated by this gamerule. As Jeb_ mentioned: "In other words, if one entity tries to push more than 24 other entities".
Passengers do not push ridden entities, and ridden entities do not push passengers, so maxEntityCramming should not count ridden and passenger as crammed ones.
Now passengers suffocate, but ridden entity doesn't when maxEntityCramming is 1. Both shouldn't suffocate.
Also 2 passengers of one boat shouldn't count as crammed entities, because they don't push each other. Now are counted as crammed. To reproduce set gamerule to 2, push a pig into boat and get into the boat. - this was fixed
All entities that are merged with relation passenger-being ridden should be counted as one combined entity, even when creating a tree-like relation (pig riding pig riding cow riding chicken riding cat riding dog), because they don't push each other.

Linked issues

Comments 25

Working as intended?

If this gamerule is really based on how many entities push each other, then this report should be valid because in the situations described by @unknown the mobs are not really pushing each other (or at least they should not)

Not fixed in 16w44a: an entity still crams its passengers with
maxEntityCramming = 1

Confirmed for 17w18a.

For example this also applies to e.g. mobs riding a non-living entity like a minecart.
If you set maxentityCramming to 1, the minecart's Passenger will suffocate and die.

Commands for testing:

/gamerule maxEntityCramming 1
/summon minecart ~ ~1 ~ {Passengers:[{id:"zombie_pigman"}]}

Confirmed for 1.12 pre-1.

15 more comments

Confirmed for 1.13.1 pre-1.

18w49a affected

Confirmed for 19w03c.

Confirmed for 19w07a.

Confirmed for 1.14.2 pre-3.

Irbis

(Unassigned)

Confirmed

Entities

Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, ..., 20w06a, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2, 21w16a

Minecraft 16w44a

Retrieved