Skip to content

Recipe Structure

BradleyPlaysTTV edited this page Jun 5, 2026 · 5 revisions

Recipe Structure

Adding recipes via datapacks is the easiest method. This page will teach you all you need to know about the recipe structure.

If the recipe is Invalid, there will be an error in your latest.log file letting you know why and what recipe it is that is causing the error.

The absolute minimum recipe

{
    "type": "worldtransformations:world_transform",
    "item": {
        "item": "minecraft:cobblestone"
    },
    "result": {
        "count": 1,
        "id": "minecraft:gravel"
    }
}

You can either use the item ID or item tags for the input item

    "item": {
        "item": "minecraft:oak_log"
    }
    "item": {
        "tag": "minecraft:logs"
    }

Transformation Time

This is in seconds. The following example is a transformation time of 30s.

{
    "transformTime": 30
}

Block Requirement

This requires you to throw the item onto a Magma Block.

{
    "block": "minecraft:magma_block"
}

Fluid Requirements

Adding the fluid tag means your transformation item must be thrown into that fluid.

{
    "fluid": "minecraft:water"
}

You can replace fluids too!

{
    "fluid": "minecraft:water",
    "replaceFluid": "minecraft:air"
}

Multiple Outputs

With this recipe, throwing gravel into water gives you:

  • 30% Chance of Raw Iron
  • 20% Chance of Raw Copper
  • 12% Chance of Lapis Lazuli
  • 6.5% Chance of Raw Gold
  • 6% Chance of Redstone
  • 5% Chance of Diamond
  • 2% Chance of Ancient Debris

This rolls per item in the stack thrown and can give multiple items in replace of the 1 input

{
    "type": "worldtransformations:world_transform",
    "item": {
        "item": "minecraft:gravel"
    },
    "transformTime": 5,
    "fluid": "minecraft:water",
    "results": [
          { "id": "minecraft:raw_iron", "chance": 30, "min": 0, "max": 1 },
          { "id": "minecraft:raw_copper", "chance": 20, "min": 0, "max": 1 },
          { "id": "minecraft:lapis_lazuli", "chance": 12, "min": 0, "max": 1 },
          { "id": "minecraft:raw_gold", "chance": 6.5, "min": 0, "max": 1 },
          { "id": "minecraft:redstone", "chance": 6, "min": 0, "max": 1 },
          { "id": "minecraft:diamond", "chance": 5, "min": 0, "max": 1 },
          { "id": "minecraft:ancient_debris", "chance": 2, "min": 0, "max": 1 },
      ]
}

Fire Recipes

This recipe is to make blacktsone from cobblestone by throwing it into fire.

Any fire recipe makes the items fireproof (This includes fluid recipes when it is Lava

{
    "type": "worldtransformations:world_transform",
    "item": {
        "item": "minecraft:cobblestone"
    },
    "result": {
        "count": 1,
        "id": "minecraft:blackstone"
    },
    "isFire": true
}

Clone this wiki locally