Skip to content
[/craft]

Disable Entity Cramming

Stop mobs from suffocating when crowded

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Sets the entity-cramming limit to 0, which disables cramming damage entirely — mobs and players packed into one block no longer suffocate. Essential for dense mob farms and animal pens where the default limit of 24 quietly kills your stock.

/gamerule maxEntityCramming 0
29 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. Crowded mobs stop taking cramming damage.
  4. Set it back to 24 to restore vanilla behaviour.

Related commands

Keep your items when you die instead of dropping them

/gamerule keepInventory true

Freeze time so it's permanently daytime

/gamerule doDaylightCycle false

Stop rain and keep the weather clear

/gamerule doWeatherCycle false

Stop creepers, endermen, and other mobs from changing blocks

/gamerule mobGriefing false

Turn off fall damage

/gamerule fallDamage false

Stop fire from spreading to nearby blocks

/gamerule doFireTick false