
Add configurable drop chance
srnyx opened this issue ยท 12 comments
It would be cool if there were a config file that could change the drop chance of spawners.
In my server, I have many dungeons that have spawners in them, so I'd want like a 50% drop chance so that it doesn't become too OP.
Quick question:
How can I make it so spawners that have already been mined have a 100% chance of dropping?
just replace this loot table file in a datapack.
What part would I change exactly to make it a 50% (or lower) chance of dropping?
And where would I put the file?
just replace this loot table file in a datapack.
https://minecraft.fandom.com/wiki/Data_Pack
https://minecraft.fandom.com/wiki/Loot_table
And where would I put the file?
just mirror the folder structure from the mod, i.e. data/silky_spawners/loot_tables/blocks/spawner.json
I looked there already, but I barely understand any of it and how to change the chance of dropping it.
On second thought, I'll just ask someone I know that makes datapacks for a living lol
Would this work (made by CommandGeek, not me)?
Silky Spawners.zip
No, you put the loot table in the wrong namespace. (And you also missed a few bits, your spawners wouldn't have lore tags)
Ok, how about this (made by CommandGeek again, not me)?
Silky_Spawners_Datapack.zip