Alicio Tree Foods (Better With Addons)
Description
Converts an input item into an amount of food for the tree to gradually consume, eventually summoning a random creature nearby.
Info
The creature spawned will be a passive animal, and undesirable animals can be blacklisted. The blacklist has no entries by default.
Identifier
The identifier mods.betterwithaddons.lure_tree will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.betterwithaddons.luretree
mods.betterwithaddons.lureTree
mods.betterwithaddons.LureTree
mods.betterwithaddons.lure_tree/* Used as page default */Adding Entries
Add the given recipe to the recipe list:
groovymods.betterwithaddons.lure_tree.add(TileEntityLureTree.TreeFood)Adds the given Entity to the blacklist:
groovymods.betterwithaddons.lure_tree.addBlacklist(EntityEntry)Adds the given Entity to the blacklist:
groovymods.betterwithaddons.lure_tree.addBlacklist(Class<? extends Entity>)
Example
mods.betterwithaddons.lure_tree.addBlacklist(entity('minecraft:chicken'))Recipe Builder
Just like other recipe types, the Alicio Tree Foods also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.betterwithaddons.lure_tree.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)int. Sets the value of the food. Requires greater than or equal to 0. (Default0).groovyfood(int)
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. (returnsnullorbetterwithaddons.tileentity.TileEntityLureTree$TreeFood).groovyregister()
Example
mods.betterwithaddons.lure_tree.recipeBuilder()
.input(item('minecraft:diamond'))
.food(1000)
.register()
mods.betterwithaddons.lure_tree.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.food(4)
.register()Removing Entries
Removes the given recipe from the recipe list:
groovymods.betterwithaddons.lure_tree.remove(TileEntityLureTree.TreeFood)Removes all recipes that match the given input:
groovymods.betterwithaddons.lure_tree.removeByInput(IIngredient)Removes the given Entity from the blacklist:
groovymods.betterwithaddons.lure_tree.removeBlacklist(EntityEntry)Removes the given Entity from the blacklist:
groovymods.betterwithaddons.lure_tree.removeBlacklist(Class<? extends Entity>)Removes all registered recipes:
groovymods.betterwithaddons.lure_tree.removeAll()
Example
mods.betterwithaddons.lure_tree.removeByInput(item('minecraft:rotten_flesh'))
mods.betterwithaddons.lure_tree.removeAll()Getting the value of entries
Returns a list of all blacklisted classes that the Alicio Tree cannot spawn:
groovymods.betterwithaddons.lure_tree.getBlacklist()Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.betterwithaddons.lure_tree.streamRecipes()
