|
| 1 | +--- |
| 2 | +title: "Superheated Pyrolyzing Oven" |
| 3 | +--- |
| 4 | + |
| 5 | +### Superheated Pyrolyzing Oven Multiblock (by Phoenixvine) |
| 6 | + |
| 7 | +In order to use multiblock logic extending beyond the normal WorkableElectricMultiblockMachine, (This is the multiblock type used by default for kubejs) you need to load a class. Coil multiblocks such as the Electric Blast Furnace, Pyrolyse Oven, and the Cracker use this class. |
| 8 | + |
| 9 | +```const CoilWorkableElectricMultiblockMachine = Java.loadClass("com.gregtechceu.gtceu.api.machine.multiblock.CoilWorkableElectricMultiblockMachine")``` |
| 10 | + |
| 11 | +Below is an example of a multiblock using the CoilWorkableElectricMultiblockMachine class and the pyrolyseOvenOverclock machine logic. |
| 12 | + |
| 13 | +### Multiblock |
| 14 | +```js title="superheated_pyrolyzing_oven_multiblock.js" |
| 15 | +GTCEuStartupEvents.registry('gtceu:machine', event => { |
| 16 | + event.create("superheated_pyrolyzing_oven", "multiblock") |
| 17 | + .machine((holder) => new CoilWorkableElectricMultiblockMachine(holder)) |
| 18 | + .rotationState(RotationState.NON_Y_AXIS) |
| 19 | + .recipeTypes('pyrolyse_oven') |
| 20 | + .recipeModifiers([GTRecipeModifiers.PARALLEL_HATCH, GTRecipeModifiers.OC_PERFECT,GTRecipeModifiers.BATCH_MODE, (machine, recipe) => |
| 21 | + GTRecipeModifiers.pyrolyseOvenOverclock(machine, recipe)]) |
| 22 | + .appearanceBlock(GTBlocks.CASING_STEEL_SOLID) |
| 23 | + .pattern(definition => FactoryBlockPattern.start() |
| 24 | + .aisle("BBCCCBB", "BBCDCBB", "BBCCCBB", "BBCCCBB", "BBEEEBB", "BBEEEBB") |
| 25 | + .aisle("BCCCCCB", "BCAFACB", "BCAFACB", "BCGGGCB", "BEAAAEB", "BEHHHEB") |
| 26 | + .aisle("CCCCCCC", "CAAFAAC", "CAAFAAC", "CGGGGGC", "EAAAAAE", "EHHHHHE") |
| 27 | + .aisle("CCCCCCC", "DFFFFFD", "CFFFFFC", "CGGGGGC", "EAAAAAE", "EHHMHHE") |
| 28 | + .aisle("CCCCCCC", "CAAFAAC", "CAAFAAC", "CGGGGGC", "EAAAAAE", "EHHHHHE") |
| 29 | + .aisle("BCCCCCB", "BCAFACB", "BCAFACB", "BCGGGCB", "BEAAAEB", "BEHHHEB") |
| 30 | + .aisle("BBCCCBB", "BBCICBB", "BBCCCBB", "BBCCCBB", "BBEEEBB", "BBEEEBB") |
| 31 | + .where("A", Predicates.blocks("minecraft:air")) |
| 32 | + .where("B", Predicates.any()) |
| 33 | + .where('C', Predicates.blocks('gtceu:solid_machine_casing').setMinGlobalLimited(10) |
| 34 | + .or(Predicates.abilities(PartAbility.MAINTENANCE).setExactLimit(1)) |
| 35 | + .or(Predicates.abilities(PartAbility.PARALLEL_HATCH).setMaxGlobalLimited(1)) |
| 36 | + .or(Predicates.autoAbilities(definition.getRecipeTypes()))) |
| 37 | + .where("D", Predicates.blocks("gtceu:steel_firebox_casing")) |
| 38 | + .where("E", Predicates.blocks("gtceu:laminated_glass")) |
| 39 | + .where("F", Predicates.blocks("gtceu:ptfe_pipe_casing")) |
| 40 | + .where("G", Predicates.heatingCoils()) |
| 41 | + .where("H", Predicates.blocks("gtceu:high_temperature_smelting_casing")) |
| 42 | + .where("M", Predicates.abilities(PartAbility.MUFFLER).setExactLimit(1)) |
| 43 | + .where('I', Predicates.controller(Predicates.blocks(definition.get()))) |
| 44 | + .build()) |
| 45 | + .workableCasingModel("gtceu:block/casings/solid/machine_casing_solid_steel", |
| 46 | + "gtceu:block/multiblock/pyrolyse_oven"); |
| 47 | + |
| 48 | +}) |
| 49 | +``` |
| 50 | +### Lang |
| 51 | + |
| 52 | +```json title="en_us.json" |
| 53 | +{ |
| 54 | + "block.gtceu.superheated_pyrolyzing_oven": "Superheated Pyrolyzing Oven", |
| 55 | +} |
| 56 | +``` |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
0 commit comments