Download Mob Filter — Minecraft Mods — MetaMods

Mob Filter

Active

Downloads

0

Last update

1 month ago

Versions

1.18 — 1.21.8
Server
Fabric
Utils

MobFilter

MobFilter is a Minecraft modification that provides players with tools to control mob spawning in the game world. With this mod, you can:

  • Completely prevent the appearance of specific creature types
  • Create protected zones where mobs cannot spawn
  • Configure spawning conditions based on biome, time of day, or light level
  • And much more

This mod operates on the server side and requires Fabric installation.

How It Works

MobFilter uses a flexible rule system that you configure yourself. When the game attempts to create a new mob, the mod checks your rules and decides whether to allow the creature's appearance.

After the first installation of MobFilter, two configuration files are created in the config folder: mobfilter.simple and mobfilter.json5.

Simple Configuration (mobfilter.simple)

Available in versions 0.19.0+1.21.7 and newer

If you simply need to remove certain mobs from the game, edit the mobfilter.simple file and add the identifiers of creatures you want to block:

# I don't want to see these mobs anymore:
minecraft:creeper
minecraft:phantom
minecraft:silverfish

You can also use negations and wildcards to filter groups of mobs:

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

# ...but I don't need all other vanilla mobs
minecraft:*

Advanced Configuration (mobfilter.json5)

For more precise control over mob spawning, use the mobfilter.json5 file. Although its configuration is more complex, it allows creating rules that consider various conditions:

  • Block position
  • Location (biome, world, dimension, block identifier)
  • Mob type (entity identifier or spawn group)
  • Time of day
  • Light level
  • Moon phase

Example rule for creating a safe zone:

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

Creation History

This mod was created so the author could play survival mode with his daughter, creating safe zones around their base. Although many mods exist for managing mob spawning, none offered exactly the features that were needed.

Support for Older Versions

As a rule, the author does not port the mod to older Minecraft versions, except in cases of critical vulnerabilities. Supporting all previous versions requires too much time and effort. However, pull requests from the community are accepted.

License

MobFilter is distributed under the MIT license. You can freely include it in your modpacks provided you attribute pcal.net.

Project members
pcal43

pcal43

Developer

Created: 25 Feb 2022

ID: 2979