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

Orechid

The Orechid package is used for adding or removing generated ores to/from the Botania Orechid Flowers.

Calling

You can call the Orechid package using mods.botania.Orechid

Find all registered Recipes

You can find all registered Orechid recipes using /ct botorechid.

Recipe addition

You can either add recipes using the returned IOreDictEntry as output parameter, or the name of said oreDictEntry as string. Note, than having two recipes with same weight will crash the game.

script.zs
//mods.botania.Orechid.addOre(IOreDictEntry oreDict, int weight);
mods.botania.Orechid.addOre(<ore:logWood>, 500);
//mods.botania.Orechid.addOre(String oreDict, int weight);
mods.botania.Orechid.addOre("logWood", 500);

Recipe removal

You can either remove recipes using the returned IOreDictEntry as output parameter, or the name of said oreDictEntry as string.

script.zs
//mods.botania.Orechid.removeOre(IOreDictEntry oreDict);
mods.botania.Orechid.removeOre(<ore:oreGold>);
//mods.botania.Orechid.removeOre(String oreDict);
mods.botania.Orechid.removeOre("oreGold");