parent
503e53bb82
commit
b5ab4691ef
12 changed files with 12 additions and 4 deletions
@ -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.
|
Loading…
Reference in new issue