Mobs Blocker

Mobs Blocker

Mobs Blocker is a simple and effective admin tool to prevent any mob from spawning on your server via a simple command.

by
20.4K Downloads
fabricforgeneoforgemanagementoptimizationutility
Rent Server with this Mod

About this Mod

Mobs Blocker

Advanced Spawn Control for Your Server

NeoForge
GitHub
MCreaHub
License

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.

Report a Bug or Suggest a Feature

⚠️ 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.


🚀 How It Works & Core Features

The Logic System

Mobs Blocker intercepts every entity spawn attempt and checks rules in this specific order:

  1. Specific Rules: Is there a rule for this exact Entity ID? (e.g., minecraft:zombie)
  2. Preset Rules: If not, is there a rule for its Category? (e.g., monsters)
  3. Global Rules: If not, is there a Global rule set?

Key Features

  • Granular Control: Block mobs based on how they spawn (Natural, Spawners, Eggs, Commands).
  • Smart Presets: Apply rules to entire categories (e.g., block all monsters or water_creatures).
  • Global Settings: Apply a rule to every entity on the server instantly.
  • In-Game Management: Full command system with auto-completion.
  • Zero Lag: Uses optimized HashSet lookups and hooks into NeoForge events for minimal performance impact.
  • Server-Side Only: Clients do not need to install this mod.

📜 The Rules System (Understanding Block Types)

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.

💻 Command Guide (Usage Examples)

All commands require OP Level 4.

1. Specific Mob Control (add)

Target a single entity type.

  • Block Zombies completely:
    /spawnblocker add minecraft:zombie all
    
  • Block Creepers from spawning naturally (but allow spawners/eggs):
    /spawnblocker add minecraft:creeper natural
    
  • Allow Skeletons ONLY from Spawners (Inverse Mode):
    /spawnblocker add minecraft:skeleton !spawner
    

2. Category Presets (preset)

Apply rules to groups of mobs.
Available categories: monsters, creatures, ambient, water, misc.

  • Block all Monsters from spawning naturally:
    /spawnblocker preset monsters natural
    
  • Disable all ambient creatures (Bats, etc.):
    /spawnblocker preset ambient all
    

3. Global Settings (global)

Apply a fallback rule to the entire server.

  • Disable Natural Spawning server-wide (Adventure mode style):
    /spawnblocker global natural
    

4. Management & Utilities

  • Remove a rule:
    /spawnblocker remove minecraft:zombie
    /spawnblocker remove preset monsters
    
  • List active rules:
    /spawnblocker list
    
  • Reload Config (from disk):
    /spawnblocker reload
    
  • Reset Everything (Wipe Config):
    /spawnblocker reset
    

📂 Configuration File (Manual Editing)

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"
  ]
}

Available Versions

Mobs Blocker 1.0.8release
MC 1.21.4neoforge
February 22, 2025
Mobs Blocker 1.0.5-1release
MC 1.21.1neoforge
November 14, 2024
Mobs Blocker 1.0.4-1release
MC 1.21.1neoforge
November 12, 2024
Mobs Blocker 1.0.4release
MC 1.21.1neoforge
November 11, 2024
Mobs Blocker 1.0.3-5release
MC 1.21.1neoforge
November 10, 2024

How to Install Mobs Blocker on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.8).

3

Install Mod

Open the mod browser in the dashboard and search for "Mobs Blocker". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforge

Minecraft Versions

1.21.8, 1.21.4, 1.21.1 (+5 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Mobs Blocker server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.

Is Mobs Blocker compatible with fabric and forge and neoforge?

Mobs Blocker officially supports fabric, forge, neoforge for Minecraft 1.21.8, 1.21.4, 1.21.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Mobs Blocker – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mobs Blocker consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Mobs Blocker with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.81.21.41.21.11.20.61.20.41.20.11.19.41.19.2