Moonlight Forge (The Aurorian)
Description
Combines two items to get a third item. Only works at night, and works faster the higher it is placed in the world.
Identifier
Refer to this via any of the following:
mods.aurorian.moonlight_forge
mods.aurorian.moonlightforge
mods.aurorian.moonlightForge
mods.aurorian.MoonlightForge
mods.theaurorian.moonlight_forge/* Used as page default */
mods.theaurorian.moonlightforge
mods.theaurorian.moonlightForge
mods.theaurorian.MoonlightForge
Adding Recipes
Recipe Builder
Just like other recipe types, the Moonlight Forge also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.theaurorian.moonlight_forge.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 2.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>)
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
orcom.shiroroku.theaurorian.Recipes.MoonlightForgeRecipe
).groovyregister()
Example
mods.theaurorian.moonlight_forge.recipeBuilder()
.input(item('minecraft:stone_sword'), item('minecraft:diamond'))
.output(item('minecraft:diamond_sword'))
.register()
Removing Recipes
Removes a recipe by the input item and the catalyst item:
groovymods.theaurorian.moonlight_forge.removeByInput(IIngredient, IIngredient)
Removes all recipes that match the given output:
groovymods.theaurorian.moonlight_forge.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.theaurorian.moonlight_forge.removeAll()
Example
mods.theaurorian.moonlight_forge.removeByInput(item('theaurorian:moonstonesword'), item('theaurorian:aurorianiteingot'))
mods.theaurorian.moonlight_forge.removeByOutput(item('theaurorian:queenschipper'))
mods.theaurorian.moonlight_forge.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.theaurorian.moonlight_forge.streamRecipes()