156 lines
5.1 KiB
JavaScript
156 lines
5.1 KiB
JavaScript
ServerEvents.recipes(event => {
|
|
//硝酸
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 1,
|
|
"ingredients": [
|
|
{ "fluid": "ad_astra:oxygen", "amount": 1000 },
|
|
{ "fluid": "kubejs:ammonia", "amount": 500 },
|
|
{ "item": "kubejs:electrolyzer" }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:nitric_acid", "amount": 250 },
|
|
{ "fluid": "kubejs:nitrogen_dioxide", "amount": 250 },
|
|
{ "item": "kubejs:uncharged_electrolyzer" }
|
|
],
|
|
"processingTime": 200
|
|
}).id('dut_create:nitric_acid_from_ammonia')
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:nitrogen_dioxide", "amount": 500 },
|
|
{ "amount": 250, "fluid": "minecraft:water" }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:nitric_acid", "amount": 250 }
|
|
],
|
|
"processingTime": 300
|
|
}).id('dut_create:nitric_acid_from_nitrogen_dioxide')
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 1,
|
|
"heatRequirement": "superheated",
|
|
"ingredients": [
|
|
{ "fluid": "ad_astra:oxygen", "amount": 100 },
|
|
{ "fluid": "kubejs:nitrogen_dioxide", "amount": 400 },
|
|
{ "amount": 200, "fluid": "minecraft:water" }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:nitric_acid", "amount": 400 }
|
|
],
|
|
"processingTime": 200
|
|
}).id('dut_create:nitric_acid_from_nitrogen_dioxide_better')
|
|
//二氧化氮
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"ingredients": [
|
|
{ "fluid": "ad_astra:oxygen", "amount": 500 },
|
|
{ "fluid": "kubejs:nitrogen", "amount": 250 },
|
|
{ "item": "kubejs:electrolyzer" }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:nitrogen_dioxide", "amount": 250 },
|
|
{ "item": "kubejs:uncharged_electrolyzer" }
|
|
],
|
|
"processingTime": 300
|
|
}).id('dut_create:nitrogen_dioxide_crafted')
|
|
event.remove({output:"farmersdelight:organic_compost"})
|
|
//氮肥制沃土
|
|
event.custom({
|
|
"type": "create:sequenced_assembly",
|
|
"ingredient": { "item": "minecraft:dirt" },
|
|
"results": [{ "item": "farmersdelight:rich_soil"}],
|
|
"loops": 1,
|
|
"sequence": [
|
|
{
|
|
"type": "create:filling",
|
|
"ingredients": [{ "item": "minecraft:dirt" },
|
|
{ "amount": 250, "fluid": "kubejs:saline_water" }],
|
|
"results": [{ "item": "minecraft:dirt" }]
|
|
},
|
|
{
|
|
"type": "create:filling",
|
|
"ingredients": [{ "item": "minecraft:dirt" },
|
|
{ "amount": 500, "fluid": "kubejs:nitrogen_fertilizer" }],
|
|
"results": [{ "item": "minecraft:dirt" }]
|
|
}
|
|
],
|
|
"transitionalItem": { "item": "minecraft:dirt" }
|
|
}).id("dut_create:rich_soil_from_dirt")
|
|
//氮肥制树木肥料
|
|
event.custom({
|
|
"type": "create:filling",
|
|
"ingredients": [
|
|
{ "item": "minecraft:bone_meal" },
|
|
{ "amount": 125, "fluid": "kubejs:nitrogen_fertilizer" }
|
|
],
|
|
"results": [
|
|
{ "item": "create:tree_fertilizer" }
|
|
]
|
|
}).id("dut_create:tree_fertilizer")
|
|
//制氮肥
|
|
function createRecipe(a, b) {
|
|
let c = "dut_create:nitrogen_fertilizer_from_" + a.split(":")[1]
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 1,
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:ammonia", "amount": 250 * b },
|
|
{ "fluid": a, "amount": 250 }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:nitrogen_fertilizer", "amount": 250 },
|
|
{ "fluid": "minecraft:water", "amount": 250 * b }
|
|
],
|
|
"processingTime": 100
|
|
}).id(c);
|
|
return 0
|
|
}
|
|
createRecipe('kubejs:nitric_acid', 1)
|
|
createRecipe('kubejs:muriatic_acid', 1)
|
|
createRecipe('vintageimprovements:sulfuric_acid', 2)
|
|
//侯氏制碱法
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 2,
|
|
"ingredients": [
|
|
{ "fluid": "kubejs:saline_water", "amount": 250 },
|
|
{ "fluid": "kubejs:ammonia", "amount": 250 },
|
|
{ "fluid": "kubejs:carbon_dioxide", "amount": 250 }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:nitrogen_fertilizer", "amount": 250 },
|
|
{ "item": "kubejs:salt"}
|
|
],
|
|
"processingTime": 300
|
|
}).id('dut_create:nitrogen_fertilizer_from_carbon_dioxide')
|
|
//合成氨
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"secondaryFluidInput": 0,
|
|
"heatRequirement": "superheated",
|
|
"ingredients": [
|
|
{ "fluid": "ad_astra:hydrogen", "amount": 750 },
|
|
{ "fluid": "kubejs:nitrogen", "amount": 250 },
|
|
{ "item": "create:crushed_raw_iron" }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:ammonia", "amount": 500 },
|
|
{ "item": "create:crushed_raw_iron", "chance": 0.96 }
|
|
],
|
|
"processingTime": 200
|
|
}).id('dut_create:ammonia_from_nitrogen_with_iron_superheated')
|
|
event.custom({
|
|
"type": "vintageimprovements:pressurizing",
|
|
"heatRequirement": "heated",
|
|
"ingredients": [
|
|
{ "fluid": "ad_astra:hydrogen", "amount": 750 },
|
|
{ "fluid": "kubejs:nitrogen", "amount": 250 }
|
|
],
|
|
"results": [
|
|
{ "fluid": "kubejs:ammonia", "amount": 300 }
|
|
],
|
|
"processingTime":600
|
|
}).id('dut_create:ammonia_from_nitrogen')
|
|
}) |