Mob Filter

Mob Filter

Serverside rules to limit mob spawning

by
690.2K Downloads
fabricneoforgegame-mechanicsmobsutility
Rent Server with this Mod

About this Mod

MobFilter

MobFilter is a Minecraft mod that allows you to limit spawning of mobs in
your world. You can use it to

  • Completely prevent particular mobs from ever spawning
  • Create safe zones in your world where mobs aren't allowed to spawn.
  • Limit mob spawning to specific biomes, times, or light levels
  • Fabric and NeoForge support
  • ...and more

Now with NeoForge support!

Usage

MobFilter uses a flexible, rule-based filtering system that you configure.
When Minecraft wants to spawn a new mob, MobFilter checks the rules you
provide to see if the spawn should be 'vetoed.'

The first time you run Minecraft with MobFilter installed, two empty
configuration files will be created in the config directory of your
minecraft installation: mobfilter.simple and mobfilter.json5.

Simple Configuration (mobfilter.simple)

Only available in versions 0.19.0+1.21.7 and later.

If you just want to remove some mobs from the game, edit
mobfilter.simple and add a list of the
mob ids that you want to prevent spawning:

# I never want to see these mobs again:
minecraft:creeper
minecraft:phantom
minecraft:silverfish

You can also use negations and wildcards to filter out most or all of
the mobs in a namespace:

# I love cats, so don't filter them...
!minecraft:cat

# ...but I don't want ANY other vanilla mobs
minecraft:*

See the documentation for more details.

Advanced Configuration (mobfilter.json5)

If you need more detailed control over mob spawning, you can instead edit
mobfilter.json5. This file is a bit more
complicated to configure but it allows your filtering logic to test for more
complicated conditions, including:

  • Block Position
  • Location (Biome, World, Dimension, BlockId)
  • Mob Type (EntiyId or SpawnGroup)
  • Time of Day
  • Light Level
  • Phase of moon

For example, if you want to prevent hostile mobs from spawning in a specific
area, you could add a rule like this:

{ 
  rules : [
    {
      name : "Safe Zone",
      what : 'DISALLOW_SPAWN',
      when : {
        category : [ 'MONSTER' ],
        dimensionId : [ 'minecraft:overworld' ],
        blockX: [ -128, 234 ],
        blockY : [ 63, 'MAX' ],
        blockZ : [ -321, 512 ]
      }
    }
  ]
}

See the documentation for more details.

Why This Mod?

I wrote this mod because I wanted to be able to be able to play survival
minecraft with my daughter, and that meant we had to have a mob-free area
around our base. There are numerous other mods out there that manage mob
spawning but none of them did quite what I needed them to do.

Backports?

As a rule, I don't do backports unless critical security issues are involved.
It's just too much tedious work to backport every mod feature to every old
version. But I'm happy to accept PRs if you want to do one yourself.

Legal

This mod is published under the MIT License.

You're free to include this mod in your modpack provided you attribute it
to pcal.net.

Questions?

If you have questions about this mod, please join the Discord server:

https://discord.pcal.net

Available Versions

0.28.0+26.2 (neoforge)release
MC 26.2neoforge
July 9, 2026
0.28.0+26.2 (fabric)release
MC 26.2fabric
July 9, 2026
0.27.0+26.1.2 (fabric)release
MC 26.1.2fabric
April 14, 2026
0.27.0+26.1.2 (neoforge)release
MC 26.1.2neoforge
April 14, 2026
0.26.1+26.1.1 (fabric)release
MC 26.1.1fabric
April 14, 2026

How to Install Mob Filter 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 (26.2).

3

Install Mod

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

Compatibility

Mod Loaders

fabricneoforge

Minecraft Versions

26.2, 26.1.2, 26.1.1 (+24 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Mob Filter 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 (26.2). You can switch loaders with one click in the panel.

Is Mob Filter compatible with fabric and neoforge?

Mob Filter officially supports fabric, neoforge for Minecraft 26.2, 26.1.2, 26.1.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Mob Filter – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mob Filter 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 Mob Filter with just one click on your server.

Recommended RAM
4 GBfrom €5.2/mo
Minimum 3 GB | per 8 players
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Apache License 2.0
Server-side
Required

Supported Versions

26.226.1.226.1.126.11.21.111.21.101.21.91.21.81.21.71.21.6+17 more