Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes
This page relates to Blood Magic, which has built-in support!

Blood Magic Tartaric Forge / Hell Forge

The Tartaric Forge / Hell Forge is a type of IRecipeManager and implements all the methods that are available to IRecipeManager’s, such as removeRecipe() and removeAll().

Methods

Add Recipe

The following script will add a recipe that will output a Diamond when Coal is given to a Tartaric Forge / Hell Forge. The Forge requires a minimum of 0 souls and will drain 500 souls.

script.zs
// <recipetype:bloodmagic:altar>.addRecipe(name as string, output as IItemStack, input as IIngredient[], minimumSouls as double, soulDrain as double)
<recipetype:bloodmagic:soulforge>.addRecipe("soulforge_test", <item:minecraft:diamond>, [<item:minecraft:coal>], 0, 500);

Remove Recipes

The following script will remove all recipes from the Tartaric Forge / Hell Forge that output a Soul Axe

script.zs
// <recipetype:bloodmagic:soulforge>.removeRecipe(output as IItemStack);
<recipetype:bloodmagic:soulforge>.removeRecipe(<item:bloodmagic:soulaxe>);