Purpose
This mod provides ways to configure mob spawners, to discourage their use in mob farms or to incentivize players to seek and destroy them. It can be used on a forge server with vanilla clients, though you should refrain from using the custom spawners feature when doing so.
Default options
By default, this mod makes spawners break after having spawned 100 mobs.
Configuration
You can however configure it to :
- Change the max amount of mobs spawned before obsolescence
- Disable the spawner after obsolescence, instead of destroying it
- Disable all changes made for vanilla spawners, altering only the mod's own spawners.
- Make mobs be counted when they are killed rather than when they are spawned. This avoids cheesing a dungeon by waiting for the spawners to run out.
- Change the amount of experience dropped when broken by a player. The formula for this is :
exp = xpDropped + rand(randXpVariation) + rand(randXpVariation)
where xpDropped is a constant in the config and rand(randXpVariation) is a random value between 0 and randXpVariation (defined in the config) - Add items to drop when the spawner is broken by a player. This is done in the config as a list of items, with the notation "modid:itemid:count:meta:chance", with count, meta and chance being optional numbers. Chance is a number between 0 and 1 corresponding to the probability an entry has to drop. (ex: "minecraft:porkchop", "minecraft:wool:5:13", "minecraft:diamond:1:0:0.75")
- Change spawners' cooldown over time. Each time a mob is counted (spawn or kill), the associated spawner sees its cooldown multiplied by the amount set in the config, which is 1 by default (no change). So you can set it to something between 0 and 1 for exponential spawns or higher than 1 to have spawners with diminishing efficiency. Or negative for wacky behaviours, your call.
- Alter mob spawn conditions
- By disabling any entity-specific spawning check (like animals needing grass)
- By disabling any mob-specific spawning check (this is the same as above but restricted to hostile mobs, allowing slimes to spawn outside slime chunks for example)
- With this option enabled, you can make it so sunlight still prevents spawning, to avoid zombies spawning and burning instantly.
- Change the amount of experience dropped by spawned mobs
Custom Spawners
This mods lets you define custom spawners in its configuration. Those spawners will be dynamically added as new blocks and use their own config. They act exactly the same as the vanilla one but aren't affected by the alterVanillaSpawner config option (nbt works the same as well, anything using vanilla spawners should work with those ones). This allows you as a map maker to use as many spawners as you want, each with its own set of rules. Similar to vanilla spawners, they are by default only obtainable through commands. (their id is spawnercontrol:<name>). You can however enable a creative tab for the mod, in which every custom spawner will appear.
Video demonstrating custom spawners (bad in-game framerate warning) :
Note: Due to Forge's constraints, this mod doesn't work with primitive entities such as items, xp orbs, projectiles... If it looks inert there's a chance spawners of it won't be affected. On the other hand, anything that has an associated working spawn egg is guaranteed to work.
This mod was made on a request by Shivaxi
This mod really needs to get updated..
This is updated:
https://www.curseforge.com/minecraft/mc-mods/ageing-spawners
But only the breaking feature
Allow modded spawners to be added.
In reply to SlimeBro_132:
i second this
1.16.5???
Update?
In reply to ReachTea:
I am unlikely to do it myself, I don't really have the time for it currently.
Is there a formula to give a percentage to the amount of items spawners can drop when broken?
How do I put an enchanted item in the Spawner drops?
I changed the config to reward some stuff when breaking a spawner but it keeps returning it back as an error config.
How would someone go about accessing the config for this mod while its on a server?
In reply to imagenerousgod:
I guess I'm a bit late, but in case you still need it they are accessible as text files in the config folder. It's easier to edit using the ingame GUI though, so I'd recommend making the config on your client then copying the files over.
can some one make a mod so that its this but not only for spawners
(or is it in this mod)
In reply to SCRATHY049:
u searching for something like this? https://www.curseforge.com/minecraft/mc-mods/in-control
Could you add a function to somehow limit the max amount of mobs spawn by a spawner ?
Nothing like that exist after 1.12.x versions, would be great for ppl who want packs without spawner abuse^^.
is this server side?
nice mod.
btw i got an idea but you really dont need to pay attention to it
what about making a feature that limit the amount of the how many mob is alive per spawner. since if mob got out a certain range, there will just be more spawning till the total of mob can get to high amount.
example, there is a spawner and the how many mob alive per spawner is 6
then after spawning 6, they will stop till one of them died and replaced
it is just and idea that might be great but i hope you can made it
hope you luck
Is there a way to change the mob in the spawner like in vanilla? It seems whenever I try to use a spawn egg on the spawner it spawns a few mobs as if it worked for a second, but it still retains the original mob and will spawn that instead afterwards.
Is there a way to renable spawners after certain time? F.E: I want to make dungeons added by other mods to spawn certain amount of mobs, then the spawner turns disabled for 5 minecraft days, so people can do dungeons every 1 hour in my server. If it doesnt exist, could be a nice feature! Great mod!
In reply to pablonm7:
Hmm, I don't think that's doable with the current featureset. Would be quite neat indeed, but I'm not really working on this mod anymore. Sorry ^^'