Saw
Basic Recipe
- Adds Saw Recipe - inputs MUST have a block associated with them.
mods.betterwithmods.Saw.add(IIngredient input, IItemStack[] output);//Examplesmods.betterwithmods.Saw.add(<minecraft:fence>,[<minecraft:stick>,<minecraft:stick>]);
Removal by input
- Remove a recipe based on the input ingredient
mods.betterwithmods.Saw.remove(IIngredient input);
Removal by output
- Remove a recipe based on the output
mods.betterwithmods.Saw.remove(IItemStack[] outputs);
Remove all
- Remove all recipes
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()
- Sets up the inputs and outputs of the recipe
Example builder usage
mods.betterwithmods.Saw.builder().buildRecipe([<minecraft:oak_fence>], [<minecraft:stick>*6]).build();