CyclopsMC / EnergeticSheep

Sheep that generate energy
MIT License
6 stars 6 forks source link

Optional Config To Disable Energetic Sheep Spawn #36

Open TheWireLord opened 1 month ago

TheWireLord commented 1 month ago

Issue type:


Short description:

It would be great to have an option in the Config File that allows you to enable or disable the natural spawning of Energetic Sheep in the world. Maybe adjust the spawn rate too?

This would instead require the player to create a Lighting Rod or have a Trident with the Channeling Enchant to conduct the lighting to their sheep if they wanted to start an Energetic Sheep farm. Or of course just wait for it to happen naturally.

For now I've just created a Datapack that edits the spawn_energetic_sheep_overworld.json file to look like this:

{
  "replace": true,
  "type": ""
}

And I think this works to prevent them spawning for now. (Hard to confirm that something NEVER spawns in an infinite world lol)

Anyway, love your mods! They are some of the core mods that keep my server interesting.

Thanks for all of your hard work!

rubensworks commented 1 month ago

Thanks for the suggestion!

rubensworks commented 1 month ago

The datapack approach is the correct way to do this indeed. It also allows you to modify the spawn rate and such. Since datapacks are much more expressive than config files, this is the best way to handle such configurations.