Skip to content

Recipe Structure

BradleyPlaysTTV edited this page Jun 4, 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.

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 },
          { "id": "minecraft:raw_copper", "chance": 20 },
          { "id": "minecraft:lapis_lazuli", "chance": 12 },
          { "id": "minecraft:raw_gold", "chance": 6.5 },
          { "id": "minecraft:redstone", "chance": 6 },
          { "id": "minecraft:diamond", "chance": 5 },
          { "id": "minecraft:ancient_debris", "chance": 2 }
      ]
}

Clone this wiki locally