Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Composting

Package

script.zs
mods.exnihilocreatio.Compost

Methods

  • IIngredient input The input.
  • Float chance The chance should be between 0-1.
  • String color The color is hex.
  • IItemStack output The result of the recipe.

Addition

Does not take arrays in for IIngredient.

script.zs
mods.exnihilocreatio.Compost.addRecipe(IIngredient, Float chance, String color, IItemStack);
mods.exnihilocreatio.Compost.addRecipe(<ore:woodPlank>, 0.25, "63452D", <minecraft:log>);

Removal

script.zs
Compost.removeAll();