This page relates to Blood Magic, which has built-in support!
Blood Magic Alchemical Reaction Chamber / ARC
Link to blood-magic-alchemical-reaction-chamber--arc
The Alchemical Reaction Chamber or ARC is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe()
and removeAll()
.
Methods
Link to methods
Add Recipe
Link to add-recipe
The following script will add multiple recipes to the ARC, it should cover all the bases of what is possible
ZenScript Copy// <recipetype:bloodmagic:arc>addRecipe(name as string, output as IItemStack, outputFluid as IFluidStack, input as IIngredient, inputFluid as IFluidStack, arcTool as IIngredient, consumeIngredient as boolean, addedItems as @Optional MCWeightedItemStack[])
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_all", <item:minecraft:glass>, <fluid:minecraft:lava>, <item:minecraft:diamond>, <fluid:minecraft:water>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), false, [<item:minecraft:apple> % 50]);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_no_extras", <item:minecraft:diamond>, <fluid:minecraft:lava>, <item:minecraft:dirt>, <fluid:minecraft:water>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), false);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_no_fluid_output", <item:minecraft:diamond>, <fluid:minecraft:lava>, <item:minecraft:glass>, <fluid:minecraft:empty>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), false);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_no_fluid_input", <item:minecraft:diamond>, <fluid:minecraft:empty>, <item:minecraft:apple>, <fluid:minecraft:water>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), false);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_all_consume", <item:minecraft:stick>, <fluid:minecraft:lava>, <item:minecraft:water_bucket>, <fluid:minecraft:water>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), true, [<item:minecraft:apple> % 50]);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_no_extras_consume", <item:minecraft:arrow>, <fluid:minecraft:lava>,<item:minecraft:pufferfish_bucket>, <fluid:minecraft:water>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), true);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_no_fluid_output_consume", <item:minecraft:shield>, <fluid:minecraft:lava>, <item:minecraft:lava_bucket>, <fluid:minecraft:empty>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), true);
<recipetype:bloodmagic:arc>.addRecipe("arc_recipe_test_no_fluid_input_consume", <item:minecraft:stone>, <fluid:minecraft:empty>, <item:minecraft:water_bucket>, <fluid:minecraft:water>, <item:bloodmagic:basiccuttingfluid>.anyDamage(), true);
Remove Recipes
Link to remove-recipes
The following script will remove all recipes from the ARC that output a Weak Blood Shard.
ZenScript Copy// <recipetype:bloodmagic:arc>.removeRecipe(output as IItemStack);
<recipetype:bloodmagic:arc>.removeRecipe(<item:bloodmagic:weakbloodshard>);