From ee8b70fc865318c4de219082311d1fce85e3605e Mon Sep 17 00:00:00 2001 From: SpeeeDCraft <52341158+SpeeeDCraft@users.noreply.github.com> Date: Sun, 12 Nov 2023 09:54:33 +0700 Subject: [PATCH] move utility methods to utolity.js --- kubejs/server_scripts/tfc/customRecipes.js | 63 ---------------------- kubejs/server_scripts/tfc/utility.js | 62 +++++++++++++++++++++ 2 files changed, 62 insertions(+), 63 deletions(-) delete mode 100644 kubejs/server_scripts/tfc/customRecipes.js diff --git a/kubejs/server_scripts/tfc/customRecipes.js b/kubejs/server_scripts/tfc/customRecipes.js deleted file mode 100644 index 93768ea70..000000000 --- a/kubejs/server_scripts/tfc/customRecipes.js +++ /dev/null @@ -1,63 +0,0 @@ -// priority: 0 - -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 - }) -} \ No newline at end of file diff --git a/kubejs/server_scripts/tfc/utility.js b/kubejs/server_scripts/tfc/utility.js index 2decd92c5..93768ea70 100644 --- a/kubejs/server_scripts/tfc/utility.js +++ b/kubejs/server_scripts/tfc/utility.js @@ -1 +1,63 @@ // priority: 0 + +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 + }) +} \ No newline at end of file