diff --git a/config/Mekanism/tiers.toml b/config/Mekanism/tiers.toml index 50729e1..54933db 100644 --- a/config/Mekanism/tiers.toml +++ b/config/Mekanism/tiers.toml @@ -112,7 +112,7 @@ #Induction [tier.induction] #Maximum number of Joules Basic induction cells can store. - basicStorage = "8000000000" + basicStorage = "12000000" #Maximum number of Joules Advanced induction cells can store. advancedStorage = "64000000000" #Maximum number of Joules Elite induction cells can store. diff --git a/kubejs/assets/mekanism/lang/en_us.json b/kubejs/assets/mekanism/lang/en_us.json index d4ed2b4..482489b 100644 --- a/kubejs/assets/mekanism/lang/en_us.json +++ b/kubejs/assets/mekanism/lang/en_us.json @@ -1,7 +1,6 @@ { "block.mekanism.advanced_bin": "Improved Bin", "block.mekanism.basic_bin": "Basic Bin", - "block.mekanism.elite_bin": "Advanced Bin", "block.mekanism.ultimate_bin": "Vacuous Bin", "description.mekanism.bin": "A block used to store large quantities of a single type of item." -} +} \ No newline at end of file diff --git a/kubejs/client_scripts/EnoughItems.js b/kubejs/client_scripts/EnoughItems.js index 6948b9d..a575cb3 100644 --- a/kubejs/client_scripts/EnoughItems.js +++ b/kubejs/client_scripts/EnoughItems.js @@ -5,7 +5,7 @@ const items = [ '/expandedstorage:*_present/', '/libraryferret:*/', '/lootr:*/', - '/mekanism:(?!.*_bin)(?!meka.*)(?!modification_station.*)(?!module_.*).*/', + '/mekanism:(?!.*_bin)(?!meka.*)(?!modification_station.*)(?!module_.*)(?!.*induction.*)(?!configurator).*/', '/.*:.*_spawn_egg/', '/industrialforegoing:infinity_backpack/', '/industrialforegoing:infinity_drill/', diff --git a/kubejs/server_scripts/integration/Mekanism.js b/kubejs/server_scripts/integration/Mekanism.js index 8b70794..ead15d6 100644 --- a/kubejs/server_scripts/integration/Mekanism.js +++ b/kubejs/server_scripts/integration/Mekanism.js @@ -1,119 +1,190 @@ -const MekanismModuleRecipes = CustomRecipeHandler => { - [ - { - items: [Item.of('pneumaticcraft:jumping_upgrade_4')], - output: Item.of('mekanism:module_hydraulic_propulsion_unit'), - }, - { - items: [Item.of('pneumaticcraft:magnet_upgrade')], - output: Item.of('mekanism:module_magnetic_attraction_unit'), - }, - { - items: [ - Item.of('blue_ice'), - Item.of('thermal:ice_grenade'), - Item.of('thermal:ice_charge'), - Item.of('blue_ice'), - ], - output: Item.of('mekanism:module_frost_walker_unit'), - }, - { - items: [Item.of('pneumaticcraft:night_vision_upgrade')], - output: Item.of('mekanism:module_vision_enhancement_unit'), - }, - { - items: [Item.of('pneumaticcraft:speed_upgrade')], - output: Item.of('mekanism:module_excavation_escalation_unit'), - }, - { - items: [Item.of('minecraft:diamond_sword'), Item.of('minecraft:diamond_sword')], - output: Item.of('mekanism:module_attack_amplification_unit'), - }, - { - items: [Item.of('minecraft:diamond_hoe'), Item.of('minecraft:diamond_hoe')], - output: Item.of('mekanism:module_farming_unit'), - }, - { - items: [Item.of('minecraft:shears')], - output: Item.of('mekanism:module_shearing_unit'), - }, - { - items: [ - Item.of('infernalexp:glowsilk'), - Item.of('refinedstorage:silk_touch_upgrade'), - Item.of('infernalexp:glowsilk'), - ], - output: Item.of('mekanism:module_silk_touch_unit'), - }, - { - items: [ - Item.of('minecraft:lapis_block'), - Item.of('refinedstorage:fortune_3_upgrade'), - Item.of('minecraft:lapis_block'), - ], - output: Item.of('mekanism:module_fortune_unit'), - }, - { - items: [ - Item.of('minecraft:tnt'), - Item.of('minecraft:tnt'), - Item.of('minecraft:tnt'), - Item.of('thermal:ender_tnt'), - Item.of('thermal:ender_tnt'), - Item.of('thermal:ender_tnt'), - Item.of('thermal:ender_tnt'), - ], - output: Item.of('mekanism:module_blasting_unit'), - }, - { - items: [Item.of('tempad:tempad')], - output: Item.of('mekanism:module_teleportation_unit'), - }, - { - items: [Item.of('pneumaticcraft:scuba_upgrade')], - output: Item.of('mekanism:module_electrolytic_breathing_unit'), - }, - { - items: [Item.of('thermal:energy_cell')], - output: Item.of('mekanism:module_energy_unit'), - }, - { - items: [Item.of('pneumaticcraft:stomp_upgrade')], - output: Item.of('mekanism:module_gyroscopic_stabilization_unit'), - }, - { - items: [ - Item.of('pneumaticcraft:speed_upgrade'), - Item.of('pneumaticcraft:speed_upgrade'), - Item.of('pneumaticcraft:speed_upgrade'), - ], - output: Item.of('mekanism:module_locomotive_boosting_unit'), - }, - { - items: [Item.of('pneumaticcraft:flippers_upgrade')], - output: Item.of('mekanism:module_hydrostatic_repulsor_unit'), - }, - { - items: [Item.of('pneumaticcraft:jet_boots_upgrade_3')], - output: Item.of('mekanism:module_jetpack_unit'), - }, - { - items: [Item.of('pneumaticcraft:elytra_upgrade')], - output: Item.of('mekanism:module_elytra_unit'), - }, - ].forEach(x => { - CustomRecipeHandler.dissolution( - x.output, - x.items.concat([Item.of('mekanism:module_base')]), - Fluid.of('industrialforegoing:pink_slime', 500) - ); - }); -}; - onEvent('recipes', event => { // const CustomRecipeHandler = global.recipes(event); const CustomRecipeHandler = global.recipes(event); + const MekanismModuleRecipes = () => { + [ + { + items: [Item.of('pneumaticcraft:jumping_upgrade_4')], + output: Item.of('mekanism:module_hydraulic_propulsion_unit'), + }, + { + items: [Item.of('pneumaticcraft:magnet_upgrade')], + output: Item.of('mekanism:module_magnetic_attraction_unit'), + }, + { + items: [ + Item.of('blue_ice'), + Item.of('thermal:ice_grenade'), + Item.of('thermal:ice_charge'), + Item.of('blue_ice'), + ], + output: Item.of('mekanism:module_frost_walker_unit'), + }, + { + items: [Item.of('pneumaticcraft:night_vision_upgrade')], + output: Item.of('mekanism:module_vision_enhancement_unit'), + }, + { + items: [Item.of('pneumaticcraft:speed_upgrade')], + output: Item.of('mekanism:module_excavation_escalation_unit'), + }, + { + items: [Item.of('minecraft:diamond_sword'), Item.of('minecraft:diamond_sword')], + output: Item.of('mekanism:module_attack_amplification_unit'), + }, + { + items: [Item.of('minecraft:diamond_hoe'), Item.of('minecraft:diamond_hoe')], + output: Item.of('mekanism:module_farming_unit'), + }, + { + items: [Item.of('minecraft:shears')], + output: Item.of('mekanism:module_shearing_unit'), + }, + { + items: [ + Item.of('infernalexp:glowsilk'), + Item.of('refinedstorage:silk_touch_upgrade'), + Item.of('infernalexp:glowsilk'), + ], + output: Item.of('mekanism:module_silk_touch_unit'), + }, + { + items: [ + Item.of('minecraft:lapis_block'), + Item.of('refinedstorage:fortune_3_upgrade'), + Item.of('minecraft:lapis_block'), + ], + output: Item.of('mekanism:module_fortune_unit'), + }, + { + items: [ + Item.of('minecraft:tnt'), + Item.of('minecraft:tnt'), + Item.of('minecraft:tnt'), + Item.of('thermal:ender_tnt'), + Item.of('thermal:ender_tnt'), + Item.of('thermal:ender_tnt'), + Item.of('thermal:ender_tnt'), + ], + output: Item.of('mekanism:module_blasting_unit'), + }, + { + items: [Item.of('tempad:tempad')], + output: Item.of('mekanism:module_teleportation_unit'), + }, + { + items: [Item.of('pneumaticcraft:scuba_upgrade')], + output: Item.of('mekanism:module_electrolytic_breathing_unit'), + }, + { + items: [Item.of('thermal:energy_cell')], + output: Item.of('mekanism:module_energy_unit'), + }, + { + items: [Item.of('pneumaticcraft:stomp_upgrade')], + output: Item.of('mekanism:module_gyroscopic_stabilization_unit'), + }, + { + items: [ + Item.of('pneumaticcraft:speed_upgrade'), + Item.of('pneumaticcraft:speed_upgrade'), + Item.of('pneumaticcraft:speed_upgrade'), + ], + output: Item.of('mekanism:module_locomotive_boosting_unit'), + }, + { + items: [Item.of('pneumaticcraft:flippers_upgrade')], + output: Item.of('mekanism:module_hydrostatic_repulsor_unit'), + }, + { + items: [Item.of('pneumaticcraft:jet_boots_upgrade_3')], + output: Item.of('mekanism:module_jetpack_unit'), + }, + { + items: [Item.of('pneumaticcraft:elytra_upgrade')], + output: Item.of('mekanism:module_elytra_unit'), + }, + ].forEach(x => { + CustomRecipeHandler.dissolution( + x.output, + x.items.concat([Item.of('mekanism:module_base')]), + Fluid.of('industrialforegoing:pink_slime', 500) + ); + }); + }; + + const InductionCellRecipes = () => { + event.shaped('8x mekanism:induction_casing', ['PPP', 'PCP', 'PPP'], { + P: '#forge:plastic', + C: 'thermal:upgrade_augment_3', + }); + + CustomRecipeHandler.automatableSmithing( + Item.of('mekanism:induction_port'), + Item.of('mekanism:induction_casing'), + Item.of('refinedpipes:advanced_extractor_attachment') + ); + + /* Induction Cells */ + event.shaped('mekanism:basic_induction_cell', ['CAC', 'HIH', 'CAC'], { + C: '#forge:storage_blocks/copper', + A: 'immersiveengineering:capacitor_hv', + I: 'thermal:upgrade_augment_1', + H: 'mekanism:induction_casing', + }); + + event.shaped('mekanism:advanced_induction_cell', ['CAC', 'HIH', 'CAC'], { + C: '#forge:storage_blocks/enderium', + A: 'mekanism:basic_induction_cell', + I: 'thermal:upgrade_augment_3', + H: 'mekanism:induction_casing', + }); + + event.shaped('mekanism:elite_induction_cell', ['CAC', 'HIH', 'CAC'], { + C: '#forge:storage_blocks/ostrum', + A: 'mekanism:advanced_induction_cell', + I: 'kubejs:ostrum_integral_components', + H: 'mekanism:induction_casing', + }); + + event.shaped('mekanism:ultimate_induction_cell', ['CAC', 'HIH', 'CAC'], { + C: '#forge:storage_blocks/calorite', + A: 'mekanism:elite_induction_cell', + I: 'kubejs:calorite_integral_components', + H: 'mekanism:induction_casing', + }); + + /* Induction Providers */ + event.shaped('mekanism:basic_induction_provider', ['CPC', 'AIA', 'CPC'], { + C: '#forge:storage_blocks/copper', + P: '#thermal:glass/hardened', + I: 'thermal:upgrade_augment_1', + A: 'mekanism:induction_casing', + }); + + event.shaped('mekanism:advanced_induction_provider', ['CPC', 'AIA', 'CPC'], { + C: '#forge:storage_blocks/enderium', + P: '#thermal:glass/hardened', + I: 'thermal:upgrade_augment_3', + A: 'mekanism:induction_casing', + }); + + event.shaped('mekanism:elite_induction_provider', ['CPC', 'AIA', 'CPC'], { + C: '#forge:storage_blocks/ostrum', + P: '#thermal:glass/hardened', + I: 'kubejs:ostrum_integral_components', + A: 'mekanism:induction_casing', + }); + + event.shaped('mekanism:ultimate_induction_provider', ['CPC', 'AIA', 'CPC'], { + C: '#forge:storage_blocks/calorite', + P: '#thermal:glass/hardened', + I: 'kubejs:calorite_integral_components', + A: 'mekanism:induction_casing', + }); + }; + /* Remove recipes for Mekanism */ event.remove({mod: 'mekanism'}); event.remove({id: 'createaddition:compat/mekanism/rose_quartz_enriching'}); @@ -211,8 +282,14 @@ onEvent('recipes', event => { Fluid.of('industrialforegoing:ether_gas', 200) ); - /** MODULES **/ - MekanismModuleRecipes(CustomRecipeHandler); + InductionCellRecipes(); + MekanismModuleRecipes(); + + CustomRecipeHandler.warping( + Item.of('fluxnetworks:flux_configurator'), + Item.of('mekanism:configurator'), + 'minecraft:the_end' + ); CustomRecipeHandler.automatableSmithing( Item.of('mekanism:basic_bin'),