Туда же

This commit is contained in:
Damodigy 2023-11-11 12:56:13 +07:00
parent b42d195aad
commit 0b5a64394b

View file

@ -0,0 +1,47 @@
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: {
item: input1
},
result_fluid: {
fluid: result,
amount: amount
},
temperature: temperature
})
}
const customAnvil = (event,input1,result,tier,[firstRule,secondRule,thirdRule]) => {
event.custom({
type: "tfc:anvil",
input: {
tag: input1
},
result: {
item: result
},
tier: tier,
rules: [
firstRule,
secondRule,
thirdRule
]
})
}