Modify upgrade inventory for upgradeable machine
AE2Events.upgrades(event =>{
event.addSlotSize("ae2:inscriber",4)
event.addSlotSize("ae2:io_port",3)
event.setMaxInstalledCount("ae2:speed_card","ae2:inscriber",8)
})
Add custom recipes with KubeJS
ServerEvents.recipes(event =>{
event.recipes.ae2.entropy(
EntropyRecipe.mode("heat"),
EntropyRecipe.createWithBlock("minecraft:smooth_stone").buildAsOutput(),
EntropyRecipe.createWithBlock("minecraft:stone").buildAsInput()
)
event.recipes.ae2.entropy(
EntropyRecipe.COOL,
EntropyRecipe.createWithFluid("minecraft:water").buildAsOutput(),
EntropyRecipe.createWithFluid("minecraft:flowing_lava").buildAsInput()
)
event.recipes.ae2.charger(
"minecraft:obsidian",
"minecraft:magma_block"
)
event.recipes.ae2.inscriber(
InscriberRecipe.mode("press"),
"minecraft:diamond",
InscriberRecipe.inputs(
"minecraft:coal_block",
"minecraft:coal_block",
"minecraft:coal_block"
)
)
event.recipes.ae2.inscriber(
InscriberRecipe.INSCRIBE,
"minecraft:diamond",
InscriberRecipe.inputs(
"minecraft:diamond",
"minecraft:coal_block",
InscriberRecipe.empty()
)
)
event.recipes.ae2.transform(
TransformRecipe.EXPLOSION,
"minecraft:sand",
[
"minecraft:gravel"
]
)
event.recipes.ae2.transform(
TransformRecipe.fluid("minecraft:water"),
"minecraft:sand",
[
"minecraft:gravel"
]
)
})