HomeJavaModsMob Limiter
Mob Limiter

This mod lets you control mob spawning by setting per-chunk and world limits, helping to prevent overcrowded farms or excessive mob spawns.

Features

Configuration

Customize limits and despawn behavior in config/moblimiter.json5. Example:

{
  // Vanilla despawn settings
  // mode: "vanilla" (default rules), "custom" (set min/max distance), "disabled" (persistent mobs)
  "vanilla_despawn": {
    "mode": "custom",
    "min_distance": 32.0, // Min distance (blocks) to despawn (for "custom" mode)
    "max_distance": 128.0 // Max distance (blocks) to despawn (for "custom" mode)
  },
  
  // World-wide mob limits
  // enabled: true/false to toggle world limits
  // total: Max mobs in the world (-1 for unlimited)
  // removal_type: "despawn" (silent) or "kill" (drops loot)
  "world_limits": {
    "enabled": true,
    "total": 500, // Total mobs allowed in the world
    "removal_type": "despawn",
    "mobs": {
      "minecraft:cow": 100, // Max 100 cows in the world
      "minecraft:pig": 100, // Max 100 pigs in the world
      "minecraft:zombie": 50 // Max 50 zombies in the world
    }
  },
  
  // Per-chunk mob limits
  // enabled: true/false to toggle chunk limits
  // default.limit: Default mob cap per chunk (-1 for unlimited)
  // removal_type: "despawn" (silent) or "kill" (drops loot)
  "chunk_limits": {
    "enabled": true,
    "removal_type": "despawn",
    "default": { "limit": 20 }, // Default limit for unspecified mobs
    "mobs": {
      "minecraft:cow": 10, // Max 10 cows per chunk
      "minecraft:pig": 10, // Max 10 pigs per chunk
      "minecraft:chicken": 10, // Max 10 chickens per chunk
      "minecraft:creatures": 15, // Max 15 creatures (animals) per chunk
      "minecraft:*": 8 // Max 8 of any other Minecraft mob per chunk
    }
  }
}

Usage

Follow these steps to set up and use Mob Limiter:

  1. Install the Mod:
    Add Mob Limiter to your server (client installation is optional). The mod is server-side and works without requiring clients to install it.

  2. Configure Limits:
    After launching the server, find config/moblimiter.json5 in the server directory. Edit the file to set your desired limits and despawn behavior (see the example above). Save the file after making changes.

  3. Apply Changes:
    Run /moblimiter reload in-game or via the server console to apply changes without restarting.

  4. Check Settings:
    Use /moblimiter info to view the current configuration, including despawn mode, world limits, and chunk limits.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more