neuralgia/kubejs/server_scripts/tfc/customRecipes.js
2023-11-11 23:35:08 +07:00

61 lines
No EOL
1.4 KiB
JavaScript

const customWelding = (event, [input1, input2], result, tier) => {
event.custom({
type: "tfc:welding",
first_input: {
tag: input1
},
second_input: {
tag: input2
},
result: {
item: result
},
tier: tier,
})
}
const customHeating = (event, input1, [result, amount], temperature) => {
event.custom({
type: "tfc:heating",
ingredient: {
tag: input1
},
result_fluid: {
fluid: result,
amount: amount
},
temperature: temperature
})
}
const customAnvil = (event, input1, [result, count], tier, [firstRule, secondRule, thirdRule]) => {
event.custom({
type: "tfc:anvil",
input: {
tag: input1
},
result: {
item: result,
count: count
},
tier: tier,
rules: [
firstRule,
secondRule,
thirdRule
]
})
}
// Кастомная температура плавления
const customHeatLevel = (event, input1, heat_capacity, forging_temperature, welding_temperature) => {
event.custom({
ingredient: {
item: input1
},
heat_capacity: heat_capacity,
forging_temperature: forging_temperature,
welding_temperature: welding_temperature
})
}