This mod is intended to add to vanilla gameplay by making spawners more useful and fun.
Features:
- Mine spawners with any tool enchanted with silk touch.
- Clear a spawner's monster by using a specific item on it.
- Once cleared a spawner will begin spawning the next mob to die within a configured radius of it, if that mob is spawnable.
- The item used to clear a spawner is configurable.
- The mobs a spawner can be set to spawn are configurable.
- The silktouch enchanted tools that may be used to mine a spawner are configurable.
- The radius around a blank spawner in which a mob's death will cause the spawner to spawn it is configurable.
This fabric mod is server side only and makes no changes client side. Install in the mods folder of your dedicated server or single player world. A config file will be generated on the first run with descriptions of each configuration. It only requires the Fabric API.
Config: betterspawners.json
The following configurations are available:
Config | Default Value | Details |
---|---|---|
enable_silktouch_spawner | true | Disables mining a spawner with silktouch if set to false. |
enable_clear_spawner | true | Disables clearing a spawner if set to false. |
clear_spawner_item | end_crystal | The item that can be used on a spawner to clear its spawn creature. |
enable_spawner_hostile_mobs | true | Disables spawners from being set to spawn hostile mobs if set to false. |
enable_spawner_passive_mobs | false | Disables spawners from being set to spawn passive mobs if set to false. |
enable_spawner_mob_list | [ ] | A comma separated list of mobs a spawner can be set to spawn. This can override disabled hostile and passive mobs. |
spawner_death_radius | 2 |
The radius within a mob must die from a blank spawner for it to spawn that mob, if mob is configured to be spawnable. Min: 1 Max: 48 |
spawner_mining_tools | [ Stone Pickaxe, Iron Pickaxe, Golden Pickaxe, Diamond Pickaxe, Netherite Pickaxe ] | The silktouch tools that can be used to mine a spawner. This does not affect mining speed. |
This mod is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.
Special thanks to LordDeatHunter who created SilkSpawners, which served as an inspiration for this mod.