You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
454 B
14 lines
454 B
2 years ago
|
// priority: 0
|
||
|
|
||
|
onEvent("recipes", event => {
|
||
|
// Remove default vertical slab crafting recipes.
|
||
|
event.remove({ id: /_vertical_slab/, type: "minecraft:crafting_shaped" });
|
||
|
|
||
|
// Add recipes to craft regular (horizontal) slabs into vertical slabs.
|
||
|
event.forEachRecipe({ id: /_vertical_slab_revert/ }, recipe => {
|
||
|
let input = recipe.inputItems[0];
|
||
|
let output = recipe.outputItems[0].getId();
|
||
|
event.shapeless(input, [ output ]);
|
||
|
});
|
||
|
});
|