Altar of Blood (Harken Scythe: Resharpened)
Description
Converts an item into another item by using blood essence as fuel.
Identifier
Refer to this via any of the following:
mods.harkenscythe.blood_altar/* Used as page default */
mods.harkenscythe.bloodaltar
mods.harkenscythe.bloodAltar
mods.harkenscythe.BloodAltar
Adding Recipes
Recipe Builder
Just like other recipe types, the Altar of Blood also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.harkenscythe.blood_altar.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Required blood. Requires greater than or equal to 1. (Default0
).groovyrequiredBlood(int)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
ormod.emt.harkenscythe.recipe.HSRecipeBloodAltar
).groovyregister()
Example
mods.harkenscythe.blood_altar.recipeBuilder()
.input(item('minecraft:cobblestone'))
.output(item('minecraft:gravel'))
.requiredBlood(42)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.harkenscythe.blood_altar.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.harkenscythe.blood_altar.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.harkenscythe.blood_altar.removeAll()
Example
mods.harkenscythe.blood_altar.removeByInput(item('minecraft:glass_bottle'))
mods.harkenscythe.blood_altar.removeByOutput(item('harkenscythe:bloodweave_cloth'))
mods.harkenscythe.blood_altar.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.harkenscythe.blood_altar.streamRecipes()