MC ToolboxMC TOOLBOX

April 14, 2026

Mob Spawning Science: Spawn Caps, Light Levels & AFK Heights

Optimize mob farm rates by understanding local mob caps, despawn spheres, subterranean cave lighting, and AFK position math.

Have you ever built a massive 4-platform mob farm in survival, only to sit at the bottom and watch zero mobs fall down? Mob farm failures almost always come down to misunderstanding the game's spawning algorithm and mob caps.

The Global Hostile Mob Cap (70)

In singleplayer (or per player in 1.18+ multiplayer), the game caps hostile mobs at 70 per player. Once 70 hostile mobs exist in loaded chunks, no new mobs will spawn anywhere in your world!

Subterranean mob farm drop chamber with mob cap counters and lighting grids
Screenshot from the matching MC Toolbox tool.

The 128-Block Despawn Sphere

Mobs spawn between 24 and 128 blocks away from the player. Any mob that moves further than 128 blocks from the player instantly despawns!

If there are unlit dark caves below your mob farm within 128 blocks of your AFK spot, mobs will spawn in those caves, fill up the 70 mob cap, and completely shut down your farm.

How to Fix Low Farm Rates

  1. Build your AFK Platform high in the sky: Stand at Y=200 above an ocean so the 128-block sphere around you does not touch any underground caves.
  2. Ensure Light Level 0: Since version 1.18, hostile mobs only spawn in complete darkness (Block Light = 0).
  3. Use Tinted Glass or Slabs: Prevent accidental spawn blocks on roof surfaces.

Calculate farm XP and mob drops with our Mob XP Calculator!

Gio Nui

Gio Nui

I'm an independent developer and long-time Minecraft creator. Since 2011, I've been focused on building high-performance, browser-based tools for the community.

More Guides