Kiln
Link to kiln
Basic Recipe
Link to basic-recipe
- Adds Kiln Recipe - inputs MUST have a block associated with them.
ZenScript Copymods.betterwithmods.Kiln.add(IIngredient input, IItemStack[] output);
//Examples
mods.betterwithmods.Kiln.add(<minecraft:fence>,[<minecraft:stick>,<minecraft:stick>]);
Removal by input
Link to removal-by-input
- Remove a recipe based on the input ingredient
ZenScript Copymods.betterwithmods.Kiln.remove(IIngredient input);
Removal by output
Link to removal-by-output
- Remove a recipe based on the output
ZenScript Copymods.betterwithmods.Kiln.remove(IItemStack[] outputs);
Remove all
Link to remove-all
- Remove all recipes
ZenScript Copymods.betterwithmods.Kiln.removeAll();
Builder
Link to builder
The Kiln 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 Kiln builder.
mods.betterwithmods.Kiln.builder()
-
Kiln methods
- Sets up the input and outputs of the recipe
ZenScriptCopy
buildRecipe(IIngredient input, IItemStack[] outputs)
- Set the Heat requirements of the recipe. Heat is used to check if the recipe can be made in a stoked or unstoked cauldron. 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 input and outputs of the recipe
Example builder usage
Link to example-builder-usage
ZenScript Copymods.betterwithmods.Kiln.builder()
.buildRecipe(<ore:iron>, [<minecraft:iron_ingot>*2])
.setHeat(2)
.build();
Structure Block
Link to structure-block
The Kiln is a multiblock based on the block it is made of; This allows registering a block that can be used to create the structure.
Input MUST be a Block
ZenScript Copy mods.betterwithmods.Kiln.registerBlock(IItemStack input);
mods.betterwithmods.Kiln.registerBlock(<minecraft:stonebrick>);