From 5d0118b2e37dd7cb7589e447654d9d1ece03cdd7 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 15 Dec 2023 17:20:12 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=BC=D0=B5=D1=82=D0=BE=D0=B2=20=D0=B8=D0=B7?= =?UTF-8?q?=20=D1=84=D0=B8=D1=80=D0=BC=D0=B0=D0=BB=D0=B0=D0=B9=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/client_scripts/main_client_script.js | 1 + kubejs/client_scripts/mods/firmalife.js | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 kubejs/client_scripts/mods/firmalife.js diff --git a/kubejs/client_scripts/main_client_script.js b/kubejs/client_scripts/main_client_script.js index 7a89f90d9..7340b8717 100644 --- a/kubejs/client_scripts/main_client_script.js +++ b/kubejs/client_scripts/main_client_script.js @@ -26,5 +26,6 @@ REIEvents.removeCategories(event => { REIEvents.hide('fluid', event => { hideTFCFluids(event) + hideFirmaLifeFluids(event) }) diff --git a/kubejs/client_scripts/mods/firmalife.js b/kubejs/client_scripts/mods/firmalife.js new file mode 100644 index 000000000..8203a744a --- /dev/null +++ b/kubejs/client_scripts/mods/firmalife.js @@ -0,0 +1,21 @@ +// priority: 0 + +const hideFirmaLifeStuff = (event) => { + global.TFC_STONE_TYPES.forEach(stoneTypeName => { + global.TFC_ORE_TYPES.forEach(oreTypeName => { + global.FIRMALIFE_ORE_MATERIALS.forEach(oreMaterialName => { + event.hide(`firmalife:ore/${oreTypeName}_${oreMaterialName}/${stoneTypeName}`) + }) + }) + }) + + + global.FIRMALIFE_DISABLED_ITEMS.forEach(item => { + event.hide(item) + }) +} + +const hideFirmaLifeFluids = (event) => { + event.hide('firmalife:metal/chromium') + event.hide('firmalife:metal/stainless_steel') +} \ No newline at end of file