From c9dbca8cc0ea34936bd52f22a36c89dd39d95014 Mon Sep 17 00:00:00 2001 From: mina <143211829+ursamina@users.noreply.github.com> Date: Thu, 28 Sep 2023 20:05:43 +0100 Subject: [PATCH] integrated Pipez added quests added recipes too balancing todo --- .../quests/chapters/tips_and_tricks.snbt | 27 +++++- kubejs/server_scripts/pipez/recipes.js | 91 +++++++++++++++++++ 2 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 kubejs/server_scripts/pipez/recipes.js diff --git a/config/ftbquests/quests/chapters/tips_and_tricks.snbt b/config/ftbquests/quests/chapters/tips_and_tricks.snbt index 7fea19f..146ef3f 100644 --- a/config/ftbquests/quests/chapters/tips_and_tricks.snbt +++ b/config/ftbquests/quests/chapters/tips_and_tricks.snbt @@ -423,7 +423,32 @@ x: 7.5d y: 5.5d } + { + dependencies: ["77EA56D16A9B3BFC"] + description: [ + "In the absence of CEu Item Pipes in 1.19.2, we present a reskinned and rebalanced Pipez mod!" + "" + "The upgrades scale by tier and are reduced in efficiency in an attempt to match the power granted by 1.12.2 pipes." + "" + "If you would like to play with the cooler GT pipes, please don't hesistate to play the 1.12.2 pack instead - they have some interesting priority mechanics based on pipe material!" + ] + id: "53E4B7425B3EE587" + rewards: [{ + id: "6B15EF4E93681C66" + item: "pipez:wrench" + type: "item" + }] + subtitle: "Item Transportation" + tasks: [{ + id: "6D723192E44717A5" + item: "pipez:item_pipe" + type: "item" + }] + title: "Pipez" + x: 1.0d + y: 2.5d + } ] subtitle: ["Useful GregTech mechanics and tips for the budding engineer"] - title: "Tips and Tricks" + title: "Useful Information" } diff --git a/kubejs/server_scripts/pipez/recipes.js b/kubejs/server_scripts/pipez/recipes.js new file mode 100644 index 0000000..ea91373 --- /dev/null +++ b/kubejs/server_scripts/pipez/recipes.js @@ -0,0 +1,91 @@ +ServerEvents.recipes(event => { + const greg = event.recipes.gtceu + event.remove({mod: "pipez"}) + + // Item Pipe + event.shaped('2x pipez:item_pipe', [ + 'RRR', + 'BhB', + 'RRR' + ] , { + R: "#forge:plates/rubber", + B: "#forge:plates/brass", + h: "#forge:tools/hammers" + }) + greg.assembler("rubber_pipe") + .itemInputs("2x #forge:plates/brass") + .inputFluids("gtceu:rubber 432") + .itemOutputs("2x pipez:item_pipe") + .duration(100).EUt(7) + + event.shaped('4x pipez:item_pipe', [ + 'RRR', + 'BhB', + 'RRR' + ] , { + R: "#forge:plates/silicone_rubber", + B: "#forge:plates/brass", + h: "#forge:tools/hammers" + }) + greg.assembler("silicone_rubber_pipe") + .itemInputs("2x #forge:plates/brass") + .inputFluids("gtceu:silicone_rubber 216") + .itemOutputs("4x pipez:item_pipe") + .duration(100).EUt(7) + + event.shaped('16x pipez:item_pipe', [ + 'RRR', + 'BhB', + 'RRR' + ] , { + R: "#forge:plates/styrene_butadiene_rubber", + B: "#forge:plates/brass", + h: "#forge:tools/hammers" + }) + greg.assembler("styrene_butadiene_rubber_pipe") + .itemInputs("2x #forge:plates/brass") + .inputFluids("gtceu:styrene_butadiene_rubber 108") + .itemOutputs("16x pipez:item_pipe") + .duration(100).EUt(7) + + let upgradePipe = (machineTier, material, upgradeTier) => { + event.shaped(`pipez:${upgradeTier}_upgrade`, [ + 'PPP', + 'CFC', + 'PPP' + ] , { + P: `#forge:plates/${material}`, + C: `gtceu:${machineTier}_conveyor_module`, + F: "gtceu:item_filter" + }) + } + upgradePipe("mv", "aluminium", "basic") + upgradePipe("hv", "stainless_steel", "improved") + upgradePipe("ev", "titanium", "advanced") + upgradePipe("iv", "tungsten_steel", "ultimate") + + // Wrench + event.shaped('pipez:wrench', [ + 'IhI', + ' S ', + ' S ' + ] , { + I: "#forge:plates/iron", + S: "#forge:plates/steel", + h: "#forge:tools/hammers" + }) + + // Terminal + event.shaped('pipez:filter_destination_tool', [ + 'R B', + 'FCF', + 'PSP' + ] , { + R: "gtceu:red_alloy_single_wire", + B: "gtceu:cobalt_single_wire", + F: "gtceu:item_filter", + C: "#forge:circuits/mv", + P: "#forge:plates/vanadium_steel", + S: "#forge:screws/vanadium_steel" + }) +}) \ No newline at end of file