Skip to content

Stonecutter Functions

thedarkcolour edited this page May 8, 2020 · 3 revisions

Adding a recipe

Add a recipe.

// mods.futuremc.Stonecutter.addOutput(IItemStack input, IItemStack outputs);
mods.futuremc.Stonecutter.addOutput(<minecraft:stone>, <minecraft:furnace>); // Adds glass as an option for cutting stone

Shortcut function to add multiple recipes for each output.

// mods.futuremc.Stonecutter.addOutputs(IItemStack input, IItemStack... outputs);
mods.futuremc.Stonecutter.addOutputs(<minecraft:stone>, <minecraft:glass>, <minecraft:sandstone>); // Adds glass as an option for cutting stone

Removing a recipe

Remove a certain output from a given input.

// mods.futuremc.Stonecutter.removeOutputs(IItemStack input, IItemStack... outputs);
mods.futuremc.Stonecutter.removeOutputs(<minecraft:stone>, <minecraft:stone_slab>); // Removes the option to cut stone into slabs

Removing a valid input

Remove an input and all its outputs.

// mods.futuremc.Stonecutter.removeAllOutputsForInput(IItemStack input);
mods.futuremc.Stonecutter.removeAllOutputsForInput(<minecraft:stone>); // Removes stone from being cuttable

Clear default recipes

Call this before you add your own recipes if you would like to remove all the default recipes.

mods.futuremc.Stonecutter.clearRecipes();