diff --git a/kubejs/server_scripts/recipes/dye_any_bed.js b/kubejs/server_scripts/recipes/dye_any_bed.js new file mode 100644 index 0000000..a645091 --- /dev/null +++ b/kubejs/server_scripts/recipes/dye_any_bed.js @@ -0,0 +1,8 @@ +// priority: 0 + +onEvent("recipes", event => { + // Replace every bed dying recipe to accept any bed, rather than just a white one. + event.replaceInput({ id: /^minecraft:.*_from_white_bed$/ }, "minecraft:white_bed", "#minecraft:beds") + // Add a recipe to dye any bed into a white bed. + event.shapeless("minecraft:white_bed", [ "#minecraft:beds", "minecraft:white_dye" ]); +});