-
Notifications
You must be signed in to change notification settings - Fork 0
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.
{
"type": "worldtransformations:world_transform",
"item": {
"item": "minecraft:cobblestone"
},
"result": {
"count": 1,
"id": "minecraft:gravel"
}
} "item": {
"item": "minecraft:oak_log"
} "item": {
"tag": "minecraft:logs"
}This is in seconds. The following example is a transformation time of 30s.
{
"transformTime": 30
}This requires you to throw the item onto a Magma Block.
{
"block": "minecraft:magma_block"
}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"
}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 },
]
}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
}