Datapack Utils

Datapack Utils

Mod

Adds extra utility features to datapacks

Server Game MechanicsUtility

43 downloads
1 follower
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Datapack Utils

Let's you do more things with datapacks.

As modern mods are technically also datapacks, you can use this to add fuels or compostables for your mod as well!

Examples:


Custom Fuels

This file allows you to specify custom fuels.

Do not try to override vanilla/modded entries!

Fields:

  • item the item to add the entry to.
  • tag the tag to add the entry to. If both this and the item field are present, only this one will be added.
  • duration fuel ticks for this entry. Coal has 1600.

data/<namespace>/utils/custom_fuels.json

[
  {
    "item": "minecraft:dirt",
    "duration": 2000
  }
]

Will add minecraft:dirt as a fuel, with a burn time of 2000 ticks.


Custom Compostables

This file allows you to specify custom compostable items.

Do not try to override vanilla/modded entries!

Fields:

  • item the item to add the entry to.
  • tag the tag to add the entry to. If both this and the item field are present, only this one will be added.
  • chance Chance for the compost to succeed.

data/<namespace>/utils/custom_compostables.json

[
  {
    "item": "minecraft:dirt",
    "chance": 50
  }
]

Will add minecraft:dirt as a compostable, with a 50% chance to succeed.


Inverse Tags (Blacklist)

Inverse tags lets you remove entries from tags.

data/<namespace>/utils/inverse-tags/<registry>/<tag location>.json

Example: data/minecraft/utils/inverse-tags/block/spruce_logs.json

[
  "minecraft:stripped_spruce_log"
]

Will remove minecraft:stripped_spruce_log from the minecraft:block/spruce_logs tag.

Credits


Project members

rhm176.

Member

Details

Licensed MIT
Published 2 days ago
Updated 2 days ago