Mob Spawner Control

This modification provides advanced configuration options for mob spawners in Minecraft, allowing to limit their excessive use in mob farms or encourage players to destroy them to obtain resources. The mod is compatible with Forge servers and vanilla clients, although when integrating with vanilla clients it's recommended to avoid using the custom spawners functionality.
Main Configuration Options
Default Behavior
By default, spawners are destroyed after generating 100 mobs, which limits their use for mass production.
Advanced Parameters
- Generation Limit: Changing the maximum number of mobs after which the spawner becomes inactive
- Deactivation Mode: Option to disable the spawner instead of completely destroying it
- Counting Criteria: Counting mobs upon their destruction rather than spawning, preventing the possibility of waiting for "depletion" in dungeons
- Experience acquisition formula when destroyed:
exp = xpDropped + rand(randXpVariation) + rand(randXpVariation)where xpDropped is a configuration constant, rand(randXpVariation) is a random value between 0 and randXpVariation
- Experience acquisition formula when destroyed:
Additional Features and Conditions
- Item Drops: Adding loot drops when the spawner is destroyed by a player (syntax: "modid:itemid:count:meta:chance")
- Temporal Changes: Multiplier for spawner cooldown time with each generation/destruction operation
- Spawn Conditions: Changing the conditions for mob spawning from spawners:
- Disabling specific checks for all entities
- Disabling checks exclusively for hostile mobs
- Preserving sunlight influence to prevent zombies from instantly burning
- Experience Adjustment: Configuring the amount of experience gained from mobs when killed
Custom Spawners
The modification allows creating custom spawner types through configuration files. These blocks function like standard ones but are managed by independent settings. Each custom spawner can be finely tuned, making it ideal for map makers and modpack creators.
Spawner code is formed as spawnercontrol:
Important Note: Due to Forge constraints, the modification does not interact with primitive entities (items, experience orbs, projectiles). For proper functioning, a corresponding spawn egg must be available.