Mob Limiter

Mob Limiter

Set per-chunk and world limits to manage mob spawning and prevent overcrowded farms.

by
20.1K Downloads
forgeoptimizationutility
Rent Server with this Mod

About this Mod

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

Features

  • Chunk Limits: Restrict mob counts per chunk to avoid overcrowding.
  • World Limits: Set global caps for total mob populations.
  • Targeted Limits: Apply restrictions to specific mobs, categories, or namespaces.
  • Modded Mobs: Supports mobs registered in Forge.
  • Excess Handling: Remove excess mobs via silent despawn or kill with loot and experience.
  • Despawn Control: Choose vanilla rules, custom despawn ranges, or persistent mobs.
  • Commands:
    • /moblimiter reload: Refresh config without server restart.
    • /moblimiter info: Display active settings.
  • Priority System: Limits prioritize specific mobs, then categories, namespaces, and defaults.
  • Optimized: Asynchronous processing ensures smooth server performance.

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.

Available Versions

[v1.1.0]release
MC 1.20.1forge
April 15, 2025
[v1.0.0]release
MC 1.20.1forge
February 23, 2025

How to Install Mob Limiter on Your Server

1

Order Server

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

2

Set forge Loader

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

3

Install Mod

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

Compatibility

Mod Loaders

forge

Minecraft Versions

1.20.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Mob Limiter server crashes on startup – what to do?

Most common cause: wrong forge 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.20.1). You can switch loaders with one click in the panel.

Is Mob Limiter compatible with forge?

Mob Limiter officially supports forge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Mob Limiter – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mob Limiter 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 Limiter 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.20.1