Sag Mill Grinding (Ender IO)
Description
Add a new Griding Ball for use in a Sag Mill with the given output multiplier, power multiplier, chance multiplier, and duration (in base power used).
Identifier
Refer to this via any of the following:
mods.enderio.sag_mill_grinding/* Used as page default */
mods.enderio.sagmillgrinding
mods.enderio.sagMillGrinding
mods.enderio.SagMillGrinding
mods.enderio.grinding
mods.enderio.Grinding
mods.eio.sag_mill_grinding
mods.eio.sagmillgrinding
mods.eio.sagMillGrinding
mods.eio.SagMillGrinding
mods.eio.grinding
mods.eio.Grinding
Adding Recipes
Recipe Builder
Just like other recipe types, the Sag Mill Grinding also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.enderio.sag_mill_grinding.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
float
. Sets the power multiplier to recipes processed with the grinding ball. Requires greater than 0. (Default1
).groovypower(float)
float
. Sets the chance to double all outputs in recipes with an applicable bonusType. Requires greater than 0. (Default1
).groovychance(float)
int
. Sets the amount of power used in recipes before the grinding ball is consumed. Requires greater than 0. (Default0
).groovyduration(int)
float
. Format error: Sets the chance to increase outputs up to 100% with an applicable bonusType. Requires greater than 0. (Default1
).groovygrinding(float)
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
orcrazypants.enderio.base.recipe.sagmill.GrindingBall
).groovyregister()
Example
mods.enderio.sag_mill_grinding.recipeBuilder()
.input(item('minecraft:clay_ball'))
.chance(6.66)
.power(0.001)
.grinding(3.33)
.duration(10000)
.register()
Removing Recipes
Removes the Grinding Ball item:
groovymods.enderio.sag_mill_grinding.remove(ItemStack)
Removes all registered recipes:
groovymods.enderio.sag_mill_grinding.removeAll()
Example
mods.enderio.sag_mill_grinding.remove(item('minecraft:flint'))
mods.enderio.sag_mill_grinding.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.enderio.sag_mill_grinding.streamRecipes()