328 lines
11 KiB
JavaScript
328 lines
11 KiB
JavaScript
ServerEvents.recipes(event => {
|
|
//event.remove({output: '',not:{mod:'kubejs'}})
|
|
//event.remove({id: ''})
|
|
//event.remove({input: ''})
|
|
//event.custom()
|
|
//event.remove({ mod:"create_optical"})
|
|
event.replaceInput({ input: "create:cogwheel", mod: "create_optical" }, "create:cogwheel", "#dut_create:cogwheel")
|
|
event.replaceInput({ input: "create:shaft", mod: "create_optical" }, "create:shaft", "kubejs:bearing")
|
|
event.remove({ output: "create_optical:optical_receptor" })
|
|
event.remove({ output: "create_optical:heavy_optical_receptor" })
|
|
//线圈
|
|
event.remove({ output: "create_optical:zinc_coil" })
|
|
event.remove({ output: "create_optical:copper_coil" })
|
|
event.remove({ output: "create_optical:golden_coil" })
|
|
event.remove({ output: "create_optical:rose_quartz_catalyst_coil" })
|
|
event.custom({
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "vintageimprovements:golden_spring" },
|
|
[{ "item": "vintageimprovements:andesite_rod" },
|
|
{ "item": "create:andesite_alloy" }]
|
|
],
|
|
"results": [{ "item": "create_optical:golden_coil" }]
|
|
}).id("dut_create:optical/golden_coil")
|
|
event.custom({
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "vintageimprovements:zinc_spring" },
|
|
[{ "item": "vintageimprovements:andesite_rod" },
|
|
{ "item": "create:andesite_alloy" }]
|
|
],
|
|
"results": [{ "item": "create_optical:zinc_coil" }]
|
|
}).id("dut_create:optical/zinc_coil")
|
|
event.custom({
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "vintageimprovements:copper_spring" },
|
|
[{ "item": "vintageimprovements:andesite_rod" },
|
|
{ "item": "create:andesite_alloy" }]
|
|
],
|
|
"results": [{ "item": "create_optical:copper_coil" }]
|
|
}).id("dut_create:optical/copper_coil")
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": [{ "item": "vintageimprovements:andesite_rod" },{ "item": "vintageimprovements:aluminum_rod" }],
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:rose_quartz_catalyst_coil" }
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" },
|
|
{ "item": "create:polished_rose_quartz" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" }]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" },
|
|
{ "item": "create:polished_rose_quartz" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" }]
|
|
},
|
|
{
|
|
"type": "create_optical:focusing",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" },
|
|
],
|
|
"processingTime": 200,
|
|
"required_beam_type": 1,
|
|
"results": [
|
|
{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" },
|
|
]
|
|
},
|
|
{
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:slime_colloid", "amount": 250 },
|
|
{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_rose_quartz_catalyst_coil" }],
|
|
"processingTime": 200
|
|
}
|
|
],
|
|
"transitionalItem": { "item": "create_optical:incomplete_rose_quartz_catalyst_coil" }
|
|
}).id("dut_create:optical/rose_quartz_catalyst_coil")
|
|
//反射镜
|
|
event.remove({ output: "create_optical:mirror" })
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "minecraft:tinted_glass" },
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:mirror" }
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_mirror" },
|
|
{ "item": "kubejs:silicon_plate" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_mirror" }]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_mirror" },
|
|
{ "item": "kubejs:silicon_plate" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_mirror" }]
|
|
},
|
|
{
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"heatRequirement": "heated",
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:aluminum", "amount": 250 },
|
|
{ "item": "create_optical:incomplete_mirror" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_mirror" }],
|
|
"processingTime": 200
|
|
}
|
|
],
|
|
"transitionalItem": { "item": "create_optical:incomplete_mirror" }
|
|
}).id("dut_create:optical/mirror")
|
|
event.remove({ output: "create_optical:polarizing_filter" })
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "kubejs:polymer_sheet" },
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:polarizing_filter" }
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "create:cutting",
|
|
"ingredients": [{ "item": "create_optical:incomplete_polarizing_filter" }],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }]
|
|
},
|
|
{
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"heatRequirement": "superheated",
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:saline_water", "amount": 250 },
|
|
{ "item": "create_optical:incomplete_polarizing_filter" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }],
|
|
"processingTime": 200
|
|
}
|
|
],
|
|
"transitionalItem": { "item": "create_optical:incomplete_polarizing_filter" }
|
|
}).id("dut_create:optical/polarizing_filter_saline")
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "create:framed_glass_pane" },
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:polarizing_filter" }
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"heatRequirement": "superheated",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_polarizing_filter" },
|
|
{ "fluid": "kubejs:gold", "amount": 250 }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }],
|
|
"processingTime": 200
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_polarizing_filter" },
|
|
{ "item": "create:framed_glass_pane" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }]
|
|
},
|
|
{
|
|
"type": "create:cutting",
|
|
"ingredients": [{ "item": "create_optical:incomplete_polarizing_filter" }],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }]
|
|
},
|
|
],
|
|
"transitionalItem": { "item": "create_optical:incomplete_polarizing_filter" }
|
|
}).id("dut_create:optical/polarizing_filter_nano_gold")
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "kubejs:silicon_plate" },
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:polarizing_filter" }
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:aluminum", "amount": 75 },
|
|
{ "item": "create_optical:incomplete_polarizing_filter" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }],
|
|
"processingTime": 200
|
|
},
|
|
{
|
|
"type": "create:filling",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_polarizing_filter" },
|
|
{ "amount": 250, "fluid": "kubejs:cryogen" }
|
|
],
|
|
"results": [
|
|
{ "item": "create_optical:incomplete_polarizing_filter" },
|
|
]
|
|
},
|
|
{
|
|
"type": "create:cutting",
|
|
"ingredients": [{ "item": "create_optical:incomplete_polarizing_filter" }],
|
|
"results": [{ "item": "create_optical:incomplete_polarizing_filter" }]
|
|
}
|
|
],
|
|
"transitionalItem": { "item": "create_optical:incomplete_polarizing_filter" }
|
|
}).id("dut_create:optical/polarizing_filter_aluminum")
|
|
//光学元件
|
|
event.remove({ output: "create_optical:optical_device" })
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "create:electron_tube" },
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:optical_device", "chance": 0.25 },
|
|
{ "item": "create:electron_tube", "chance": 0.75 },
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "create_optical:golden_coil" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "create_optical:polarizing_filter" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "kubejs:carborundum_lens" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
}
|
|
],
|
|
"transitionalItem": {
|
|
"item": "create_optical:incomplete_optical_device"
|
|
}
|
|
}).id("dut_create:optical/optical_device_origin")
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "kubejs:resonant_bacteria" },
|
|
"loops": 1,
|
|
"results": [
|
|
{ "item": "create_optical:optical_device" }
|
|
],
|
|
"sequence": [
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "create_optical:golden_coil" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
},
|
|
{
|
|
"type": "create_optical:focusing",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
],
|
|
"processingTime": 200,
|
|
"required_beam_type": 3,
|
|
"results": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "create_optical:golden_coil" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "create_optical:polarizing_filter" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
},
|
|
{
|
|
"type": "create:deploying",
|
|
"ingredients": [
|
|
{ "item": "create_optical:incomplete_optical_device" },
|
|
{ "item": "kubejs:carborundum_lens" }
|
|
],
|
|
"results": [{ "item": "create_optical:incomplete_optical_device" },]
|
|
}
|
|
],
|
|
"transitionalItem": {
|
|
"item": "create_optical:incomplete_optical_device"
|
|
}
|
|
}).id("dut_create:optical/optical_device")
|
|
|
|
|
|
}) |