diff --git a/src/index.toml b/src/index.toml index 2b4684b..dbafbdb 100644 --- a/src/index.toml +++ b/src/index.toml @@ -176,6 +176,10 @@ hash = "a3cd83f1fa298d2cdf6782cdb7afa4a8a463243d9aedf2af14f7e73c344c047c" file = "kubejs/config/packicon.png" hash = "84f6d2ec82b50341634868cb6c1abec87d01a637ef9e35df4ad2e5ece7dce442" +[[files]] +file = "kubejs/server_scripts/almost_unified.js" +hash = "a7f3f2234492753e0cc36cb2f02eeedd31af1084a85317b5159e5ba0a619192c" + [[files]] file = "kubejs/server_scripts/cardboard_box_blacklist.js" hash = "866593986891ce56b4b2053cc4e5b41fbe06641da297e43162bcb82db20303bc" @@ -271,6 +275,11 @@ file = "mods/aeinfinitybooster.pw.toml" hash = "7ec07fbf8bd444722601e8acedc7ea199a40edc9a37c4c5df1e449712d0e3dc4" metafile = true +[[files]] +file = "mods/almost-unified.pw.toml" +hash = "1fb33d88c9d4d915fd1ad64b6892753957ebdcea18148d4da54f594f89df1331" +metafile = true + [[files]] file = "mods/amendments.pw.toml" hash = "1f2bf8f0922d2dcb2014363a6ba514fbb17ac419bc967819dec4c72f92bb1ed9" diff --git a/src/kubejs/server_scripts/almost_unified.js b/src/kubejs/server_scripts/almost_unified.js new file mode 100644 index 0000000..fb3575d --- /dev/null +++ b/src/kubejs/server_scripts/almost_unified.js @@ -0,0 +1,11 @@ +// from https://github.com/AlmostReliable/almostunified/wiki/Limitations#unification-of-ore-generation +LootJS.modifiers(event => { + event.addBlockLootModifier('#forge:ores').modifyLoot('#forge:raw_materials', item => { + const replacement = AlmostUnified.getReplacementForItem(item); + if (replacement.isEmpty()) { + return item; + } + replacement.setCount(item.getCount()); + return replacement; + }); +}); diff --git a/src/mods/almost-unified.pw.toml b/src/mods/almost-unified.pw.toml new file mode 100644 index 0000000..cc016bc --- /dev/null +++ b/src/mods/almost-unified.pw.toml @@ -0,0 +1,13 @@ +name = "Almost Unified" +filename = "almostunified-forge-1.20.1-0.8.1.jar" +side = "server" + +[download] +url = "https://cdn.modrinth.com/data/sdaSaQEz/versions/arDcFGHI/almostunified-forge-1.20.1-0.8.1.jar" +hash-format = "sha1" +hash = "169b9478afff9103a6d8efaeb455c51181a1bcae" + +[update] +[update.modrinth] +mod-id = "sdaSaQEz" +version = "arDcFGHI" diff --git a/src/pack.toml b/src/pack.toml index 22bd4ef..b201852 100644 --- a/src/pack.toml +++ b/src/pack.toml @@ -1,12 +1,12 @@ name = "GalacticFactory" author = "GalacticFactory" -version = "0.7.11" +version = "0.7.12" pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "0b204f398b488b2b3183e76627a5538abe9e2ae35bf678d5082cfa41523c7a2f" +hash = "f361dedec947ff0dab2aad81f149a47094b3bd72437ed5732424844b8e7c205c" [versions] forge = "47.2.0"