From 0b5a64394ba7941dafaaea8ea49006c23b210f0b Mon Sep 17 00:00:00 2001 From: Damodigy Date: Sat, 11 Nov 2023 12:56:13 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A2=D1=83=D0=B4=D0=B0=20=D0=B6=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/server_scripts/tfc/customRecipes.js | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 kubejs/server_scripts/tfc/customRecipes.js diff --git a/kubejs/server_scripts/tfc/customRecipes.js b/kubejs/server_scripts/tfc/customRecipes.js new file mode 100644 index 000000000..973678579 --- /dev/null +++ b/kubejs/server_scripts/tfc/customRecipes.js @@ -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 + ] + }) +} \ No newline at end of file