promotional bannermobile promotional banner

MobRules

Order your mobs à la carte, not from a set menu - pick exactly what spawns in your world.
Back to Files

MobRules NeoForge v1.1 for 26.2

File namemobrules-1.1+26.2.jar
Uploaded
Aug 4, 2026
Downloads
25
Size
24.4 KB
Mod Loaders
NeoForge
File ID
8577467
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:mobrules-1334628:8577467"

Learn more about Curse Maven

What's new

v1.1 Changelog

This update introduces a major refactor of the spawning logic to provide more granular control and better integration with modded mobs.

Changes

  • Unified Mob Classification: Mobs are now classified into three distinct categories (Hostile, Farm, and Aquatic) based on their vanilla spawn category. This ensures automatic support for modded mobs.
  • Improved Control Modes: Each category now supports three levels of control: allow_all, block_all, and allowlist.
  • Category Overrides: Added a new category_overrides.json configuration file, allowing you to reclassify any mob into a different category (e.g., treating a frog as an aquatic animal instead of a farm animal).
  • In-Game Commands: Introduced the /mobrules command system (requires operator permission level 2):
    • /mobrules status: View current control modes and allowlist sizes.
    • /mobrules reload: Reload configurations and allowlists from disk without restarting.
    • /mobrules allow <category> <mobId>: Add a mob to a specific allowlist in-game.
    • /mobrules disallow <category> <mobId>: Remove a mob from an allowlist in-game.
  • Persistence: Allowlist changes made via commands are now automatically saved to their respective JSON files.
  • Unified Config File: Spawn-control settings moved from a per-world SERVER config to a single global COMMON config (config/mobrules-common.toml), so the same rules apply on both the client and the server. Note: existing per-world serverconfig/mobrules-server.toml files are no longer used.
  • Config Loading: Allowlists and category overrides are now loaded on client initialisation and on server start, rather than during common setup.
  • Updated Dependencies: Updated Gradle wrapper to 8.14.5 and properties to reflect the latest project standards.

Fixes & Technical Improvements

  • Refactored MobSpawnHandler to use a single evaluation point per mob, improving performance and consistency.
  • Standardized config file management in the config/mobrules/ directory.
  • Switched to atomic configuration reloads to ensure thread safety during spawn evaluations.

This mod has no related projects