Adds Kiln Recipe - inputs MUST have a block associated with them.
mods.betterwithmods.Kiln.add(IIngredient input, IItemStack output); //Examples mods.betterwithmods.Kiln.add(
,[ , ]);
Removal by input
- Remove a recipe based on the input ingredient
Removal by output
- Remove a recipe based on the output
- Remove all recipes
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.
Sets up the inputs and outputs of the recipe
buildRecipe(IIngredient inputs, 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.
Set the recipe to ignore the heat value and craft anyways
Finalize the recipe and add it to the game
Example builder usage
mods.betterwithmods.Kiln.builder() .buildRecipe([<ore:iron>], [<minecraft:iron_ingot>*2]) .setHeat(2) .build();
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
mods.betterwithmods.Kiln.registerBlock(IItemStack input); mods.betterwithmods.Kiln.registerBlock(<minecraft:stonebrick>);