Fusion (Draconic Evolution)
Description
Consumes items and power from up to 54 pedestals of at least a given tier pointing towards a Fusion Crafting Core containing a catalyst to produce an output item.
Identifier
Refer to this via any of the following:
mods.de.fusion
mods.de.Fusion
mods.draconicevolution.fusion/* Used as page default */
mods.draconicevolution.Fusion
Adding Recipes
Recipe Builder
Just like other recipe types, the Fusion also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.draconicevolution.fusion.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 54.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
. Sets the minimum tier of Fusion Crafting Injector. Requires greater than or equal to 0 and less than or equal to 3. (Default0
).groovytier(int) tierBasic() tierNormal() tierWyvern() tierChaotic() tierDraconic()
long
. Sets the power required per item input. Requires greater than 0. (Default1000000
).groovyenergy(long)
ItemStack
. Sets the item used in the center Fusion Crafting Controller block. Requires not null.groovycatalyst(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.brandon3055.draconicevolution.api.fusioncrafting.IFusionRecipe
).groovyregister()
Example
mods.draconicevolution.fusion.recipeBuilder()
.catalyst(item('minecraft:diamond'))
.input(ore('ingotIron'), ore('ingotIron'), item('minecraft:dirt'), item('minecraft:grass'), item('minecraft:grass'), item('minecraft:dirt'), ore('ingotGold'), ore('ingotGold'))
.output(item('minecraft:nether_star'))
.energy(10)
.tier(1)
.register()
mods.draconicevolution.fusion.recipeBuilder()
.catalyst(item('minecraft:diamond'))
.input(item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
.output(item('minecraft:nether_star'))
.energy(100000)
.tierChaotic()
.register()
Removing Recipes
Removes all recipes that match the given catalyst:
groovymods.draconicevolution.fusion.removeByCatalyst(ItemStack)
Removes all registered recipes:
groovymods.draconicevolution.fusion.removeAll()
Example
mods.draconicevolution.fusion.removeByCatalyst(item('draconicevolution:chaos_shard'))
mods.draconicevolution.fusion.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.draconicevolution.fusion.streamRecipes()