This commit is contained in:
Damodigy 2023-11-11 23:35:08 +07:00
parent 7f8e06de8c
commit 969e554c9d
31 changed files with 569 additions and 26 deletions

View file

@ -1,4 +1,4 @@
const customWelding = (event,[input1,input2],result,tier) => {
const customWelding = (event, [input1, input2], result, tier) => {
event.custom({
type: "tfc:welding",
first_input: {
@ -14,35 +14,48 @@ const customWelding = (event,[input1,input2],result,tier) => {
})
}
const customHeating = (event,input1,[result,amount],temperature) => {
const customHeating = (event, input1, [result, amount], temperature) => {
event.custom({
type: "tfc:heating",
ingredient: {
tag: input1
tag: input1
},
result_fluid: {
fluid: result,
amount: amount
fluid: result,
amount: amount
},
temperature: temperature
})
})
}
const customAnvil = (event,input1,[result,count],tier,[firstRule,secondRule,thirdRule]) => {
const customAnvil = (event, input1, [result, count], tier, [firstRule, secondRule, thirdRule]) => {
event.custom({
type: "tfc:anvil",
input: {
tag: input1
tag: input1
},
result: {
item: result,
count: count
item: result,
count: count
},
tier: tier,
rules: [
firstRule,
secondRule,
thirdRule
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
})
}

View file

@ -0,0 +1,16 @@
// priority: 0
const registerTFCRecipes = (event) => {
/*
event.custom({
type: 'farmersdelight:cutting',
ingredients: [
{ item: 'minecraft:cake' }
],
tool: { tag: 'forge:tools/knives' },
result: [
{ item: 'farmersdelight:cake_slice', count: 7 }
]
})*/
}

View file

@ -0,0 +1 @@
// priority: 0