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

Saw

Basic Recipe

  • Adds Saw Recipe - inputs MUST have a block associated with them.
script.zs
mods.betterwithmods.Saw.add(IIngredient input, IItemStack[] output);
//Examples
mods.betterwithmods.Saw.add(<minecraft:fence>,[<minecraft:stick>,<minecraft:stick>]);

Removal by input

  • Remove a recipe based on the input ingredient
script.zs
mods.betterwithmods.Saw.remove(IIngredient input);

Removal by output

  • Remove a recipe based on the output
script.zs
mods.betterwithmods.Saw.remove(IItemStack[] outputs);

Remove all

  • Remove all recipes
script.zs
mods.betterwithmods.Saw.removeAll();

Builder

The Saw has a recipe builder. Due to the nature of the saw it currently has no special builder methods, I will document it none-the-less.

  • To create a new Saw builder. mods.betterwithmods.Saw.builder()

  • Saw methods

    • Sets up the inputs and outputs of the recipe
      script.zs
      buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
    • Finalize the recipe and add it to the game
      script.zs
      build()

Example builder usage

script.zs
mods.betterwithmods.Saw.builder()
.buildRecipe([<minecraft:oak_fence>], [<minecraft:stick>*6])
.build();