Infusion Recipes

Mystical Agriculture allows you easily add your own Infusion Crafting recipes using both Datapacks and CraftTweaker.

Datapacks

Prerequisites
  • You can learn more about using vanilla datapacks here.
  • You can learn more about creating recipe JSON files here.

The Recipe File

This section will go over the values available to use in an Infusion Crafting recipe. Syntax can be inferred from the example json below.

FieldRequiredDescription
typeThe recipe type must be mysticalagriculture:infusion.
inputThe item that will be placed on the Infusion Altar.
ingredientsAn array of 1-8 items that will be placed on the Infusion Pedestals.
resultThe item that this recipe will output once finished.

Example File

{
  "type": "mysticalagriculture:infusion",
  "input": {
    "item": "minecraft:apple"
  },
  "ingredients": [
    {
      "item": "minecraft:carrot"
    },
    {
      "item": "minecraft:carrot"
    },
    {
      "item": "minecraft:carrot"
    },
    {
      "item": "minecraft:carrot"
    },
    {
      "item": "minecraft:carrot"
    }
  ],
  "result": {
    "id": "minecraft:potato"
  }
}

CraftTweaker

Mystical Agriculture allows you easily add your own Infusion Crafting recipes using CraftTweaker. Here's how you do it.

Recipe Manager Support

CraftTweaker integration supports Recipe Managers! Access all applicable methods using <recipetype:mysticalagriculture:infusion>!

Adding A Recipe

mods.mysticalagriculture.InfusionCrafting.addRecipe(name, <output>, <input>, [<inputs>]);
FieldRequiredDescription
nameA unique name for this recipe. Must be all lower case and have no spaces.
outputThe output item for this recipe.
inputThe item that will be placed on the Infusion Altar.
inputsAn array of 1-9 items. The first item is the item that goes on the Infusion Altar, and the rest go on the pedestals.

Example

<recipetype:mysticalagriculture:infusion>.addRecipe("test", <item:minecraft:stick> * 10, <item:minecraft:diamond>, [<tag:forge:ingots/iron>, <item:minecraft:stick>]);

Removing Recipes

<recipetype:mysticalagriculture:infusion>.remove(<output>);
FieldRequiredDescription
outputThe item to remove all recipes for.