From 6e838d422bafd7c87f4bec9d673e92384032a69a Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 11 Oct 2018 03:59:44 -0400 Subject: [PATCH] fix crafting of fences (default wood + default sticks should produce default fences, not coloredwood fences. conversely, colored wood blocks + default sticks should - gives you a white fence though.) also made it possible to re-dye a colored fence --- init.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4a62435..6581e6a 100644 --- a/init.lua +++ b/init.lua @@ -164,7 +164,7 @@ default.register_fence("coloredwood:fence", { palette = "unifieddyes_palette_extended.png", groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1}, sounds = default.node_sound_wood_defaults(), - material = "default:wood" + material = "coloredwood:wood_block" }) minetest.override_item("default:fence_wood", { @@ -196,4 +196,15 @@ unifieddyes.register_color_craft({ } }) +unifieddyes.register_color_craft({ + output = "coloredwood:fence", + palette = "extended", + type = "shapeless", + neutral_node = "coloredwood:fence", + recipe = { + "NEUTRAL_NODE", + "MAIN_DYE" + } +}) + print("[Colored Wood] Loaded!")