Adding new magnetic items

For this example we want to add sticks as a magnetic item.

Magnetic items are mostly used by Jiki Jiki no Mi for its abilities however all magnetic items are rusty items as well and those are counted for Sabi Sabi no Mi's abilities.

  1. In your datapack workspace you'll have the following path: /data/mineminenomi/tags/items/magnetic.json.

  2. Unlike loot tables tags do not replace the entire file by default, but instead append them all together. This can be problematic since if an item fails (such as being written wrongly) there's a chance most or all others won't work either.

  3. The JSON for our new magnetic.json file should look like so:

{
  "replace": false,
  "values": ["minecraft:stick"]
}

Notice the replace: false part, that is extremely important as we want it to be false so our new items are combined with the already defined ones from the mod. If you want to replace all items from this collection set this to true.

Last change: 2024-08-14