create-the-brass-oncerto/kubejs/server_scripts/add/metallurgy/hydropress_turner.txt

173 lines
4.5 KiB
Plaintext

ServerEvents.recipes(event => {
//
const HydropressStructureDown =
{
"type": "custommachinery:structure",
"pattern": [
[
"A A",
" ",
" ",
" ",
"A A",
" BBB ",
" BGB ",
" BBB "
],
[
"AAAAA",
"A A",
"A A",
"A A",
"AAAAA",
" CDC ",
" HIH ",
" "
],
[
" ",
" RRR ",
" RRR ",
" RRR ",
" m ",
" E ",
" JXJ ",
" P "
],
[
" ",
" S ",
" STS ",
" S ",
" U ",
" F ",
" L ",
" "
],
[
" ",
" S ",
" STS ",
" S ",
" ",
" F ",
" MIM ",
" M "
],
[
" ",
" ",
" T ",
" ",
" ",
" F ",
" NIN ",
" N "
],
[
" ",
" ",
" T ",
" ",
" ",
" F ",
" NIN ",
" N "
],
[
" ",
" ",
" T ",
" ",
" ",
" ",
" HIH ",
" H "
],
[
" ",
" ",
" T ",
" ",
" ",
" ",
" L ",
" "
],
[
" ",
" ",
" T ",
" ",
" ",
" ",
" O ",
" "
]
],
"keys":
{
"A": "create:copper_casing",
"B": "design_decor:brass_boiler_structure",
"C": "design_decor:industrial_gear_large",
"D": "create:gearbox",
"E": "#dut_create:gearshift",
"F": "create:gantry_shaft",
"G": "design_decor:brass_boiler_large",
"H": "design_decor:diagonal_girder",
"I": "design_decor:industrial_iron_boiler",
"J": "create:mechanical_pump",
"K": "kubejs:hydropress",
"L": "design_decor:brass_boiler",
"M": "design_decor:diagonal_metal_support",
"N": "create:metal_girder",
"O": "design_decor:andesite_floodlight",
"P": "#dut_create:brass_funnel",
"R": "create:railway_casing",
"S": "create:andesite_alloy_block",
"T": "design_decor:andesite_boiler",
"U": "create:gantry_carriage",
"X":"kubejs:hydropress"
},
"jei": true
}
const HydropressSound1 = {
"type": "custommachinery:command",
"phase": "starting",
"command": "/playsound create:steam block @a ~ ~ ~ 0.5",
"log": false,
"permissionlevel": 5
}
const HydropressSound0 = {
"type": "custommachinery:command",
"phase": "starting",
"command": "/playsound create:mechanical_press_activation block @a",
"log": false,
"permissionlevel": 5
}
const HydropressLetUp = {
"type": "custommachinery:block",
"mode": "output",
"action": "replace_destroy",
"amount": 1,
"filter": ["#dut_create:gearshift"],
"whitelist":true,
"pos": [-1, 0, -1, 1, 0, 1],
"block": "create:gearshift[axis=y]"
}
event.custom({
"type": "custommachinery:custom_machine",
"machine": "dut:hydropress_turner",
"time": 5,
"error": true,
"hidden":true,
"priority": 5,
"requirements": [
HydropressStructureDown,
HydropressSound0,
HydropressSound1,
HydropressLetUp
]
}).id("dut_create:hydropress_turner/set_up")
})