Crucible
Link to crucible
Basic Recipe
Link to basic-recipe
- Adds a Unstoked Crucible Recipe
ZenScript Copymods.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 Copymods.betterwithmods.Crucible.addStoked(IIngredient[] inputs, IItemStack[] outputs);
//Examples
mods.betterwithmods.Crucible.addStoked([<ore:cobblestone>],[<minecraft:stone>]);
mods.betterwithmods.Crucible.addStoked([<minecraft:dirt>],[<minecraft:grass>]);
Removal
Link to removal
- Remove a Crucible recipe based on the output
ZenScript Copymods.betterwithmods.Crucible.remove(IItemStack[] outputs);
- Remove all Crucible recipes
ZenScript Copymods.betterwithmods.Crucible.removeAll();
Builder
Link to builder
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
buildRecipe(IIngredient[] inputs, IItemStack[] outputs)ZenScriptCopybuildRecipe(IIngredient[] inputs, IItemStack[] outputs)
- Sets the priority of the recipe, the lower the priority the sooner it will be crafted. Default=0.
setPriority(int priority)ZenScriptCopysetPriority(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.
setHeat(int heat)ZenScriptCopysetHeat(int heat)
- Set the recipe to ignore the heat value and craft anyways
setIgnoreHeat(boolean ignoreHeat)ZenScriptCopysetIgnoreHeat(boolean ignoreHeat)
- Finalize the recipe and add it to the game
build()ZenScriptCopybuild()
- Sets up the inputs and outputs of the recipe
Example builder usage
Link to example-builder-usage
ZenScript Copymods.betterwithmods.Crucible.builder()
.buildRecipe([<ore:stone>], [<minecraft:dirt>])
.setHeat(2)
.setPriority(-1)
.build();