From 7650e5da60cf439daf334b329fa713d8a3e8b24b Mon Sep 17 00:00:00 2001 From: Sleepy Evelyn <46009144+sleepy-evelyn@users.noreply.github.com> Date: Wed, 27 Nov 2024 17:58:00 +0000 Subject: [PATCH] Try to fix tinkers join error --- index.toml | 6 ++- kubejs/server_scripts/mods/tinkers.js | 59 +++++++++++++++++++++++++++ mods/railways-tweaks.pw.toml | 6 +-- pack.toml | 4 +- 4 files changed, 69 insertions(+), 6 deletions(-) create mode 100644 kubejs/server_scripts/mods/tinkers.js diff --git a/index.toml b/index.toml index 047a7c5..8f22d7b 100644 --- a/index.toml +++ b/index.toml @@ -581,6 +581,10 @@ hash = "e7eca84aedff32c1346213753ae790cef04be79803aa091a953065405a54d8ae" file = "kubejs/server_scripts/mods/phonos.js" hash = "0cdef75026facef7f1e3021f495cf4f11a4341e86c24c93301a2183ed9dfc2d7" +[[files]] +file = "kubejs/server_scripts/mods/tinkers.js" +hash = "1cdd7282bfc4beb43c7145da573f84403356c45ca5e01a5d8e9382af85d6fd65" + [[files]] file = "kubejs/server_scripts/poly's fixes/farmersdelight.js" hash = "7b1cbd8ed4d6f49300357c128cb1bb4ca8f8002665bb23c56c036cc6f9c6a0bf" @@ -1659,7 +1663,7 @@ metafile = true [[files]] file = "mods/railways-tweaks.pw.toml" -hash = "8aa08c6d0a3ce0f9a10466db7b2e7cde1d73a259e822ccf92e6519e7ce748bda" +hash = "e6574fddc87cea14725c6a156b8e54745eb6f923b8bd123cc62d57f7e799f6e7" metafile = true [[files]] diff --git a/kubejs/server_scripts/mods/tinkers.js b/kubejs/server_scripts/mods/tinkers.js new file mode 100644 index 0000000..801f868 --- /dev/null +++ b/kubejs/server_scripts/mods/tinkers.js @@ -0,0 +1,59 @@ +ServerEvents.recipes((event) => { + const twoIngredientAlloying = [ + ["minecraft:copper_ingot", "minecraft:gold_ingot", "tconstruct:rose_gold_ingot", 2, "heated"], + ["minecraft:amethyst_shard", "minecraft:copper_ingot", "tconstruct:amethyst_bronze_ingot", 1, "heated"], + ["tconstruct:cobalt_ingot", "minecraft:netherite_scrap", "tconstruct:manyullyn_ingot", 2, "superheated"] + ] + + const threeIngredientAlloying = [ + ["minecraft:quartz", "tconstruct:cobalt_ingot", "minecraft:copper_ingot", "tconstruct:hepatizon_ingot", 2], + ["minecraft:gold_ingot", "minecraft:magma_cream", "tconstruct:cobalt_ingot", "tconstruct:queens_slime_ingot", 1], + ] + + twoIngredientAlloying.forEach((recipe) => { + event.remove({ output: recipe[2] }); + event.custom({ + type: "create:mixing", + ingredients: [ + { + item: recipe[0] + }, + { + item: recipe[1] + } + ], + results: [ + { + item: recipe[2], + count: recipe[3] + }, + ], + heatRequirement: recipe[4] + }); + }); + + threeIngredientAlloying.forEach((recipe) => { + event.remove({ output: recipe[3] }); + event.custom({ + type: "create:mixing", + ingredients: [ + { + item: recipe[0] + }, + { + item: recipe[1] + }, + { + item: recipe[2] + } + ], + results: [ + { + item: recipe[3], + count: recipe[4] + }, + ], + heatRequirement: "superheated" + }); + }); +}); \ No newline at end of file diff --git a/mods/railways-tweaks.pw.toml b/mods/railways-tweaks.pw.toml index 94c7b5a..a3351a6 100644 --- a/mods/railways-tweaks.pw.toml +++ b/mods/railways-tweaks.pw.toml @@ -1,7 +1,7 @@ name = "railways-tweaks" -filename = "RailwaysTweaks-0.0.46.jar" +filename = "RailwaysTweaks-0.0.47.jar" [download] -url = "https://github.com/Layers-of-Railways/RailwaysTweaks/releases/download/v0.0.46/RailwaysTweaks-0.0.46.jar" +url = "https://github.com/Layers-of-Railways/RailwaysTweaks/releases/download/v0.0.47/RailwaysTweaks-0.0.47.jar" hash-format = "sha256" -hash = "169d3c2bd79d27ff788e39fb6043d80c2899cf4d26f006d12c6efb0018f26fc5" +hash = "045dc7054ee165317a52c4138f3e8564b9f124bd89b78286605ec6fff4224498" diff --git a/pack.toml b/pack.toml index 04f7930..efb9a7e 100644 --- a/pack.toml +++ b/pack.toml @@ -1,12 +1,12 @@ name = "Steam 'n' Rails Modpack" author = "IThundxr" -version = "1.2.1-hotfix" +version = "1.2.2" pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "d88ed09cc9d5f10db2aaed8a3142d6cca2c085cc20e003aaaf65b35d7f6b48d2" +hash = "ad2ced7c2299f59fbb50d756998eeeed04bfa6a3698fa51d8ff55a1172bb57bb" [versions] fabric = "0.16.5"