Pure Daisy (Botania)
Description
Convert a given block to another blockstate after a period of time.
Identifier
Refer to this via any of the following:
mods.botania.pure_daisy/* Used as page default */
mods.botania.puredaisy
mods.botania.pureDaisy
mods.botania.PureDaisy
Adding Recipes
Adds recipes in the format
output
,input
:groovymods.botania.pure_daisy.add(IBlockState, IBlockState)
Adds recipes in the format
output
,input
,time
:groovymods.botania.pure_daisy.add(IBlockState, IBlockState, int)
Recipe Builder
Just like other recipe types, the Pure Daisy also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.botania.pure_daisy.recipeBuilder()
int
. Sets the duration the recipe takes to complete. Requires greater than or equal to 0. (DefaultRecipePureDaisy.DEFAULT_TIME (150)
).groovytime(int)
Object
. Sets the valid input states. Requires not null. Requires either an IBlockState or String.groovyinput(Block) input(String) input(IBlockState) input(OreDictIngredient)
IBlockState
. Sets the output IBlockState. Requires not null.groovyoutput(IBlockState)
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
orvazkii.botania.api.recipe.RecipePureDaisy
).groovyregister()
Example
mods.botania.pure_daisy.recipeBuilder()
.input(ore('plankWood'))
.output(blockstate('minecraft:clay'))
.time(5)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.botania.pure_daisy.removeByInput(Block)
Removes all recipes that match the given input:
groovymods.botania.pure_daisy.removeByInput(IBlockState)
Removes all recipes that match the given input:
groovymods.botania.pure_daisy.removeByInput(OreDictIngredient)
Removes all recipes that match the given input:
groovymods.botania.pure_daisy.removeByInput(String)
Removes all recipes that match the given output:
groovymods.botania.pure_daisy.removeByOutput(IBlockState)
Removes all registered recipes:
groovymods.botania.pure_daisy.removeAll()
Example
mods.botania.pure_daisy.removeByInput(blockstate('minecraft:water'))
mods.botania.pure_daisy.removeByInput(ore('logWood'))
mods.botania.pure_daisy.removeByOutput(blockstate('botania:livingrock'))
mods.botania.pure_daisy.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.botania.pure_daisy.streamRecipes()