Examples of In World Recipes - MaxNeedsSnacks/Interactio GitHub Wiki

Here are some examples of in-world recipes while I'm still (sort of) working on updating the Wiki.

NOTE: These examples are taken straight from my userdev environment and are just meant to be that -- examples. So, don't expect some super balanced stuff here lol

Fluid to Item:

{
  "type": "interactio:item_fluid_transform",
  "inputs": [
    {
      "item": "minecraft:spruce_log",
      "count": 3,
      "return_chance": 0.75
    },
    {
      "tag": "forge:ingots/gold",
      "count": 2
    }
  ],
  "fluid": {
    "fluid": "water"
  },
  "output": {
    "entries": [
      {
        "result": {
          "item": "minecraft:diamond",
          "count": 2
        },
        "weight": 7
      },
      {
        "result": {
          "item": "minecraft:orange_wool",
          "count": 3
        },
        "weight": 10
      }
    ],
    "empty_weight": 83,
    "rolls": 10
  },
  "consume_fluid": 0.1
}
Fluid to Item Pt. 2 (with NBT data):

{
  "type": "interactio:item_fluid_transform",
  "inputs": [
    {
      "item":  "minecraft:glass_bottle",
      "count": 1
    }
  ],
  "fluid": {
    "fluid": "water"
  },
  "output": {
    "item": "minecraft:potion",
    "count": 1,
    "nbt": {
      "Potion": "minecraft:water"
    }
  },
  "consume_fluid": 0.33
}
Fluid Transformation:

{
  "type": "interactio:fluid_fluid_transform",
  "items": [
    {
      "tag": "forge:ingots/iron",
      "count": 4,
      "return_chance": 1
    }
  ],
  "input": {
    "fluid": "water"
  },
  "output": {
    "entries": [
      {
        "result": {
          "fluid": "industrialforegoing:milk"
        },
        "weight": 2
      },
      {
        "result": {
          "fluid": "industrialforegoing:latex"
        },
        "weight": 4
      }
    ],
    "empty_weight": 5
  }
}
Item Explosion:

{
  "type": "interactio:item_explode",
  "inputs": [
    {
      "item": "minecraft:redstone",
      "count": 1
    },
    {
      "tag": "forge:ingots/gold",
      "count": 2
    }
  ],
  "output": {
    "entries": [
      {
        "result": {
          "item": "minecraft:gold_nugget",
          "count": 3
        },
        "weight": 2
      },
      {
        "result": {
          "item": "minecraft:redstone_block",
          "count": 1
        },
        "weight": 1
      }
    ],
    "empty_weight": 0,
    "rolls": 1
  }
}
Block Explosion:

Please note: The additional "type" parameter on the weighted output is used to determine whether the recipe should output blocks or spawn items in world. It cannot be omitted unless you are using a single output instead of a weighted one!

{
  "type": "interactio:block_explode",
  "input": {
    "block": "netherrack"
  },
  "output": {
    "type": "block",
    "entries": [
      {
        "result": {
          "block": "gold_ore"
        },
        "weight": 3
      },
      {
        "result": {
          "block": "obsidian"
        },
        "weight": 2
      }
    ],
    "empty_weight": 5
  }
}
Item Lightning Channeling:

{
  "type": "interactio:item_lightning",
  "inputs": [
    {
      "tag": "forge:ores",
      "count": 1
    },
    {
      "tag": "forge:stone",
      "count": 2
    }
  ],
  "output": {
    "entries": [
      {
        "result": {
          "item": "silents_mechanisms:gold_dust",
          "count": 1
        },
        "weight": 2
      }
    ],
    "empty_weight": 1,
    "rolls": 1
  }
}
Item Anvil Smashing:

{
  "type": "interactio:item_anvil_smashing",
  "inputs": [
    {
      "item": "minecraft:gold_nugget",
      "count": 9
    }
  ],
  "output": {
    "entries": [
      {
        "result": {
          "item": "minecraft:gold_ingot"
        },
        "weight": 20
      },
      {
        "result": {
          "item": "minecraft:iron_nugget"
        },
        "weight": 10
      }
    ],
    "rolls": 2,
    "empty_weight": 1
  },
  "damage": 1
}
⚠️ **GitHub.com Fallback** ⚠️