Custom Box Loot

For this example we want to replace all fruits from the wood boxes with Goro Goro no Mi.

  1. 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.

  2. This will replace the wooden_box.json file inside the dfboxes category for the mineminenomi mod. These names must be respected fully for replacing the correct file. For example adding a wooden_boxes.json file in the same folder would do nothing, since the mod does not recognize or use such a file.

  3. 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.

Last change: 2024-08-14