Add Waxing Transformation

Add Waxing Transformation

Caution

The datapacks are only supported to versions superior or equal to 1.5.0

Creating the file

Waxing transformation is one of the easiest to implement. Also, if you add a transformation for an item to an other, than the waxed item can be scraped to the unwaxed item. (See the Scraping Mechanic) By the way, when you add a waxing transformation doesn’t apply for crafting. So if you want your item to be waxed with the honeycomb in the crafting table, you’ll need to make a recipe.

First you need to create a waxing_transformation folder in your namespace folder. Then create a simple .json file like your creating a custom recipe.

The structure should looks like this:

    • pack.mcmeta
    • pack.png
          • example.json
  • The data format

    A Waxing transformation json file looks like this:

    data/example_datapack/waxing_transformation/example.json
    {
      "base": "<namespace>:<before_waxing_item_id>",
      "waxed": "<namespace>:<after_waxing_item_id>"
    }
    propertydescriptionoptional
    baseThe item/block before we wax it.no
    waxedThe item/block after we wax it.no
    replaceIf you want to overide an already existing waxing transformation (use it with caution)yes

    Here’s an example of a waxing transformation json file which permits to wax a cobblestone into a stone block.

    data/example_datapack/waxing_transformation/example.json
    {
      "base": "minecraft:cobblestone",
      "waxed": "minecraft:stone"
    }