A mob switch fills the mob cap so nothing spawns around your base, or so every spawn is funneled into the one farm you leave open.
⚠ SPAWNS ON✓ SPAWNS OFF
SWITCH
HOSTILE MOB CAP
FULL
HOLD CELL
one lever flips it a full cap = no spawns
Cram enough mobs into a hidden cell to fill the hostile mob cap, and nothing else can spawn. A master switch turns that cap on and off, so you control whether mobs appear at all.
What you need
A lever as the master switch
Name tags to keep mobs
Minecarts or boats to hold them
Redstone to wire the toggle
Fill the cap, block the spawns
Minecraft only loads so many mobs at once. Hold a big batch in a hidden cellkept in minecarts or boats and name-tagged so they never leave, and the mob cap stays full. With the cap full, nothing else can spawn, so your base is dark-safe and any farm you leave open gets every spawn. A lever toggles the whole thing on and off.
Quick answers
What is a mob switch in Minecraft?
It is a build that stops hostile mobs from spawning by filling the mob cap. You keep a big batch of mobs loaded in one hidden spot, which uses up the game's spawn budget, so nothing new can appear around your base or your farms.
How does a mob switch work?
Minecraft only allows so many mobs loaded at once, the mob cap. If you hold enough mobs in a cell you control, the cap stays full, and the game cannot spawn more anywhere else nearby. A switch turns that holding area on and off so you choose when spawns are blocked.
What do you use to fill the mob cap?
A pile of held mobs. Builders cram mobs into a small cell, often in minecarts or boats so they stay put, and use name tags so they never despawn. Keeping that group loaded is what holds the cap full.
Why would you want a mob switch?
Two reasons: a dark, safe base where nothing spawns even without torches, and faster farms. If the only place mobs are allowed to spawn is your farm, you turn the switch off there and every spawn goes into your collection instead of being wasted elsewhere.
Is a mob switch cheating?
No, it is a vanilla mechanic. It just uses the mob cap the game already enforces, so it works in normal survival. Many large technical bases run one to keep the world calm and their farms running at full speed.
Does a mob switch work on Bedrock?
The idea carries over, but Bedrock counts mobs per player and handles the cap differently, so Java mob switch designs are not reliable on Bedrock and usually need a Bedrock-specific approach.
The game only spawns so many hostile mobs at once, so a large number of mobs kept loaded in one place stops them spawning everywhere else. That is the entire principle, and it is why a mob switch makes an unlit base safe without a single torch.
Turning it off has to be deliberate
A switch that cannot be disabled also stops your mob farms working, so the useful version is one you can unload or kill on demand. Most designs put the held mobs in a chunk you can stop loading rather than in a chamber you have to empty.
It changes the whole world, not one area
Because the cap is global, a mob switch affects every player on a server. That makes it a decision for the server rather than for a base, and on a shared world it is worth agreeing on before someone builds one.