Immersive Engineering Cloche
Link to immersive-engineering-cloche
The Cloche is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe()
and removeAll()
. Along with the Cloche is the Cloche Fertilizer, which is also a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe()
and removeAll()
.
Render Types
Link to render-types
Render types are used to define how the BlockState should render when the recipe is being grown in the Cloche.
The default type is "generic".
The following are valid types:
Nome | Descrizione |
---|---|
Nome crop | Descrizione Can be used for any 1-block crops with an age property like Wheat |
Nome stacking | Descrizione Can be used for stacking plants like Sugar Cane or Cactus |
Nome stem | Descrizione Can be used for stem-grown plants like Melon or Pumpkin |
Nome generic | Descrizione Can be used for any block, making it grow in size, like Mushrooms |
Metodi
Link to metodi
Add Recipe
Link to add-recipe
The following script will add a recipe to the Cloche that uses an Oak Sapling as the seed input, the soil needed is Dirt, it will take 100 ticks to grow and will output an Apple, an Oak Sapling and five Oak Wood. The recipe will render an Oak Sapling while it is growing and it uses the "generic" render type.
ZenScript Copy// <recipetype:immersiveengineering:cloche>.addRecipe(string name, IIngredient seed, IIngredient soil, int time, IItemStack[] outputs, MCBlock renderBlock, @Optional("generic") string renderType)
<recipetype:immersiveengineering:cloche>.addRecipe("bonsai_oak", <item:minecraft:oak_sapling>, <item:minecraft:dirt>, 100, [<item:minecraft:apple>, <item:minecraft:oak_sapling>, <item:minecraft:oak_wood> * 5], <blockstate:minecraft:oak_sapling>.block, "generic");
Add Fertilizer
Link to add-fertilizer
The following script will add a Fertilizer with a growth modifier of 6.0 that uses any Item from the Forge Dusts Sulfur tag.
ZenScript Copy// <recipetype:immersiveengineering:fertilizer>.addFertilizer(name as string, fertilizer as IIngredient, growthModifier as float)
<recipetype:immersiveengineering:fertilizer>.addFertilizer("sulfur_grow", <tag:items:forge:dusts/sulfur>, 6.0F);
Remove Recipes
Link to remove-recipes
The following script will remove all recipes from the Cloche that outputs Melon.
ZenScript Copy// <recipetype:immersiveengineering:cloche>.removeRecipe(IItemStack output)
<recipetype:immersiveengineering:cloche>.removeRecipe(<item:minecraft:melon>);
Remove Fertilizer
Link to remove-fertilizer
The following script will remove Bone Meal as a Fertilizer.
ZenScript Copy// <recipetype:immersiveengineering:fertilizer>.removeFertilizer(fertilizer as IItemStack)
<recipetype:immersiveengineering:fertilizer>.removeFertilizer(<item:minecraft:bone_meal>);