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

Hammering

Package

script.zs
`mods.exnihilocreatio.Hammer`

Methods

  • IIngredient input The block that needs to be broken.
  • IItemStack output The item the block drops when broken.
  • Int tool level tool level for breaking the block.
  • Float chance chance between 0-1.
  • Float fortune chance chance between 0-1.

Addition

script.zs
mods.exnihilocreatio.Hammer.addRecipe(IIngredient, IItemStack, Int, Float, Float);
mods.exnihilocreatio.Hammer.addRecipe(<minecraft:log>, <minecraft:plank>, 0, 0.25, 0.5);

Removal

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