From e87c8550e562a7b3867756b768e1827b02fc84ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Mon, 17 Jun 2024 20:59:21 +0200 Subject: [PATCH] refactor: better kubejs structure --- packwiz/1.20.1/kubejs/README.txt | 15 ++++ .../kubejs/textures/block/example_block.png | Bin 0 -> 247 bytes .../kubejs/textures/item/example_item.png | Bin 0 -> 372 bytes .../thermal_gtc_integration_client.js | 0 .../1.20.1/kubejs/config/client.properties | 0 .../1.20.1/kubejs/config/common.properties | 0 .../kubejs/server_scripts/ad_astra/door.js | 13 +++ .../ad_astra_gtc_integration.js | 12 +-- .../kubejs/server_scripts/aether/boats.js | 5 ++ .../kubejs/server_scripts/aether/door.js | 5 ++ .../server_scripts/gregification_helpers.js | 55 ++++++++++++ .../server_scripts/gregified_recipes/boats.js | 82 ------------------ .../server_scripts/gregified_recipes/door.js | 82 ------------------ .../kubejs/server_scripts/meadow/boats.js | 5 ++ .../kubejs/server_scripts/meadow/door.js | 12 +++ .../kubejs/server_scripts/minecraft/boats.js | 25 ++++++ .../kubejs/server_scripts/minecraft/door.js | 7 ++ .../kubejs/server_scripts/quark/boats.js | 15 ++++ .../kubejs/server_scripts/quark/door.js | 8 ++ .../regions_unexplored/boats.js | 24 +++++ .../server_scripts/regions_unexplored/door.js | 28 ++++++ .../kubejs/server_scripts/snowyspirit/door.js | 10 +++ .../server_scripts/supplementaries/door.js | 7 ++ .../kubejs/server_scripts/thermal/boats.js | 5 ++ .../kubejs/server_scripts/thermal/door.js | 5 ++ .../server_scripts/thermal_gtc_integration.js | 80 ++++++++--------- .../kubejs/server_scripts/vinery/door.js | 5 ++ 27 files changed, 295 insertions(+), 210 deletions(-) create mode 100644 packwiz/1.20.1/kubejs/README.txt create mode 100644 packwiz/1.20.1/kubejs/assets/kubejs/textures/block/example_block.png create mode 100644 packwiz/1.20.1/kubejs/assets/kubejs/textures/item/example_item.png mode change 100755 => 100644 packwiz/1.20.1/kubejs/client_scripts/thermal_gtc_integration_client.js mode change 100755 => 100644 packwiz/1.20.1/kubejs/config/client.properties mode change 100755 => 100644 packwiz/1.20.1/kubejs/config/common.properties create mode 100644 packwiz/1.20.1/kubejs/server_scripts/ad_astra/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/aether/boats.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/aether/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/gregification_helpers.js delete mode 100644 packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/boats.js delete mode 100644 packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/meadow/boats.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/meadow/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/minecraft/boats.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/minecraft/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/quark/boats.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/quark/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/boats.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/snowyspirit/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/supplementaries/door.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/thermal/boats.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/thermal/door.js mode change 100755 => 100644 packwiz/1.20.1/kubejs/server_scripts/thermal_gtc_integration.js create mode 100644 packwiz/1.20.1/kubejs/server_scripts/vinery/door.js diff --git a/packwiz/1.20.1/kubejs/README.txt b/packwiz/1.20.1/kubejs/README.txt new file mode 100644 index 0000000..5cf0fdf --- /dev/null +++ b/packwiz/1.20.1/kubejs/README.txt @@ -0,0 +1,15 @@ +Find out more info on the website: https://kubejs.com/ + +Directory information: + +assets - Acts as a resource pack, you can put any client resources in here, like textures, models, etc. Example: assets/kubejs/textures/item/test_item.png +data - Acts as a datapack, you can put any server resources in here, like loot tables, functions, etc. Example: data/kubejs/loot_tables/blocks/test_block.json + +startup_scripts - Scripts that get loaded once during game startup - Used for adding items and other things that can only happen while the game is loading (Can be reloaded with /kubejs reload_startup_scripts, but it may not work!) +server_scripts - Scripts that get loaded every time server resources reload - Used for modifying recipes, tags, loot tables, and handling server events (Can be reloaded with /reload) +client_scripts - Scripts that get loaded every time client resources reload - Used for JEI events, tooltips and other client side things (Can be reloaded with F3+T) + +config - KubeJS config storage. This is also the only directory that scripts can access other than world directory +exported - Data dumps like texture atlases end up here + +You can find type-specific logs in logs/kubejs/ directory \ No newline at end of file diff --git a/packwiz/1.20.1/kubejs/assets/kubejs/textures/block/example_block.png b/packwiz/1.20.1/kubejs/assets/kubejs/textures/block/example_block.png new file mode 100644 index 0000000000000000000000000000000000000000..58a8d4bd1daf23fa8ba1832ee489413df847fb43 GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFErF+}2Was#uPtD~YqP(p%HAtO^dE1TQ(gyiJQ0*ngECLX3DM+*2n zy^Bp54G&G364c0}mTsE5SVfqXg;}pPfaf}&u|OW{ogj{c1O|q02Spw8^?QARW;1xY L`njxgN@xNAFqk>d literal 0 HcmV?d00001 diff --git a/packwiz/1.20.1/kubejs/assets/kubejs/textures/item/example_item.png b/packwiz/1.20.1/kubejs/assets/kubejs/textures/item/example_item.png new file mode 100644 index 0000000000000000000000000000000000000000..bbb5bf701ab3f12feca2c8cbbd32a3e681532528 GIT binary patch literal 372 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1en1E;5pV~B-+@}K|z?U_{@I9(!6cl=>b+`u8E z;3o5iNx(hQWrkx*H}{$bfr`&>r4QdV&zJ18t31r{-D%>~hxN939gM%@_A_37alkW# z#V7vPuil04Z&bPoNWWn%VF=<`+J&-1Q_JF6XXQW?5h(#m6Xt79Ppq2P=H>Sj1T`c z0|nLwUIth88SE@8XT1s#V?Mly+g#F7;*{&e=9dSh*s|sA7=BBhVr8Bnp)+eD;gas;_&#pEf8flV?q6dZaiY { + [ + "ad_astra:aeronos_door", + "ad_astra:strophar_door", + "ad_astra:glacian_door", + ].forEach((d) => gregifyDoorRecipe(event, ":", d)); + + gregifyDoorRecipe(event, ":", "ad_astra:steel_door", [ + "gtceu:steel_plate", + ]); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/ad_astra_gtc_integration.js b/packwiz/1.20.1/kubejs/server_scripts/ad_astra_gtc_integration.js index cba178b..0cce9a0 100644 --- a/packwiz/1.20.1/kubejs/server_scripts/ad_astra_gtc_integration.js +++ b/packwiz/1.20.1/kubejs/server_scripts/ad_astra_gtc_integration.js @@ -1,10 +1,10 @@ -const AD_ASTRA_REMOVED_PLATE_RECIPES = ["steel", "iron"]; - -const AD_ASTRA_REMOVED_ROD_RECIPES = ["steel"]; - -const AD_ASTRA_REMOVED_NUGGET_RECIPES = ["steel"]; - ServerEvents.recipes((event) => { + const AD_ASTRA_REMOVED_PLATE_RECIPES = ["steel", "iron"]; + + const AD_ASTRA_REMOVED_ROD_RECIPES = ["steel"]; + + const AD_ASTRA_REMOVED_NUGGET_RECIPES = ["steel"]; + // Remove Ad Astra recipes for plates AD_ASTRA_REMOVED_PLATE_RECIPES.forEach((metal) => { event.remove({ diff --git a/packwiz/1.20.1/kubejs/server_scripts/aether/boats.js b/packwiz/1.20.1/kubejs/server_scripts/aether/boats.js new file mode 100644 index 0000000..612e5ec --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/aether/boats.js @@ -0,0 +1,5 @@ +// Modifies the recipes for boats to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyBoatRecipe(event, ":", "aether:skyroot_boat"); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/aether/door.js b/packwiz/1.20.1/kubejs/server_scripts/aether/door.js new file mode 100644 index 0000000..fa09bc2 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/aether/door.js @@ -0,0 +1,5 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe(event, ":", "aether:skyroot_door"); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/gregification_helpers.js b/packwiz/1.20.1/kubejs/server_scripts/gregification_helpers.js new file mode 100644 index 0000000..4182de2 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/gregification_helpers.js @@ -0,0 +1,55 @@ +function idToType(id) { + return id.split(":")[1].split("_").slice(0, -1).join("_"); +} + +function optionalNullChaining(obj, keys) { + for (const key of keys) { + if (obj[key]) return obj[key]; + } +} + +function gregifyBoatRecipe(event, recipePattern, id) { + const [identifier, name] = id.split(":"); + const type = idToType(id); + + event.remove({ + id: recipePattern + .replace("", identifier) + .replace("", name) + .replace("", type), + }); + + event.shaped(Item.of(id, 1), ["WHW", "WKW", "SSS"], { + W: `${identifier}:${type}_planks`, + H: "minecraft:wooden_shovel", + K: "#forge:tools/knives", + S: `${identifier}:${identifier === "quark" ? `${type}_planks` : type}_slab`, + }); +} + +function gregifyDoorRecipe(event, recipePattern, id, materials) { + const [identifier, name] = id.split(":"); + const type = idToType(id); + + event.remove({ + id: recipePattern + .replace("", identifier) + .replace("", name) + .replace("", type), + }); + + if (!materials) materials = []; + if (materials.length === 0) materials.push(`${identifier}:${type}_planks`); + + event.shaped(Item.of(id, 1), ["WTS", "GRC", "OPB"], { + W: materials[0], + G: optionalNullChaining(materials, [1, 0]), + O: optionalNullChaining(materials, [2, 1, 0]), + P: optionalNullChaining(materials, [3, 1, 0]), + T: `${identifier}:${type}_trapdoor`, + S: "#forge:tools/screwdrivers", + R: "gtceu:iron_ring", + C: "gtceu:iron_screw", + B: "#forge:tools/saws", + }); +} diff --git a/packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/boats.js b/packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/boats.js deleted file mode 100644 index 07c9c96..0000000 --- a/packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/boats.js +++ /dev/null @@ -1,82 +0,0 @@ -// Modifies the recipes for boats to match the Gregified Integrations recipes - -ServerEvents.recipes((event) => { - const MINECRAFT_BOATS = [ - "minecraft:oak_boat", // allow only wooden shovel - "minecraft:spruce_boat", // allow only wooden shovel - "minecraft:birch_boat", // allow only wooden shovel - "minecraft:jungle_boat", // allow only wooden shovel - "minecraft:acacia_boat", // allow only wooden shovel - "minecraft:dark_oak_boat", // allow only wooden shovel - "minecraft:mangrove_boat", // allow only wooden shovel - "minecraft:cherry_boat", // allow only wooden shovel - ]; - - const BOATS_RECIPES = [ - "quark:ancient_boat", - "quark:azalea_boat", - "quark:blossom_boat", - "aether:skyroot_boat", - "thermal:rubberwood_boat", - "meadow:pine_boat", - "regions_unexplored:baobab_boat", - "regions_unexplored:blackwood_boat", - "regions_unexplored:cypress_boat", - "regions_unexplored:dead_boat", - "regions_unexplored:eucalyptus_boat", - "regions_unexplored:joshua_boat", - "regions_unexplored:kapok_boat", - "regions_unexplored:larch_boat", - "regions_unexplored:magnolia_boat", - "regions_unexplored:maple_boat", - "regions_unexplored:mauve_boat", - "regions_unexplored:palm_boat", - "regions_unexplored:pine_boat", - "regions_unexplored:redwood_boat", - "regions_unexplored:socotra_boat", - "regions_unexplored:willow_boat", - ]; - MINECRAFT_BOATS.forEach((b) => BOATS_RECIPES.push(b)); // spread syntax not supported - - const BOATS_MOD_RECIPE_IDS_PATTERN = { - minecraft: ":", - quark: "quark:world/crafting/woodsets//boat", - aether: ":", - thermal: ":", - meadow: ":", - regions_unexplored: ":", - }; - - BOATS_RECIPES.forEach((recipe) => { - const [identifier, name] = recipe.split(":"); - const type = name.split("_").slice(0, -1).join("_"); - - event.remove({ - id: BOATS_MOD_RECIPE_IDS_PATTERN[identifier] - .replace("", identifier) - .replace("", name) - .replace("", type), - }); - - if (identifier === "minecraft" || identifier === "quark") { - event.remove({ - id: `quark:tweaks/crafting/utility/chest_boat/direct_${type}_chest_boat`, - }); - } - - event.shaped(Item.of(recipe, 1), ["WHW", "WKW", "SSS"], { - W: `${identifier}:${type}_planks`, - H: "minecraft:wooden_shovel", - K: "#forge:tools/knives", - S: `${identifier}:${ - identifier === "quark" ? `${type}_planks` : type - }_slab`, - }); - }); - - MINECRAFT_BOATS.forEach((id) => { - event.remove({ id: `gtceu:shaped/${id.split(":")[1]}` }); - }); - event.remove({ id: "regions_unexplored:oak_boat" }); -}); - diff --git a/packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/door.js b/packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/door.js deleted file mode 100644 index 683e584..0000000 --- a/packwiz/1.20.1/kubejs/server_scripts/gregified_recipes/door.js +++ /dev/null @@ -1,82 +0,0 @@ -// Modifies the recipes for doors to match the Gregified Integrations recipes - -ServerEvents.recipes((event) => { - const RECIPES = { - "minecraft:iron_door": ["minecraft:iron_ingot"], - "ad_astra:steel_door": ["gtceu:steel_plate"], - "ad_astra:aeronos_door": [], - "ad_astra:strophar_door": [], - "ad_astra:glacian_door": [], - "quark:ancient_door": [], - "quark:azalea_door": [], - "quark:blossom_door": [], - "snowyspirit:gingerbread_door": ["#snowyspirit:gingerbreads"], - "vinery:dark_cherry_door": [], - "supplementaries:gold_door": ["minecraft:gold_ingot"], - "aether:skyroot_door": [], - "thermal:rubberwood_door": [], - "meadow:pine_door": [], - "meadow:pine_barn_door": ["meadow:pine_planks"], - "regions_unexplored:baobab_door": [], - "regions_unexplored:blackwood_door": [], - "regions_unexplored:blue_bioshroom_door": [], - "regions_unexplored:brimwood_door": [], - "regions_unexplored:cobalt_door": [], - "regions_unexplored:cypress_door": [], - "regions_unexplored:dead_door": [], - "regions_unexplored:eucalyptus_door": [], - "regions_unexplored:green_bioshroom_door": [], - "regions_unexplored:joshua_door": [], - "regions_unexplored:kapok_door": [], - "regions_unexplored:larch_door": [], - "regions_unexplored:magnolia_door": [], - "regions_unexplored:maple_door": [], - "regions_unexplored:mauve_door": [], - "regions_unexplored:palm_door": [], - "regions_unexplored:pine_door": [], - "regions_unexplored:pink_bioshroom_door": [], - "regions_unexplored:redwood_door": [], - "regions_unexplored:socotra_door": [], - "regions_unexplored:willow_door": [], - "regions_unexplored:yellow_bioshroom_door": [], - }; - - const MOD_RECIPE_IDS_PATTERN = { - minecraft: ":", - ad_astra: ":", - quark: "quark:world/crafting/woodsets//door", - snowyspirit: ":", - vinery: ":", - supplementaries: ":", - aether: ":", - thermal: ":", - meadow: ":", - regions_unexplored: ":", - }; - - Object.entries(RECIPES).forEach(([recipeId, materials]) => { - const [identifier, name] = recipeId.split(":"); - const type = name.split("_").slice(0, -1).join("_"); - - event.remove({ - id: MOD_RECIPE_IDS_PATTERN[identifier] - .replace("", identifier) - .replace("", name) - .replace("", type), - }); - - if (materials.length === 0) materials.push(`${identifier}:${type}_planks`); - - event.shaped(Item.of(recipeId, 1), ["WTS", "WRC", "WWB"], { - W: materials[0], - T: `${identifier}:${type}_trapdoor`, - S: "#forge:tools/screwdrivers", - R: "gtceu:iron_ring", - C: "gtceu:iron_screw", - B: "#forge:tools/saws", - }); - }); - - event.remove({ id: "regions_unexplored:oak_door" }); -}); - diff --git a/packwiz/1.20.1/kubejs/server_scripts/meadow/boats.js b/packwiz/1.20.1/kubejs/server_scripts/meadow/boats.js new file mode 100644 index 0000000..3dd2df6 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/meadow/boats.js @@ -0,0 +1,5 @@ +// Modifies the recipes for boats to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyBoatRecipe(event, ":", "meadow:pine_boat"); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/meadow/door.js b/packwiz/1.20.1/kubejs/server_scripts/meadow/door.js new file mode 100644 index 0000000..a1d312b --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/meadow/door.js @@ -0,0 +1,12 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe(event, ":", "meadow:pine_door"); + + gregifyDoorRecipe(event, ":", "meadow:pine_barn_door", [ + "meadow:pine_planks", + "meadow:pine_slab", + "meadow:pine_planks", + "meadow:pine_planks", + ]); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/minecraft/boats.js b/packwiz/1.20.1/kubejs/server_scripts/minecraft/boats.js new file mode 100644 index 0000000..22b19c9 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/minecraft/boats.js @@ -0,0 +1,25 @@ +// Modifies the recipes for boats to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + const boats = [ + "minecraft:oak_boat", // allow only wooden shovel + "minecraft:spruce_boat", // allow only wooden shovel + "minecraft:birch_boat", // allow only wooden shovel + "minecraft:jungle_boat", // allow only wooden shovel + "minecraft:acacia_boat", // allow only wooden shovel + "minecraft:dark_oak_boat", // allow only wooden shovel + "minecraft:mangrove_boat", // allow only wooden shovel + "minecraft:cherry_boat", // allow only wooden shovel + ]; + + boats.forEach((id) => { + gregifyBoatRecipe(event, ":", id); + + event.remove({ id: `gtceu:shaped/${id.split(":")[1]}` }); + event.remove({ + id: `quark:tweaks/crafting/utility/chest_boat/direct_${idToType( + id + )}_chest_boat`, + }); + }); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/minecraft/door.js b/packwiz/1.20.1/kubejs/server_scripts/minecraft/door.js new file mode 100644 index 0000000..fae61a9 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/minecraft/door.js @@ -0,0 +1,7 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe(event, ":", "minecraft:iron_door", [ + "minecraft:iron_ingot", + ]); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/quark/boats.js b/packwiz/1.20.1/kubejs/server_scripts/quark/boats.js new file mode 100644 index 0000000..74d39dd --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/quark/boats.js @@ -0,0 +1,15 @@ +// Modifies the recipes for boats to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + ["quark:ancient_boat", "quark:azalea_boat", "quark:blossom_boat"].forEach( + (b) => { + gregifyBoatRecipe(event, "quark:world/crafting/woodsets//boat", b); + + event.remove({ + id: `quark:tweaks/crafting/utility/chest_boat/direct_${idToType( + b + )}_chest_boat`, + }); + } + ); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/quark/door.js b/packwiz/1.20.1/kubejs/server_scripts/quark/door.js new file mode 100644 index 0000000..040ce77 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/quark/door.js @@ -0,0 +1,8 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + ["quark:ancient_door", "quark:azalea_door", "quark:blossom_door"].forEach( + (d) => + gregifyDoorRecipe(event, "quark:world/crafting/woodsets//door", d) + ); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/boats.js b/packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/boats.js new file mode 100644 index 0000000..19976bf --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/boats.js @@ -0,0 +1,24 @@ +// Modifies the recipes for boats to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + [ + "regions_unexplored:baobab_boat", + "regions_unexplored:blackwood_boat", + "regions_unexplored:cypress_boat", + "regions_unexplored:dead_boat", + "regions_unexplored:eucalyptus_boat", + "regions_unexplored:joshua_boat", + "regions_unexplored:kapok_boat", + "regions_unexplored:larch_boat", + "regions_unexplored:magnolia_boat", + "regions_unexplored:maple_boat", + "regions_unexplored:mauve_boat", + "regions_unexplored:palm_boat", + "regions_unexplored:pine_boat", + "regions_unexplored:redwood_boat", + "regions_unexplored:socotra_boat", + "regions_unexplored:willow_boat", + ].forEach((b) => gregifyBoatRecipe(event, ":", b)); + + event.remove({ id: "regions_unexplored:oak_boat" }); // remove recipe for minecraft's oak boat +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/door.js b/packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/door.js new file mode 100644 index 0000000..b192147 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/door.js @@ -0,0 +1,28 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + [ + "regions_unexplored:baobab_door", + "regions_unexplored:blackwood_door", + "regions_unexplored:blue_bioshroom_door", + "regions_unexplored:brimwood_door", + "regions_unexplored:cobalt_door", + "regions_unexplored:cypress_door", + "regions_unexplored:dead_door", + "regions_unexplored:eucalyptus_door", + "regions_unexplored:green_bioshroom_door", + "regions_unexplored:joshua_door", + "regions_unexplored:kapok_door", + "regions_unexplored:larch_door", + "regions_unexplored:magnolia_door", + "regions_unexplored:maple_door", + "regions_unexplored:mauve_door", + "regions_unexplored:palm_door", + "regions_unexplored:pine_door", + "regions_unexplored:pink_bioshroom_door", + "regions_unexplored:redwood_door", + "regions_unexplored:socotra_door", + "regions_unexplored:willow_door", + "regions_unexplored:yellow_bioshroom_door", + ].forEach((d) => gregifyDoorRecipe(event, ":", d)); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/snowyspirit/door.js b/packwiz/1.20.1/kubejs/server_scripts/snowyspirit/door.js new file mode 100644 index 0000000..f9d71f1 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/snowyspirit/door.js @@ -0,0 +1,10 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe( + event, + ":", + "snowyspirit:gingerbread_door", + ["#snowyspirit:gingerbreads"] + ); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/supplementaries/door.js b/packwiz/1.20.1/kubejs/server_scripts/supplementaries/door.js new file mode 100644 index 0000000..cf2f9c5 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/supplementaries/door.js @@ -0,0 +1,7 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe(event, ":", "supplementaries:gold_door", [ + "minecraft:gold_ingot", + ]); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/thermal/boats.js b/packwiz/1.20.1/kubejs/server_scripts/thermal/boats.js new file mode 100644 index 0000000..f87647b --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/thermal/boats.js @@ -0,0 +1,5 @@ +// Modifies the recipes for boats to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyBoatRecipe(event, ":", "thermal:rubberwood_boat"); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/thermal/door.js b/packwiz/1.20.1/kubejs/server_scripts/thermal/door.js new file mode 100644 index 0000000..53a7554 --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/thermal/door.js @@ -0,0 +1,5 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe(event, ":", "thermal:rubberwood_door"); +}); diff --git a/packwiz/1.20.1/kubejs/server_scripts/thermal_gtc_integration.js b/packwiz/1.20.1/kubejs/server_scripts/thermal_gtc_integration.js old mode 100755 new mode 100644 index 5d1272b..7f1758f --- a/packwiz/1.20.1/kubejs/server_scripts/thermal_gtc_integration.js +++ b/packwiz/1.20.1/kubejs/server_scripts/thermal_gtc_integration.js @@ -1,44 +1,44 @@ -const THERMAL_REMOVED_PLATE_RECIPES = [ - "tin", - "lead", - "silver", - "nickel", - "bronze", - "invar", - "iron", - "gold", - "copper", - "electrum", -]; - -const THERMAL_REMOVED_GEAR_RECIPES = [ - "tin", - "lead", - "silver", - "nickel", - "bronze", - "invar", - "iron", - "gold", - "copper", - "electrum", - "lapis", - "emerald", - //"quartz" -]; - -const THERMAL_REMOVED_NUGGET_RECIPES = [ - "tin", - "lead", - "silver", - "nickel", - "bronze", - "electrum", - "invar", - "copper", -]; - ServerEvents.recipes((event) => { + const THERMAL_REMOVED_PLATE_RECIPES = [ + "tin", + "lead", + "silver", + "nickel", + "bronze", + "invar", + "iron", + "gold", + "copper", + "electrum", + ]; + + const THERMAL_REMOVED_GEAR_RECIPES = [ + "tin", + "lead", + "silver", + "nickel", + "bronze", + "invar", + "iron", + "gold", + "copper", + "electrum", + "lapis", + "emerald", + //"quartz" + ]; + + const THERMAL_REMOVED_NUGGET_RECIPES = [ + "tin", + "lead", + "silver", + "nickel", + "bronze", + "electrum", + "invar", + "copper", + ]; + // Remove Thermal Foundation recipes for plates THERMAL_REMOVED_PLATE_RECIPES.forEach((metal) => { event.remove({ diff --git a/packwiz/1.20.1/kubejs/server_scripts/vinery/door.js b/packwiz/1.20.1/kubejs/server_scripts/vinery/door.js new file mode 100644 index 0000000..4171c1d --- /dev/null +++ b/packwiz/1.20.1/kubejs/server_scripts/vinery/door.js @@ -0,0 +1,5 @@ +// Modifies the recipes for doors to match the Gregified Integrations recipes + +ServerEvents.recipes((event) => { + gregifyDoorRecipe(event, ":", "vinery:dark_cherry_door"); +});