From b42d195aad9691f2ad60f493cd1c2f94fdab3adc Mon Sep 17 00:00:00 2001 From: Damodigy Date: Sat, 11 Nov 2023 12:56:03 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B0=D0=B1=D1=80=D0=B8=D0=BA=D0=B8=20?= =?UTF-8?q?=D1=80=D0=B5=D1=86=D0=B5=D0=BF=D1=82=D0=BE=D0=B2=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/server_scripts/create/customRecipes.js | 15 --- kubejs/server_scripts/create/newFluids.js | 115 ++++++++++++++++++ kubejs/server_scripts/create/newItems.js | 1 + kubejs/startup_scripts/mainStartupScript.js | 1 + 4 files changed, 117 insertions(+), 15 deletions(-) delete mode 100644 kubejs/server_scripts/create/customRecipes.js create mode 100644 kubejs/server_scripts/create/newFluids.js diff --git a/kubejs/server_scripts/create/customRecipes.js b/kubejs/server_scripts/create/customRecipes.js deleted file mode 100644 index 626a2c2b3..000000000 --- a/kubejs/server_scripts/create/customRecipes.js +++ /dev/null @@ -1,15 +0,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, - }) -} \ No newline at end of file diff --git a/kubejs/server_scripts/create/newFluids.js b/kubejs/server_scripts/create/newFluids.js new file mode 100644 index 000000000..ca7b1154e --- /dev/null +++ b/kubejs/server_scripts/create/newFluids.js @@ -0,0 +1,115 @@ + +const newCreateFluids = (event) => { + event.create('solder') + .stillTexture('tfc:block/molten_still') + .flowingTexture('tfc:block/molten_flow') + //.color(0x8393A6) + .color(0x8388A6) + .displayName(`Solder`) + .noBlock() + + event.create('incandescent_oil') + .stillTexture('kubejs:block/incandescent_oil_still') + .flowingTexture('kubejs:block/incandescent_oil_flow') + .color(0x6A7536) + .displayName('Incandescent Oil') + .noBlock() + + event.create('potion_beer') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xC39E36) + .displayName('Formulated Beer') + .noBlock() + event.create('potion_cider') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xB0AE31) + .displayName('Formulated Cider') + .noBlock() + event.create('potion_rum') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0x6E0122) + .displayName('Formulated Rum') + .noBlock() + event.create('potion_sake') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xB7D9BB) + .displayName('Formulated Sake') + .noBlock() + event.create('potion_vodka') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xDCDCDB) + .displayName('Formulated Vodka') + .noBlock() + event.create('potion_whiskey') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0x583718) + .displayName('Formulated Whiskey') + .noBlock() + event.create('potion_corn_whiskey') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xD9C7B6) + .displayName('Formulated Corn Whiskey') + .noBlock() + event.create('potion_rye_whiskey') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xC77D50) + .displayName('Formulated Rye Whiskey') + .noBlock() + + event.create('potion_strong_beer') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xC39E36) + .displayName('Alchemical Beer') + .noBlock() + event.create('potion_strong_cider') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xB0AE31) + .displayName('Alchemical Cider') + .noBlock() + event.create('potion_strong_rum') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0x6E0122) + .displayName('Alchemical Rum') + .noBlock() + event.create('potion_strong_sake') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xB7D9BB) + .displayName('Alchemical Sake') + .noBlock() + event.create('potion_strong_vodka') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xDCDCDB) + .displayName('Alchemical Vodka') + .noBlock() + event.create('potion_strong_whiskey') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0x583718) + .displayName('Alchemical Whiskey') + .noBlock() + event.create('potion_strong_corn_whiskey') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xD9C7B6) + .displayName('Alchemical Corn Whiskey') + .noBlock() + event.create('potion_strong_rye_whiskey') + .stillTexture('minecraft:block/water_still') + .flowingTexture('minecraft:block/water_flow') + .color(0xC77D50) + .displayName('Alchemical Rye Whiskey') + .noBlock() +} \ No newline at end of file diff --git a/kubejs/server_scripts/create/newItems.js b/kubejs/server_scripts/create/newItems.js index 96cf30c22..b59565fe4 100644 --- a/kubejs/server_scripts/create/newItems.js +++ b/kubejs/server_scripts/create/newItems.js @@ -1,4 +1,5 @@ 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,"kubejs:galvanized_iron",["tfc:metal/wrought_iron",144],1400 ); } \ No newline at end of file diff --git a/kubejs/startup_scripts/mainStartupScript.js b/kubejs/startup_scripts/mainStartupScript.js index 151a354b1..515ba5edf 100644 --- a/kubejs/startup_scripts/mainStartupScript.js +++ b/kubejs/startup_scripts/mainStartupScript.js @@ -2,4 +2,5 @@ StartupEvents.registry('item', event => { newCreateItems(event); + newCreateFluids(event); }) \ No newline at end of file