Moss (Roots 3)
Description
Moss indicates a pair of items that can right click the input with a knife to turn it into the output and give a Terra Moss and right click the output with moss spores to turn it into the input.
Identifier
Refer to this via any of the following:
mods.roots.moss/* Used as page default */
mods.roots.MossAdding Recipes
Adds a new Moss conversion recipe in the format
in,out:groovymods.roots.moss.add(ItemStack, ItemStack)
Example
mods.roots.moss.add(item('minecraft:stained_glass:3'), item('minecraft:stained_glass:4'))Recipe Builder
Just like other recipe types, the Moss also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.roots.moss.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>)First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullororg.apache.commons.lang3.tuple.Pair<net.minecraft.item.ItemStack, net.minecraft.item.ItemStack>).groovyregister()
Example
mods.roots.moss.recipeBuilder()
.input(item('minecraft:gold_block'))
.output(item('minecraft:clay'))
.register()Removing Recipes
Removes the Moss conversion recipe for the given input itemstack:
groovymods.roots.moss.remove(ItemStack)Removes the Moss conversion recipe for the given input and output itemstacks, in the format
in,out:groovymods.roots.moss.remove(ItemStack, ItemStack)Removes all registered recipes:
groovymods.roots.moss.removeAll()
Example
mods.roots.moss.remove(item('minecraft:cobblestone'))
mods.roots.moss.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.roots.moss.streamRecipes()
