Heat Recipe
Method Signature
addRecipe(String name, int amount, Block input, StatePropertiesPredicate properties)
Parameters
name
- Recipe name
amount
- Number of heat units provided by block
input
- Block to provide heat
properties
- BlockState properties that must be met for the block to produce heat (See StatePropertiesPredicate)
Constraints
name
must be globally uniqueproperties
If no properties are desired, set asStatePropertiesPredicate.any()
Example
import crafttweaker.api.predicate.StatePropertiesPredicate;
import mods.exnihilosequentia.HeatRecipe;
val properties = StatePropertiesPredicate.create().property("lit", true).build();
<recipetype:exnihilosequentia:heat>.addRecipe("example", 100, <block:minecraft:campfire>, properties);