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

Stone Knapping

Package

script.zs
import mods.terrafirmacraft.StoneKnapping;

Addition

script.zs
StoneKnapping.addRecipe(String registryName, IItemStack[] output, String[] rocks, String... pattern)

Removal

script.zs
StoneKnapping.removeRecipe(IItemStack output);
StoneKnapping.removeRecipe(String registryName);

Examples

script.zs
// Gives a stone hoe in all rocks.
StoneKnapping.addRecipe("testrecipe", [<minecraft:stone_hoe>], ["all"], " ", "XXXX ");
// Gives a stone hoe only in shale, claystone, rocksalt, limestone.
StoneKnapping.addRecipe("testrecipe2", [<minecraft:stone_hoe>], ["shale", "claystone", "rocksalt", "limestone"], " ", "XXXX ");
// Gives a stone hoe in claystone, and a pickaxe in limestone.
StoneKnapping.addRecipe("testrecipe3", [<minecraft:stone_hoe>, <minecraft:stone_pickaxe>], ["claystone", "limestone"], " ", "XXXX ");
// Gives a stone hoe only in basalt and chert.
StoneKnapping.addRecipe("testrecipe4", [<minecraft:stone_hoe>, <minecraft:stone_hoe>], ["basalt", "chert"], " ", "XXXX ");