Mobs Blocker is a simple and effective admin tool to prevent any mob from spawning on your server via a simple command.
Mobs Blocker has been completely re-architected to give you granular control over entity spawning. Stop mobs based on specific conditions (natural spawns, spawners, eggs) or apply rules globally across mob categories.
⚠️ UPDATE NOTICE: This mod has been rewritten and currently ONLY supports version 1.2.0. For version 1.1.0, please check the GitHub repository. Versions below 1.1.0 are no longer supported.
Mobs Blocker intercepts every entity spawn attempt and checks rules in this specific order:
minecraft:zombie)monsters)monsters or water_creatures).HashSet lookups and hooks into NeoForge events for minimal performance impact.When adding a rule, you define what to block. You can block specific sources or use "Inverse Mode" to allow only specific sources.
| Rule Keyword | Effect |
|---|---|
all |
Blocks ALL spawns for this target. |
natural |
Blocks natural spawns (darkness, biome generation). |
spawner |
Blocks mob spawners (dungeons, trial spawners). |
egg |
Blocks spawn eggs and dispensers. |
command |
Blocks /summon or command block spawns. |
!natural |
Inverse: Blocks everything EXCEPT natural spawns. |
!spawner |
Inverse: Blocks everything EXCEPT spawners. |
!command |
Inverse: Blocks everything EXCEPT commands. |
All commands require OP Level 4.
add)Target a single entity type.
/spawnblocker add minecraft:zombie all
/spawnblocker add minecraft:creeper natural
/spawnblocker add minecraft:skeleton !spawner
preset)Apply rules to groups of mobs.
Available categories: monsters, creatures, ambient, water, misc.
/spawnblocker preset monsters natural
/spawnblocker preset ambient all
global)Apply a fallback rule to the entire server.
/spawnblocker global natural
/spawnblocker remove minecraft:zombie
/spawnblocker remove preset monsters
/spawnblocker list
/spawnblocker reload
/spawnblocker reset
The configuration is saved automatically to config/spawnblocker.json. You can edit this file manually if the server is stopped.
Example spawnblocker.json:
{
"minecraft:phantom": [
"all"
],
"preset:monsters": [
"natural"
],
"minecraft:zombie": [
"!spawner"
],
"global_settings": [
"command"
]
}