From f0a6f5e160dbbbd1b3b751e4bf5da6ca1e43776d Mon Sep 17 00:00:00 2001 From: Sleepy Evelyn <46009144+sleepy-evelyn@users.noreply.github.com> Date: Sat, 30 Nov 2024 19:23:53 +0000 Subject: [PATCH] Add gamers recipe fixes and remove distant horizons --- index.toml | 9 +- kubejs/server_scripts/gamers recipe fixs.js | 174 ++++++++++++++++++++ mods/distanthorizons.pw.toml | 18 -- pack.toml | 2 +- 4 files changed, 179 insertions(+), 24 deletions(-) create mode 100644 kubejs/server_scripts/gamers recipe fixs.js delete mode 100644 mods/distanthorizons.pw.toml diff --git a/index.toml b/index.toml index 8a5491d..19289f1 100644 --- a/index.toml +++ b/index.toml @@ -569,6 +569,10 @@ hash = "7ea109dacee39772f296e34586b2e5bc0891f6c13d594451b05ee617b670ee60" file = "kubejs/server_scripts/createadditions/charging.js" hash = "c6f5233610de98f80eb2b1b2b6cf5e73df472a0ba096c0f5d209c53ee1b7b3e5" +[[files]] +file = "kubejs/server_scripts/gamers recipe fixs.js" +hash = "bf19de6432befdeb2f6f55f1f0492ac2636a6a1f9f229457a7a6abbb70b856e1" + [[files]] file = "kubejs/server_scripts/local_chat.js" hash = "e33d12f0409dc096d3408899bf30093b2d80930d2806c90f1d3b3625039825d6" @@ -1037,11 +1041,6 @@ file = "mods/detail-armor-bar.pw.toml" hash = "89d22d515a1b5b1349b21eaa191a00bf529acca7673ba6af27dfda0380abea2b" metafile = true -[[files]] -file = "mods/distanthorizons.pw.toml" -hash = "bfea39fa87d572fb36860c915666ca16daca9d93bfdbcdd9185f8b490f0ecb41" -metafile = true - [[files]] file = "mods/do-a-barrel-roll.pw.toml" hash = "5eddd4c6a5cba7cd4d3d9a0acd0e810ae040d92b6c1928984a9497a5187d143b" diff --git a/kubejs/server_scripts/gamers recipe fixs.js b/kubejs/server_scripts/gamers recipe fixs.js new file mode 100644 index 0000000..914e263 --- /dev/null +++ b/kubejs/server_scripts/gamers recipe fixs.js @@ -0,0 +1,174 @@ +//travertine fix + +//put this in server scripts (but you know this... right?) + +// Recipes only need to be registered once here :3 +ServerEvents.recipes((event) => { + // These are the prefixes for the blocks + const mainVariants = ["cobbled_travertine", "polished_travertine", "travertine_brick", "travertine_tile"] + // And the suffixes + const blockTypes = ["stairs", "slab", "wall"] + + // We cycle through the main variants + mainVariants.forEach(variant => { + // Then also loop within this loop for the suffixes (block types) + blockTypes.forEach(type => { + // This is a conditional statement. It checks with the "?" if type is equal to slab. If so set the multiplier to "x2", otherwise set to nothing. + const multiplier = type === 'slab' ? "2x " : ""; + // Input all out information into the template literal + event.stonecutting(`${multiplier}natures_spirit:${variant}_${type}`, 'natures_spirit:travertine') + }) + }) + // Repeat with the other variants we can't include in the main variants due to weird naming + const otherVariants = ["cobbled_travertine", "travertine_slab", "chiseled_travertine", "travertine_bricks", "travertine_tiles"] + otherVariants.forEach(variant => event.stonecutting(`natures_spirit:${variant}`, 'natures_spirit:travertine')) +}); +//thanks Evelyn for this :3 +//enjoy Katherine (i know that they will never see this but still) + +//sky steel ingot mixer recipe +ServerEvents.recipes(event => { + event.custom({ + type: "create:mixing", + ingredients: [ + { + item: "ae2:charged_certus_quartz_crystal", + }, + { + tag: "c:iron_ingots", + }, + //{ + //fluid: "minecraft:lava", + //amount: 8100, + //}, + { + item: "ae2:sky_stone_block", + }, + ], + results: [ + { + item: "megacells:sky_steel_ingot", + count: 2 + }, + ], + heatRequirement: "heated" +}); +}) + +//the compact iron fluid tank recipe fix + +ServerEvents.recipes(event => { + event.shaped('design_decor:gas_tank', [// arg 1: output + 'BAB', + 'B B', // arg 2: the shape (array of strings) + 'BBB' + ], { + A: 'create:andesite_alloy', + B: 'create:iron_sheet' //arg 3: the mapping object + }) + }) + ServerEvents.recipes(event => { + event.remove({ id: 'design_decor:crafting/gas_tank' }) + }) + + // certus quartz budding mixer recipe + //hi evelyn :3 i hope i made this good idk if there is some way to do the same thing as the stone cutter recipes + + ServerEvents.recipes((event) => { + event.custom({ + type: "create:mixing", + ingredients: [ + { + item: "ae2:charged_certus_quartz_crystal", + }, + { + fluid: "minecraft:water", + amount: 8100, + }, + { + item: "ae2:quartz_block", + }, + ], + results: [ + { + item: "ae2:damaged_budding_quartz" + }, + ], + //heatRequirement: "heated", + }); + }); + ServerEvents.recipes((event) => { + event.custom({ + type: "create:mixing", + ingredients: [ + { + item: "ae2:charged_certus_quartz_crystal", + }, + { + fluid: "minecraft:water", + amount: 8100, + }, + { + item: "ae2:damaged_budding_quartz", + }, + ], + results: [ + { + item: "ae2:chipped_budding_quartz" + }, + ], + //heatRequirement: "heated", + }); + }); + ServerEvents.recipes((event) => { + event.custom({ + type: "create:mixing", + ingredients: [ + { + item: "ae2:charged_certus_quartz_crystal", + }, + { + fluid: "minecraft:water", + amount: 8100, + }, + { + item: "ae2:chipped_budding_quartz", + }, + ], + results: [ + { + item: "ae2:flawed_budding_quartz" + }, + ], + //heatRequirement: "heated", + }); + }); + + //dedelion tea fix recipe + + ServerEvents.recipes((event) => { + event.custom({ + type: "create:mixing", + ingredients: [ + { + tag: "c:tea_leaves", + }, + { + item: "minecraft:dandelion", + }, + { + fluid: "minecraft:water", + amount: 20250, + }, + ], + results: [ + { + fluid: "respitecreators:dandelion_tea", + amount: 20250, + }, + ], + heatRequirement: "heated", + }); +}); +//i am getting better at this (i think) + diff --git a/mods/distanthorizons.pw.toml b/mods/distanthorizons.pw.toml deleted file mode 100644 index 480d209..0000000 --- a/mods/distanthorizons.pw.toml +++ /dev/null @@ -1,18 +0,0 @@ -name = "Distant Horizons" -filename = "DistantHorizons-2.2.1-a-1.20.1-forge-fabric.jar" -side = "client" - -[download] -url = "https://cdn.modrinth.com/data/uCdwusMi/versions/20nF6i21/DistantHorizons-2.2.1-a-1.20.1-forge-fabric.jar" -hash-format = "sha512" -hash = "a5059a249283f686bc49bc4c2606fce7b665102983f396996f47c11245fee21059554db5f9bdf63fa41ec954282a9ee3646ea42997f37bedb0af8b14944704f4" - -[update] -[update.modrinth] -mod-id = "uCdwusMi" -version = "20nF6i21" - -[option] -optional = true -default = false -description = "Allows for render distances further than the server view distance. More performant that Bobby but prone to crashing on certain systems. Only supports certain shaders" diff --git a/pack.toml b/pack.toml index d6c50fe..c5fe64d 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "3a770f79e9575a75018dc5683514237f94d7d6f17392ac6b392396c8eb05901d" +hash = "901e6acf1cddf5787c5ffe1611b809e20f3fcfe36e34be48b5f91041d066cb66" [versions] fabric = "0.16.5"