Closed Derpford closed 3 years ago
{
"pack": {
"pack_format": 6,
"description": "Changes the loot dropped by eldritch mobs."
}
}
If you'd like to refer to a specific item but don't know what to call it in the loot table, use F3+H in the game to enable advanced tooltips. Then find the item and read the tooltip, which will say something like "minecraft:stick" or "terrestria:redwood_leaves"
If you'd like to check whether an arbitrary mod can be adjusted with datapacks, use a tool like 7zip to decompress the .jar. Everything in the resources/assets folder can be replaced using a resource pack. Everything in the resources/data folder can be replaced using a datapack. You can also see the exact folder structure you'll have to use by doing this.
That should be plenty to get you going =]
added in latest update
The easiest way to do this would probably be to add a loot table that can be modified via datapack. This may even already be possible, as the loot table for Eldritch drops is sitting pretty in
src/main/resources/data/eldritch_mobs/loot_tables/entities/elite_loot.json
. It may just be a matter of documenting this and providing an example configuration. I don't 100% understand the datapack format myself, unfortunately, so IDK exactly how this would work on your end.