• Adds a Unstoked Crucible Recipe
ZenScript
Copy
mods.betterwithmods.Crucible.addUnstoked(IIngredient[] inputs, IItemStack[] outputs);
//Examples
mods.betterwithmods.Crucible.addUnstoked([<ore:cobblestone>],[<minecraft:stone>]);
mods.betterwithmods.Crucible.addUnstoked([<minecraft:dirt>],[<minecraft:grass>]);
  • Adds a Stoked Crucible Recipe
ZenScript
Copy
mods.betterwithmods.Crucible.addStoked(IIngredient[] inputs, IItemStack[] outputs);
//Examples
mods.betterwithmods.Crucible.addStoked([<ore:cobblestone>],[<minecraft:stone>]);
mods.betterwithmods.Crucible.addStoked([<minecraft:dirt>],[<minecraft:grass>]);
  • Remove a Crucible recipe based on the output
ZenScript
Copy
mods.betterwithmods.Crucible.remove(IItemStack[] outputs);
  • Remove all Crucible recipes
ZenScript
Copy
mods.betterwithmods.Crucible.removeAll();

The Crucible has a recipe builder that allows more precise control over the recipes. All previous methods are simply short cuts to using the builder.

  • To create a new Crucible builder. mods.betterwithmods.Crucible.builder()

  • Crucible methods

    • Sets up the inputs and outputs of the recipe<br /> buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
      ZenScript
      Copy
      buildRecipe(IIngredient[] inputs, IItemStack[] outputs)
    • Sets the priority of the recipe, the lower the priority the sooner it will be crafted. Default=0.<br /> setPriority(int priority)
      ZenScript
      Copy
      setPriority(int priority)
    • Set the Heat requirements of the recipe. Set the Heat requirements of the recipe. Unstoked heat = 1, Stoked heat = 2. You can add custom heat sources, and even custom heat levels using the Heat Registry.<br /> setHeat(int heat)
      ZenScript
      Copy
      setHeat(int heat)
    • Set the recipe to ignore the heat value and craft anyways<br /> setIgnoreHeat(boolean ignoreHeat)
      ZenScript
      Copy
      setIgnoreHeat(boolean ignoreHeat)
    • Finalize the recipe and add it to the game<br /> build()
      ZenScript
      Copy
      build()

Example builder usage

Link to example-builder-usage

ZenScript
Copy
mods.betterwithmods.Crucible.builder()
.buildRecipe([<ore:stone>], [<minecraft:dirt>])
.setHeat(2)
.setPriority(-1)
.build();