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

@ -3,6 +3,7 @@ const newItemsCreate = (event) => {
customWelding(event,["forge:ingots/iron","forge:plates/zinc"],"kubejs:galvanized_iron",3);
customWelding(event,["forge:ingots/wrought_iron","forge:plates/zinc"],"kubejs:galvanized_iron",3);
customHeating(event,"forge:ingots/galvanized_iron",["tfc:metal/wrought_iron",144],1400);
//customHeatLevel(event,"forge:ingots/galvanized_iron", 5.714, 921, 1228);
//shaft craft
customAnvil(event,"forge:ingots/galvanized_iron",["create:shaft",4],3,["hit_last","hit_second_last","hit_third_last"]);

View file

@ -1,3 +1,4 @@
const removeReworkedRecipes = (event) => {
event.remove({ mod: 'create' });
event.remove({ mod: 'extendedcrafting' });
}

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