From f65bd15c6b5eeb737c4da36125a567ecd7e3ac44 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 17 Jul 2022 15:32:43 -0500 Subject: [PATCH] Cleanup & arch palette recipes --- .../integration/mod/DavesBulding.js | 35 ----------- .../server_scripts/progression/4_Thermal.js | 8 ++- kubejs/server_scripts/progression/XX_Misc.js | 58 +++++++++++++++++++ 3 files changed, 65 insertions(+), 36 deletions(-) delete mode 100644 kubejs/server_scripts/integration/mod/DavesBulding.js diff --git a/kubejs/server_scripts/integration/mod/DavesBulding.js b/kubejs/server_scripts/integration/mod/DavesBulding.js deleted file mode 100644 index ba53a64..0000000 --- a/kubejs/server_scripts/integration/mod/DavesBulding.js +++ /dev/null @@ -1,35 +0,0 @@ -onEvent('recipes', event => { - [ - 'davebuildingmod:amethyst_glass', - 'davebuildingmod:black_chair', - 'davebuildingmod:blue_chair', - 'davebuildingmod:book_1', - 'davebuildingmod:book_2', - 'davebuildingmod:brown_chair', - 'davebuildingmod:copper_coil', - 'davebuildingmod:cyan_chair', - 'davebuildingmod:gray_chair', - 'davebuildingmod:green_chair', - 'davebuildingmod:hard_air', - 'davebuildingmod:light_blue_chair', - 'davebuildingmod:light_gray_chair', - 'davebuildingmod:lime_chair', - 'davebuildingmod:magenta_chair', - 'davebuildingmod:orange_chair', - 'davebuildingmod:pink_chair', - 'davebuildingmod:purple_chair', - 'davebuildingmod:red_chair', - 'davebuildingmod:reinforced_glass', - 'davebuildingmod:rocky_dirt', - 'davebuildingmod:rubber_duck', - 'davebuildingmod:soft_air', - 'davebuildingmod:steel_ingot', - 'davebuildingmod:track_end', - 'davebuildingmod:tungsten_carbite', - 'davebuildingmod:white_chair', - 'davebuildingmod:yellow_chair', - ].forEach(x => event.remove({output: x})); - - event.replaceInput({}, 'davebuildingmod:steel_ingot', '#forge:ingots/steel'); - event.smithing('2x davebuildingmod:track_end', 'create:track', '#forge:rods/all_metal'); -}); diff --git a/kubejs/server_scripts/progression/4_Thermal.js b/kubejs/server_scripts/progression/4_Thermal.js index cd50314..c3c5139 100644 --- a/kubejs/server_scripts/progression/4_Thermal.js +++ b/kubejs/server_scripts/progression/4_Thermal.js @@ -111,6 +111,8 @@ const rfCoilRecipes = event => { * @param {Internal.RecipeEventJS} event */ const machineRecipes = event => { + const CustomRecipeHandler = global.recipes(event); + /* Rubber */ event.remove({output: 'thermal:rubber'}); // Latex -> Rubber recipe using IF @@ -119,8 +121,12 @@ const machineRecipes = event => { event.remove({output: 'thermal:drill_head'}); event.remove({output: 'thermal:saw_blade'}); + event.replaceInput( + {output: 'thermal:enderium_dust'}, + '#forge:ender_pearls', + '#forge:dusts/ender_pearl' + ); - const CustomRecipeHandler = global.recipes(event); const Items = { furnace: {item: 'minecraft:furnace'}, furnaceHeater: {item: 'immersiveengineering:furnace_heater'}, diff --git a/kubejs/server_scripts/progression/XX_Misc.js b/kubejs/server_scripts/progression/XX_Misc.js index e6cd7b6..11ba995 100644 --- a/kubejs/server_scripts/progression/XX_Misc.js +++ b/kubejs/server_scripts/progression/XX_Misc.js @@ -1,3 +1,23 @@ +/** + * + * @param {Internal.RecipeEventJS} event + */ +const archPalette = event => { + const CustomRecipeHandler = global.recipes(event); + event.remove({id: 'architects_palette:warping/unobtanium_from_netherite_ingot_warping'}); + event.remove({id: 'architects_palette:unobtanium'}); + CustomRecipeHandler.warping( + Item.of('thermal:enderium_ingot'), + Item.of('architects_palette:unobtanium') + ); + event.recipes.immersiveengineering.arc_furnace( + '5x architects_palette:unobtanium', + Item.of('architects_palette:unobtanium_block', { + display: {Lore: ['[{"text":"This Recipe Wasn\'t an Accident ;)","italic":false}]']}, + }) + ); +}; + const buildingGadgets = event => { event.remove({mod: 'buildinggadgets'}); @@ -129,6 +149,42 @@ const compactMachines = event => { ); }; +const dave = event => { + [ + 'davebuildingmod:amethyst_glass', + 'davebuildingmod:black_chair', + 'davebuildingmod:blue_chair', + 'davebuildingmod:book_1', + 'davebuildingmod:book_2', + 'davebuildingmod:brown_chair', + 'davebuildingmod:copper_coil', + 'davebuildingmod:cyan_chair', + 'davebuildingmod:gray_chair', + 'davebuildingmod:green_chair', + 'davebuildingmod:hard_air', + 'davebuildingmod:light_blue_chair', + 'davebuildingmod:light_gray_chair', + 'davebuildingmod:lime_chair', + 'davebuildingmod:magenta_chair', + 'davebuildingmod:orange_chair', + 'davebuildingmod:pink_chair', + 'davebuildingmod:purple_chair', + 'davebuildingmod:red_chair', + 'davebuildingmod:reinforced_glass', + 'davebuildingmod:rocky_dirt', + 'davebuildingmod:rubber_duck', + 'davebuildingmod:soft_air', + 'davebuildingmod:steel_ingot', + 'davebuildingmod:track_end', + 'davebuildingmod:tungsten_carbite', + 'davebuildingmod:white_chair', + 'davebuildingmod:yellow_chair', + ].forEach(x => event.remove({output: x})); + + event.replaceInput({}, 'davebuildingmod:steel_ingot', '#forge:ingots/steel'); + event.smithing('2x davebuildingmod:track_end', 'create:track', '#forge:rods/all_metal'); +}; + const dimStorage = event => { event.remove({mod: 'dimstorage'}); event.smithing('dimstorage:dimensional_chest', 'thermal:machine_frame', '#forge:ingots/enderium'); @@ -287,8 +343,10 @@ const torchmaster = event => { }; onEvent('recipes', event => { + archPalette(event); buildingGadgets(event); compactMachines(event); + dave(event); dimStorage(event); expandedstorage(event); fluxNetworks(event);