From 8cf6c5796399bb8302fb1abde424040976c21b72 Mon Sep 17 00:00:00 2001 From: Xefyr0 <78383477+Xefyr0@users.noreply.github.com> Date: Mon, 28 Oct 2024 01:24:08 -0400 Subject: [PATCH] Use ExtendedAE's ME Infinity Cells as a replacement for bugged Creative ME Fluid Cell (#1037) * Use ExtendedAE's Infinity Cells as a replacement for bugged Creative Fluid Cell * Quest work to switch from Creative ME Fluid Cell to Creative Fluid Cell Base * Rename Creative Fluid Cell Base to Infinity Cell Base * Improve the quest with a better explanation of how to assign the ME Infinity Cell Base * Add display name to ME Infinity Cell Base --- config/ftbquests/quests/chapters/end_game.snbt | 10 ++++++---- .../kubejs/textures/item/infinity_cell_base.png | Bin 0 -> 357 bytes .../gregtech/subatomic_digital_assembler.js | 10 ++++++++++ kubejs/startup_scripts/registry/item_registry.js | 3 +++ 4 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 kubejs/assets/kubejs/textures/item/infinity_cell_base.png diff --git a/config/ftbquests/quests/chapters/end_game.snbt b/config/ftbquests/quests/chapters/end_game.snbt index 38dd8d81e..dc74bf41d 100644 --- a/config/ftbquests/quests/chapters/end_game.snbt +++ b/config/ftbquests/quests/chapters/end_game.snbt @@ -522,19 +522,21 @@ "65C40A41F29687F4" ] description: [ - "Changing the circuit value on your newfound &9Subatomic Digital Assembler&r will allow you to assemble &9Creative ME Fluid Cells&r." + "Changing the circuit value on your newfound &3Subatomic Digital Assembler&r will allow you to assemble &9ME Infinity Cell Bases&r." "" - "These are kind of like the previous &9infinite cells&r, but you can partition this one in a &6cell workbench&r to tell what fluids it should stock." + "[\"These can be used to make infinite sources of fluid in ME cell form like the \", {\"text\": \"ME Infinity Water Cell,\", \"underlined\": \"true\", \"clickEvent\": { \"action\": \"change_page\", \"value\": \"26C9F1514FD08C81\" } },\" but for any fluid.\"]" + "" + "To do so, combine the &9ME Infinity Cell Base&r with a &efilled&r &6Fluid Cell&r in a &3Crafting Table&r to assign the cell to that fluid." ] hide_until_deps_visible: true id: "2F21C6B6F145EA81" optional: true tasks: [{ id: "390C1F547BDF7D2B" - item: "ae2:creative_fluid_cell" + item: "kubejs:infinity_cell_base" type: "item" }] - title: "&9Creative Fluid Cell" + title: "&9ME Infinity Cell Base" x: 31.0d y: -9.5d } diff --git a/kubejs/assets/kubejs/textures/item/infinity_cell_base.png b/kubejs/assets/kubejs/textures/item/infinity_cell_base.png new file mode 100644 index 0000000000000000000000000000000000000000..07f3dcb8d0601924c9f97a63a041f7b25b433142 GIT binary patch literal 357 zcmV-r0h<1aP)6)`rAha9yU&fFTcK{1ne7N z)c$$*5b6S$6q0v9feJF<`=4J7_g~&-5EYaGtAc3+b1u$h#7xRiLqN8|T!2j@%ubwn z0Td=6Lmqs73wA2ZM)U-NJ2%2|;@3A|r(#W6KtTY)p|a*K_b!qE0000 { if (isNormalMode) { sda_print('creative_tank_data', 1, 'gtceu:creative_tank', 64) //sda_print('creative_tank_data', 2, 'ae2:creative_fluid_cell', 64) //The fluid cell can output items as a bug. See #8193 on the AE2 Github. + + //Replacement solution with ExtendedAE's Infinity Cells + sda_print('creative_tank_data', 2, 'kubejs:infinity_cell_base', 64) + Item.of('expatternprovider:infinity_cell', '{record:{"#c":"ae2:f",id:"minecraft:water"}}') + event.shapeless('expatternprovider:infinity_cell', ['kubejs:infinity_cell_base', 'gtceu:fluid_cell']).modifyResult((grid, result) => { + let item = grid.find('gtceu:fluid_cell') + if (item.nbt != null && item.nbt.Fluid != null && item.nbt.Fluid.FluidName != null) { + return result.withNBT({record:{"#c":"ae2:f",id:item.nbt.Fluid.FluidName}}) + } + }) } if (!isNormalMode) { diff --git a/kubejs/startup_scripts/registry/item_registry.js b/kubejs/startup_scripts/registry/item_registry.js index 975611531..d1f3a3cbc 100644 --- a/kubejs/startup_scripts/registry/item_registry.js +++ b/kubejs/startup_scripts/registry/item_registry.js @@ -136,6 +136,9 @@ StartupEvents.registry('item', event => { event.create('creative_energy_data') if (!isNormalMode) event.create('omnic_data') + //Infinity Fluid Cell Base + event.create('infinity_cell_base').displayName("ME Infinity Cell Base") + // Endgame Items event.create('diamond_lattice')