1
0
mirror of https://github.com/mt-mods/coloredwood.git synced 2025-07-12 12:50:28 +02:00

2 Commits

Author SHA1 Message Date
9c6fe5206b use signs_lib's custom pole check callback feature
requires signs_lib from commit dcdee22 or later, if present
2019-09-22 03:24:24 -04:00
cd5e026e31 directly copy, modify default:wood groups
(instead of hard-coding the groups list)

fixes a wood -> slabs -> sticks -> wood multiplyier loop
2019-09-17 12:41:39 -04:00

View File

@ -102,6 +102,11 @@ local coloredwood_cuts = {}
if coloredwood.enable_stairsplus then
local groups2 = table.copy(minetest.registered_items["default:wood"].groups)
groups2.wood = nil
groups2.ud_param2_colorable = 1
groups2.not_in_creative_inventory=1
for _, i in pairs(minetest.registered_nodes) do
local chk = string.sub(i.name, 1, 20)
@ -124,7 +129,7 @@ if coloredwood.enable_stairsplus then
end
minetest.override_item(i.name, {
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1, not_in_creative_inventory=1, ud_param2_colorable = 1},
groups = groups2,
paramtype2 = "colorfacedir",
palette = "unifieddyes_palette_greys.png",
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape
@ -217,7 +222,9 @@ unifieddyes.register_color_craft({
})
if minetest.get_modpath("signs_lib") then
signs_lib.allowed_poles["coloredwood:fence"] = true
minetest.override_item("coloredwood:fence", {
check_for_pole = true
})
end
print("[Colored Wood] Loaded!")