Files
GregTech-Modern-Community-Pack/kubejs/startup_scripts/machinery/greenhouse.js
Deepa 519a65690e Update gtm + other mods (#88)
* Updated mods

* Changed multi oc modifiers
2024-12-22 21:44:32 +00:00

34 lines
1.2 KiB
JavaScript

GTCEuStartupEvents.registry("gtceu:machine", (event) => {
event
.create("greenhouse", "multiblock")
.rotationState(RotationState.NON_Y_AXIS)
.recipeType("greenhouse")
.appearanceBlock(GTBlocks.MACHINE_CASING_ULV)
.recipeModifier(GTRecipeModifiers.OC_NON_PERFECT)
.pattern((definition) =>
FactoryBlockPattern.start()
.aisle("0BBB0", "0BBB0", "0BBB0", "0BBB0")
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
.aisle("0BBB0", "0BEB0", "0BBB0", "0BBB0")
.where("E", Predicates.controller(Predicates.blocks(definition.get())))
.where("D", Predicates.blocks("minecraft:dirt"))
.where("G", Predicates.blocks("gtceu:tempered_glass"))
.where(
"B",
Predicates.blocks("gtceu:ulv_machine_casing")
.setMinGlobalLimited(5)
.or(Predicates.autoAbilities(definition.getRecipeTypes()))
)
.where("#", Predicates.air())
.where("0", Predicates.any())
.build()
)
.workableCasingRenderer(
"gtceu:block/casings/voltage/ulv/side",
"gtceu:block/multiblock/implosion_compressor",
true
);
});