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

Ores

Needs to be in the #loader preinit or #loader contenttweaker

Package

script.zs
`mods.exnihilocreatio.Ore`

Methods

  • String name Name the ore chunks/piece/dust/ingot
  • String color Color of material in hex.
  • IItemStack output requires an oredict.firstItem or errors out.
  • Map string[string] Language code then translation.
  • String oreDict The name of the oreDict you want.

Addition

script.zs
mods.exnihilocreatio.Ore.addRecipe(String,
String,
@Optional IItemStack,
@Optional Map<string, String>,
@Optional String);
mods.exnihilocreatio.Ore.addRecipe("Stone",
"63452D",
<ore:stone>.firstItem,
{
"en_au": "StoneDownUnder"
},
"Stone");

Removal

script.zs
mods.exnihilocreatio.Ore.removeAll();