#Modify default loot table for a block

1 messages · Page 1 of 1 (latest)

haughty crystal
#

Hey guys! How can I modify the loot table for a specific block with spigot, similar to how you could do it in a datapack?

harsh oracle
#

i didn't read it fully yet though

haughty crystal
#

That listens for an event and then drops a block, I'd preferably like to actually modify the loot table, such as in a datapack

harsh oracle
#

what's the crucial difference that you're looking for though?

haughty crystal
#

Mainly the ability to define pretty complicated block drops via the .json file

harsh oracle
#

oh

haughty crystal
#

but if that isn't possible I'll go with the solution you sent above!

harsh oracle
#

maybe something hacky with nms could work

#

why are you rejecting the idea of datapacks?

haughty crystal
#

You mean, a datapack in addition to the plugin?

harsh oracle
#

yeah

#

you could embed it in your plugin and have your plugin unpack it or something, not sure

haughty crystal
#

oh interesting

#

I'll look into that, thanks!

harsh oracle
#

i think there's a JavaPlugin#saveResource for files that are inside of your resources in your IDE

#

like, you can put any file there and have it loaded with that method

#

please take this with a grain of salt because i haven't used that method