1
0
mirror of https://github.com/mt-mods/coloredwood.git synced 2024-11-15 23:20:20 +01:00

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
This commit is contained in:
Vanessa Dannenberg 2018-10-11 03:59:44 -04:00
parent e7ef0cf91e
commit 6e838d422b

View File

@ -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!")