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

Blood Magic Blood Altar

Link to blood-magic-blood-altar

The Blood Altar 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 Coal is given to a Blood Altar. The Altar will take 5 seconds to craft, requires a minimum tier of 0 and will drain (syphon) 500 LP from the player, consuming 1 LP per tick and will drain 1 LP per tick when not enough LP is provided.

ZenScript
Copy
// <recipetype:bloodmagic:altar>.addRecipe(name as string, output as IItemStack, input as IIngredient, minimumTier as int, syphon as int, consumeRate as int, drainRate int)

<recipetype:bloodmagic:altar>.addRecipe("altar_test", <item:minecraft:diamond>, <item:minecraft:coal>, 0, 500, 1, 1);

The following script will remove all recipes from the Blood Altar that output a Reinforced Slate.

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

<recipetype:bloodmagic:altar>.removeRecipe(<item:bloodmagic:reinforcedslate>);