create-the-brass-oncerto/kubejs/server_scripts/add/space/construction_station.js

474 lines
17 KiB
JavaScript
Raw Permalink Normal View History

2025-04-11 17:07:29 +08:00
ServerEvents.recipes(event => {
const ConstructionStationStructure =
{
"type": "custommachinery:structure",
"pattern":[
[
"AAAAA ",
"AAAAAA ",
"AAAATTT",
"AAAATUT",
"AAAATTT",
"AAAAAA "
],
[
"BCCC ",
"BFGGC ",
"BF OCC ",
"BF VCWC",
"BCJCCC ",
" J "
],
[
" CDD ",
" H D ",
" HG DP ",
" HX DWP",
" CXCCP ",
" m "
],
[
"SAAA ",
"IJKLA ",
"IJQRAY ",
"JJJLAWY",
"SAAAAY ",
" "
],
[
" EEE ",
" EEEE ",
" EEEE ",
" EEEEW ",
" EEEE ",
" "
],
[
" ",
" ",
" ",
" Z ",
" ",
" "
]
],
"keys": {
"P": "create:brass_funnel",
"F": "create:andesite_casing",
"A": "create:copper_casing",
"Z": "create:millstone",
"D": "design_decor:tinted_framed_glass",
"C": "create:secondary_linear_chassis",
"G": "create:depot",
"V": "create:basin",
"I": "design_decor:industrial_gear",
"K": "create:deployer",
"O": "create:mechanical_arm",
"E": "minecraft:smooth_stone_slab",
"L": "create:mechanical_press",
"W": "design_decor:industrial_iron_boiler",
"Q": "create:mechanical_saw",
"U": "design_decor:brass_boiler_large",
"T": "design_decor:brass_boiler_structure",
"B": "create:item_drain",
"J": "create:gearbox",
"S": "create:spout",
"X": "create:encased_chain_drive",
"H": "design_decor:industrial_gear_large",
"R": "vintageimprovements:laser",
"Y": "design_decor:diagonal_girder"
},
"jei": true
}
const ConstructionStationStress={
"type": "custommachinery:contraption",
"mode": "input",
"speed": 256,
}
function ConstructionStationFluid(fluid, amount) {
return ({
"type": "custommachinery:fluid",
"mode": "input",
"fluid": fluid,
"amount": amount
})
}
function ConstructionStationItem(item, amount, mode) {
return ({
"type": "custommachinery:item",
"mode": mode,
"item": item,
"amount": amount
})
}
function ConstructionStationEnergy() {
return ({
"type": "custommachinery:energy_per_tick",
"mode": "input",
"amount": 600
})
}
function ConstructionStationDisk(item,amount) {
return ({
"type": "custommachinery:durability",
"mode": "input",
"item": item,
"amount": amount
})
}
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 120,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationFluid("kubejs:aluminum", 1440),
ConstructionStationFluid("kubejs:gold", 360),
ConstructionStationFluid("kubejs:slime_colloid", 750),
ConstructionStationItem("kubejs:cheese_moonalgae", 4, "input"),
ConstructionStationItem("ad_astra:ostrum_plate", 12, "output")
],
}).id("dut_create:construction_station/ostrum")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 120,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationFluid("kubejs:aluminum", 1800),
ConstructionStationFluid("kubejs:copper", 720),
ConstructionStationFluid("kubejs:slime_colloid", 750),
ConstructionStationFluid("kubejs:cryogen", 750),
ConstructionStationItem("kubejs:duraplas_sheet", 4, "input"),
ConstructionStationItem("kubejs:light_composite_plate", 12, "output")
],
}).id("dut_create:construction_station/light_composite_plate/metal")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 120,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:fiber_fabric", 36, "input"),
ConstructionStationFluid("kubejs:copper", 540),
ConstructionStationFluid("kubejs:slime_colloid", 750),
ConstructionStationFluid("kubejs:cryogen", 750),
ConstructionStationItem("kubejs:duraplas_sheet", 4, "input"),
ConstructionStationItem("kubejs:light_composite_plate", 12, "output")
],
}).id("dut_create:construction_station/light_composite_plate/carbon")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 60,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("#forge:plates/aluminum", 32, "input"),
ConstructionStationFluid("ad_astra:hydrogen", 16000),
ConstructionStationFluid("kubejs:cryogen", 16000),
ConstructionStationItem("kubejs:gas_tank", 32, "output")
],
}).id("dut_create:construction_station/gas_tank")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 80,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:empty_parts_box", 16, "input"),
ConstructionStationFluid("kubejs:desh", 3600),
ConstructionStationFluid("kubejs:nitrogen", 10000),
ConstructionStationItem("kubejs:desh_parts_box", 16, "output")
],
}).id("dut_create:construction_station/desh_parts_box")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 80,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("createdieselgenerators:diesel_engine", 4, "input"),
ConstructionStationItem("create:mechanical_pump", 12, "input"),
ConstructionStationFluid("kubejs:duraplas", 1000),
ConstructionStationFluid("kubejs:desh", 720),
ConstructionStationItem("ad_astra:desh_fluid_pipe", 64, "output")
],
}).id("dut_create:construction_station/desh_fluid_pipe")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 80,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:solar_panel", 4, "input"),
ConstructionStationItem("create:mechanical_pump", 12, "input"),
ConstructionStationFluid("kubejs:duraplas", 1000),
ConstructionStationFluid("kubejs:desh", 360),
ConstructionStationItem("ad_astra:desh_fluid_pipe", 64, "output")
],
}).id("dut_create:construction_station/desh_fluid_pipe_solar")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 80,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("ad_astra:desh_fluid_pipe", 64, "input"),
ConstructionStationItem("ad_astra:ostrum_plate", 32, "input"),
ConstructionStationFluid("kubejs:duraplas", 1000),
ConstructionStationItem("ad_astra:ostrum_fluid_pipe", 64, "output")
],
}).id("dut_create:construction_station/ostrum_fluid_pipe")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 80,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("ad_astra:desh_fluid_pipe", 64, "input"),
ConstructionStationItem("ad_astra:ostrum_plate", 16, "input"),
ConstructionStationFluid("kubejs:duraplas", 1000),
ConstructionStationItem("ad_astra:ostrum_fluid_pipe", 64, "output")
],
}).id("dut_create:construction_station/ostrum_fluid_pipe_solar")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 120,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:empty_parts_box", 16, "input"),
ConstructionStationItem("kubejs:desh_parts_box", 16, "input"),
ConstructionStationItem("kubejs:light_composite_plate", 16, "input"),
ConstructionStationItem("kubejs:fiber_fabric", 16, "input"),
ConstructionStationFluid("kubejs:nitrogen", 10000),
ConstructionStationItem("kubejs:parts_box", 16, "output")
],
}).id("dut_create:construction_station/parts_box")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 240,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:lapis_plate", 16, "input"),
ConstructionStationItem("#forge:dyes/magenta", 16, "input"),
ConstructionStationItem("kubejs:circuit_board", 48, "input"),
ConstructionStationFluid("kubejs:slime_colloid", 6000),
ConstructionStationItem("kubejs:magenta_circuit_board", 64, "output")
],
}).id("dut_create:construction_station/magenta_circuit_board")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 240,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:magenta_circuit_board", 48, "input"),
ConstructionStationItem("kubejs:circuit_board", 48, "input"),
ConstructionStationFluid("kubejs:slime_colloid", 4000),
ConstructionStationFluid("kubejs:muriatic_acid", 4000),
ConstructionStationItem("kubejs:lime_circuit_board", 64, "output")
],
}).id("dut_create:construction_station/lime_circuit_board")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 240,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("kubejs:magenta_circuit_board", 16, "input"),
ConstructionStationItem("kubejs:electric_gear", 16, "input"),
ConstructionStationItem("create:mechanical_pump", 16, "input"),
ConstructionStationItem("create:sturdy_sheet", 16, "input"),
ConstructionStationFluid("kubejs:gold", 900),
ConstructionStationFluid("kubejs:slime_colloid", 1800),
ConstructionStationItem("create:precision_mechanism", 16, "output")
],
}).id("dut_create:construction_station/precision_mechanism")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 120,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("create:sturdy_sheet", 16, "input"),
ConstructionStationItem("#forge:plates/aluminum", 48, "input"),
ConstructionStationItem("kubejs:fluid_pipe", 32, "input"),
ConstructionStationFluid("kubejs:cryogen", 4000),
ConstructionStationFluid("kubejs:slime_colloid", 4000),
ConstructionStationItem("kubejs:radiator", 16, "output")
],
}).id("dut_create:construction_station/radiator/aluminum")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 120,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("create:sturdy_sheet", 16, "input"),
ConstructionStationItem("#forge:plates/copper", 48, "input"),
ConstructionStationItem("kubejs:fluid_pipe", 32, "input"),
ConstructionStationFluid("kubejs:cryogen", 4000),
ConstructionStationFluid("kubejs:slime_colloid", 4000),
ConstructionStationItem("kubejs:radiator", 16, "output")
],
}).id("dut_create:construction_station/radiator/copper")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationStress,
ConstructionStationEnergy(),
ConstructionStationItem("create:sturdy_sheet", 16, "input"),
ConstructionStationItem("kubejs:fluid_pipe", 16, "input"),
ConstructionStationItem("#forge:plates/desh", 32, "input"),
ConstructionStationFluid("kubejs:cryogen", 4000),
ConstructionStationFluid("kubejs:slime_colloid", 4000),
ConstructionStationItem("kubejs:radiator", 32, "output")
],
}).id("dut_create:construction_station/radiator_advanced")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"priority": 3,
"requirements": [
ConstructionStationStructure,
ConstructionStationEnergy(),
ConstructionStationDisk("kubejs:aluminum_hard_disk",1024),
ConstructionStationItem("kubejs:magenta_circuit_board", 45, "input"),
ConstructionStationItem("ad_astra:desh_plate", 45, "input"),
ConstructionStationItem("kubejs:speed_module", 24, "input"),
ConstructionStationItem("kubejs:speed_module_2", 3, "output")
],
}).id("dut_create:construction_station/speed_module_2")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationEnergy(),
ConstructionStationDisk("kubejs:aluminum_hard_disk",1024),
ConstructionStationItem("kubejs:efficiency_module_2", 3, "input"),
ConstructionStationItem("kubejs:speed_module_2", 3, "input"),
ConstructionStationItem("kubejs:productivity_module", 24, "input"),
ConstructionStationItem("kubejs:productivity_module_2", 3, "output")
],
}).id("dut_create:construction_station/productivity_module_2")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationEnergy(),
ConstructionStationDisk("kubejs:aluminum_hard_disk",1024),
ConstructionStationItem("kubejs:magenta_circuit_board", 45, "input"),
ConstructionStationItem("ad_astra:desh_plate", 45, "input"),
ConstructionStationItem("kubejs:efficiency_module", 24, "input"),
ConstructionStationItem("kubejs:efficiency_module_2", 3, "output")
],
}).id("dut_create:construction_station/efficiency_module_2")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"priority": 3,
"requirements": [
ConstructionStationStructure,
ConstructionStationEnergy(),
ConstructionStationDisk("kubejs:brass_hard_disk",1),
ConstructionStationItem("kubejs:magenta_circuit_board", 45, "input"),
ConstructionStationItem("ad_astra:desh_plate", 45, "input"),
ConstructionStationItem("kubejs:speed_module", 24, "input"),
ConstructionStationItem("kubejs:speed_module_2", 3, "output")
],
}).id("dut_create:construction_station/speed_module_2/brass")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationEnergy(),
ConstructionStationDisk("kubejs:brass_hard_disk",1),
ConstructionStationItem("kubejs:efficiency_module_2", 3, "input"),
ConstructionStationItem("kubejs:speed_module_2", 3, "input"),
ConstructionStationItem("kubejs:productivity_module", 24, "input"),
ConstructionStationItem("kubejs:productivity_module_2", 3, "output")
],
}).id("dut_create:construction_station/productivity_module_2/brass")
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:construction_station",
"time": 160,
"error": true,
"requirements": [
ConstructionStationStructure,
ConstructionStationEnergy(),
ConstructionStationDisk("kubejs:brass_hard_disk",1),
ConstructionStationItem("kubejs:magenta_circuit_board", 45, "input"),
ConstructionStationItem("ad_astra:desh_plate", 45, "input"),
ConstructionStationItem("kubejs:efficiency_module", 24, "input"),
ConstructionStationItem("kubejs:efficiency_module_2", 3, "output")
],
}).id("dut_create:construction_station/efficiency_module_2/brass")
})