This page relates to Blood Magic, which has built-in support!

Blood Magic Alchemy Array

Link to blood-magic-alchemy-array

The Alchemy Array is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe() and removeAll().

The following script will add a recipe that will output a Diamond when Dirt and Glass are given to an Alchemy Array. When the Dirt is given, the Alchemy Array will use the texture of a Diamond.

ZenScript
Copy
// <recipetype:bloodmagic:array>.addRecipe(name as string, output as IItemStack, baseInput as IIngredient, addedInput as IIngredient, texture as ResourceLocation)

<recipetype:bloodmagic:array>.addRecipe("alchemy_array_test", <item:minecraft:diamond>, <item:minecraft:dirt>, <item:minecraft:glass>, <resource:textures/item/diamond.png>);

The ResourceLocation texture can be any texture in the game and is used when the baseInput has been added to the Alchemy Array.

The default values that Blood Magic themselves use are as follows, but you can use any texture that you want:

ZenScript
Copy
<resource:bloodmagic:textures/models/alchemyarrays/airsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/bindingarray.png>
<resource:bloodmagic:textures/models/alchemyarrays/bouncearray.png>
<resource:bloodmagic:textures/models/alchemyarrays/divinationsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/fastminersigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/growthsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/lavasigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/lightsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/magnetismsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/moonarray.png>
<resource:bloodmagic:textures/models/alchemyarrays/movementarray.png>
<resource:bloodmagic:textures/models/alchemyarrays/sightsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/spikearray.png>
<resource:bloodmagic:textures/models/alchemyarrays/sunarray.png>
<resource:bloodmagic:textures/models/alchemyarrays/updraftarray.png>
<resource:bloodmagic:textures/models/alchemyarrays/voidsigil.png>
<resource:bloodmagic:textures/models/alchemyarrays/watersigil.png>

The following script will remove all recipes from the Alchemy Array that output a Divination Sigil.

ZenScript
Copy
// <recipetype:bloodmagic:array>>.removeRecipe(output as IItemStack);

<recipetype:bloodmagic:array>.removeRecipe(<item:bloodmagic:divinationsigil>);