Silky Spawners

Silky Spawners

78.2k Downloads

Add configurable drop chance

srnyx opened this issue ยท 12 comments

commented

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.

commented

Quick question:
How can I make it so spawners that have already been mined have a 100% chance of dropping?

@UpcraftLP

commented

You can simply change the loot table via a datapack ;)

commented

You can simply change the loot table via a datapack ;)

How?

commented

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?

commented

just replace this loot table file in a datapack.

commented

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

commented

https://minecraft.fandom.com/wiki/Loot_table

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

commented

Would this work (made by CommandGeek, not me)?
Silky Spawners.zip

commented

No, you put the loot table in the wrong namespace. (And you also missed a few bits, your spawners wouldn't have lore tags)

commented

Ok, how about this (made by CommandGeek again, not me)?
Silky_Spawners_Datapack.zip

commented

seems fine. but why not just test it?

commented

Quick question:
How can I make it so spawners that have already been mined have a 100% chance of dropping?