Reorganize KubeJS scripts a little

carryon-pedestal
copygirl 2 years ago
parent 503e53bb82
commit b5ab4691ef
  1. 0
      kubejs/client_scripts/hide/immersive_engineering.js
  2. 0
      kubejs/client_scripts/hide/unification/copper_tools_and_armor.js
  3. 0
      kubejs/client_scripts/hide/unification/rope.js
  4. 0
      kubejs/client_scripts/hide/unification/sawdust.js
  5. 0
      kubejs/client_scripts/hide/unification/simple_unification.js
  6. 0
      kubejs/client_scripts/hide/unification/slag.js
  7. 0
      kubejs/client_scripts/hide/unification/storage_blocks.js
  8. 0
      kubejs/client_scripts/hide/unification/sulfur.js
  9. 0
      kubejs/server_scripts/recipes/essentials/pressure_plates_use_slabs.js
  10. 9
      kubejs/server_scripts/recipes/essentials/slabs.js
  11. 3
      kubejs/server_scripts/recipes/essentials/stairs.js
  12. 4
      kubejs/server_scripts/recipes/essentials/vertical_slabs.js

@ -1,17 +1,18 @@
// priority: 0
onEvent("recipes", event => {
let ieSlabRegex = /^immersiveengineering:slab_storage_/;
// For each slab crafting recipe that outputs 6x slabs, ...
event.forEachRecipe({ id: /_slab/, type: "minecraft:crafting_shaped" }, recipe => {
if (recipe.outputItems[0].getCount() != 6) return;
// We disable the Immersive Engineering storage block slabs in "immersive_engineering.js"
if (ieSlabRegex.test(recipe.outputItems[0].getId())) return;
let input = recipe.inputItems[0];
let output = recipe.outputItems[0].getId();
// We disable the Immersive Engineering storage block slabs in "immersive_engineering.js".
if (/^immersiveengineering:slab_storage_/.test(output)) return;
// Quark limestone is disabled but some recipes still linger.
if (/^quark:.*limestone.*$/.test(output)) return;
// ... add a recipe to craft slabs in 2x2 crafting grid.
event.shaped("4x " + output, [ "SS" ], { S: input });
// For this to work, "pressure_plates_use_stabs.json" must also be present.

@ -8,6 +8,9 @@ onEvent("recipes", event => {
let input = recipe.inputItems[0];
let output = recipe.outputItems[0].getId();
// Quark limestone is disabled but some recipes still linger.
if (/^quark:.*limestone.*$/.test(output)) return;
// ... modify the output to return 6x instead of 4x.
recipe.replaceOutput(output, "6x " + output, false, (out, orig) => out);

@ -8,6 +8,10 @@ onEvent("recipes", event => {
event.forEachRecipe({ id: /_vertical_slab_revert/ }, recipe => {
let input = recipe.inputItems[0];
let output = recipe.outputItems[0].getId();
// Quark limestone is disabled but some recipes still linger.
if (/^quark:.*limestone.*$/.test(output)) return;
event.shapeless(input, [ output ]);
});
});
Loading…
Cancel
Save