Class

import mods.pyrotech.StoneSawmill;

Methods

static void addRecipe(
  string name,                // unique recipe name
  IItemStack output,          // recipe output
  IIngredient input,          // recipe input
  int burnTimeTicks,          // recipe duration in ticks
  IIngredient blade,          // blade(s) used
  @Optional int woodChips,    // amount of wood chips produced per recipe
  @Optional boolean inherited // true if the recipe should be inherited
);

static void removeRecipes(
  IIngredient output // output ingredient to match
);

static void removeAllRecipes();

static void setGameStages(
  Stages stages // game stages
);

Sets game stage logic required to use the device.


Examples

It is important to use :* for the meta value of the sawblades to ensure that the blade will continue to be valid after taking damaged.

import mods.pyrotech.StoneSawmill;

// cut oak logs into oak planks in 10 seconds using an iron or diamond sawblade
// and produce 8 wood chips
StoneSawmill.addRecipe("oak_planks_from_oak_logs", <minecraft:planks:0>, <minecraft:log:0>, 200, <pyrotech:sawmill_blade_iron:*>.or(<pyrotech:sawmill_blade_diamond:*>), 8);