-
Notifications
You must be signed in to change notification settings - Fork 0
Example_Recipe
LiangquHMF edited this page Aug 14, 2026
·
1 revision
ServerEvents.recipes(event => {
const PressureCondition = Java.loadClass('com.liangqu.gtuf.api.recipe.condition.PressureCondition')
event.recipes.gtceu.test_recipetype2('gtuf:pressure_produce_iron')
.duration(100)
.EUt(30)
.addData('gtuf_pressure_produce', -50)
//When the value is positive – pressurization;
//When negative – depressurization.
event.recipes.gtceu.test_recipetype3('gtuf:pressure_consume_sand')
.itemInputs('minecraft:sand')
.itemOutputs('minecraft:glass')
.duration(200)
.EUt(30)
.addCondition(new PressureCondition(100, 400))
})