ZenScript
Copy
import mods.roots.FlowerGrowth;
ZenScript
Copy
void removeRecipe(
  string name // The name of the recipe you wish to remove
);

Removes a flower growth recipe by name.


ZenScript
Copy
void addRecipeBlockState(
  string name,      // The name of the recipe that you're adding
  IBlockState state // The state of the block of the flower
);

Adds a recipe to create the specific block state during the flower growth ritual.


ZenScript
Copy
void addRecipeBlock(
  string name,  // The name of the recipe that you're adding
  IBlock block, // The block of the flower to be placed
  int meta      // The meta of the state of the flower block
);

Adds a recipe by creating a blockstate from a block along with the meta value from an itemblock to be grown during the flower growth ritual.


ZenScript
Copy
void addRecipeItem(
  string name,     // The name of the recipe that you're adding
  IItemStack stack // The itemstack describing an itemblock to be placed
);

Adds a recipe by creating a blockstate from an itemstack containing an itemblock and metadata to be grown during the Flower Growth ritual.


ZenScript
Copy
void addRecipeItemOnSoils(
  string name,      // The name of the recipe that you're adding
  IItemStack stack, // The itemstack describing an itemblock to be placed
  List allowedSoils // A list of blocks that this flower can be placed on
);

Adds a recipe by creating a blockstate from an itemstack containing an itemblock and metadata to be grown during the Flower Growth ritual. The flower will only be grown on a soil mentioned. Accepts oredict entries.


ZenScript
Copy
import mods.roots.FlowerGrowth;

// Removes the default recipe for dandelion
FlowerGrowth.removeRecipe("dandelion");

// Adds a Botania white flower using block state
FlowerGrowth.addRecipeBlockState("mystical_white_flower", <blockstate:botania:flower:color=white>);

// Adds a Botania magenta flower using block + meta
FlowerGrowth.addRecipeBlock("mystical_green_flower", <botania:flower>.asBlock(), 2);

Currently untested with double-tall flowers.