Source-checkedCreatures & NPCs

Mob Filter

by pcal43 · for Minecraft

Serverside rules to limit mob spawning

703KDownloads
40d agoLast updated
Apache-2.0License
Fabric · NeoForgeLoaders

About Mob Filter

From Modrinth

Serverside rules to limit mob spawning

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

Highlights

From source data

Game versions

Supports 28 Minecraft versions, the newest being 26.3.

Loaders

Runs on Fabric and NeoForge.

Footprint

Rated a light load on a server.

Mob Filter on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Required on the server
Server type needed
Fabric, NeoForge
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.29.0+26.3, released 2026-09-24

Game versions by loader

LoaderGame versionsNewest
Fabric26.2 to 26.3 (2 versions)26.3
NeoForge26.2 to 26.3 (2 versions)26.3

From 5 recorded builds of Mob Filter.

Recent builds

BuildReleasedGame versionsLoaders
0.29.0+26.32026-09-2426.3Fabric
0.29.0+26.32026-09-2426.3NeoForge
0.28.1+26.22026-09-2426.2Fabric
0.28.1+26.22026-09-2426.2NeoForge
0.28.0+26.22026-07-0926.2NeoForge

Run Mob Filter on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Creatures & NPCs

Adds or changes creatures, NPCs and how they behave.

Runs on your server

From source side support

Modrinth lists Mob Filter as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
FabricNeoForge
Runs on
Serverrequired on the server
Game versions
26.3 and 27 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓Authorpcal43, as published on Modrinth
  • ✓LicenseApache-2.0Free

Mob Filter, answered

Generated from the mod’s own source data.

Do my players need to install Mob Filter?

Modrinth lists Mob Filter as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Fabric and NeoForge.

Is it free?

Yes. Mob Filter is free to download from Modrinth. Its license is Apache-2.0.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Mob Filter on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add Mob Filter in one click.