Custom Box Loot
For this example we want to replace all fruits from the wood boxes with Goro Goro no Mi.
-
In your datapack workspace you'll have the following path:
/data/mineminenomi/loot_tables/dfboxes/wooden_box.json
. In order to find the correct names and files that the mod does recognize you can open the mod's jar file and navigate through the/data/mineminenomi/loot_tables
path. -
This will replace the
wooden_box.json
file inside thedfboxes
category for themineminenomi
mod. These names must be respected fully for replacing the correct file. For example adding awooden_boxes.json
file in the same folder would do nothing, since the mod does not recognize or use such a file. -
The JSON might look something like this:
{
"pools": [
{
"name": "mineminenomi:fruits",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"weight": 100,
"name": "mineminenomi:goro_goro_no_mi"
}
]
}
]
}
This will fully replace the wooden box's loot with only Goro Goro no Mi, since its the only entry in the pool that means it has a 100% chance of dropping. However keep in mind the drop chance of an item is equal with its weight divided by the sum of all the weights in that pool.