From be26201b5dcce1010962977f93060bdbb7a13052 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 19 Jul 2022 10:29:31 -0500 Subject: [PATCH] Thermal Latex Integration --- kubejs/server_scripts/integration/Tags.js | 4 ++++ .../integration/mod/IndustrialForegoing.js | 24 ++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/kubejs/server_scripts/integration/Tags.js b/kubejs/server_scripts/integration/Tags.js index 8c190ad..bc0e0b1 100644 --- a/kubejs/server_scripts/integration/Tags.js +++ b/kubejs/server_scripts/integration/Tags.js @@ -51,3 +51,7 @@ onEvent('item.tags', event => { event.add('thermal:crafting/dies', global.ie('mold_bullet_casing')); event.removeAllTagsFrom('minecraft:chest'); }); + +onEvent('fluid.tags', event => { + event.remove('forge:latex', 'thermal:latex'); +}); diff --git a/kubejs/server_scripts/integration/mod/IndustrialForegoing.js b/kubejs/server_scripts/integration/mod/IndustrialForegoing.js index 710dd6b..f1768e9 100644 --- a/kubejs/server_scripts/integration/mod/IndustrialForegoing.js +++ b/kubejs/server_scripts/integration/mod/IndustrialForegoing.js @@ -185,13 +185,25 @@ onEvent('recipes', event => { event.remove({output: 'industrialforegoing:infinity_nuke'}); - // Progression event.remove({output: 'industrialforegoing:machine_frame_pity'}); - // Automatable recipe using the Mechanical Crafting - event.shaped('industrialforegoing:machine_frame_pity', ['PEP', 'CFC', 'PEP'], { + event.shaped('industrialforegoing:machine_frame_pity', ['PPP', 'RFR', 'PPP'], { F: 'thermal:machine_frame', - P: '#forge:plastic', - E: 'thermal:ender_bucket', - C: '#forge:cobblestone', + R: 'thermal:cured_rubber', + P: '#minecraft:planks', + }); + + // Integration with Thermal Latex + event.remove({id: 'create:empty_thermal_latex_bucket_of_thermal_latex'}); + event.remove({id: 'create:fill_minecraft_bucket_with_thermal_latex'}); + event.remove({id: 'immersiveengineering:jei_bucket_latex'}); + event.remove({id: 'thermal:bottler_bucket'}); + event.remove({id: 'thermal:devices/tree_extractor/tree_extractor_jungle'}); + event.remove({id: 'thermal:machines/press/press_dandelion_to_latex'}); + event.remove({id: 'thermal:machines/press/press_vine_to_latex'}); + event.custom({ + type: 'thermal:tree_extractor', + trunk: 'minecraft:jungle_log', + leaves: 'minecraft:jungle_leaves', + result: Fluid.of('industrialforegoing:latex', 25).toJson(), }); });