From 3dd242f8d7ecd69319cbff8d0f06b1005b933033 Mon Sep 17 00:00:00 2001 From: copygirl Date: Sat, 30 Jul 2022 20:23:16 +0200 Subject: [PATCH] Make any bed dyeable, rather than just white --- kubejs/server_scripts/recipes/dye_any_bed.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 kubejs/server_scripts/recipes/dye_any_bed.js 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" ]); +});