1
0
mirror of https://github.com/mt-mods/coloredwood.git synced 2025-07-14 05:40:25 +02:00

5 Commits

Author SHA1 Message Date
be4df6fc88 add minimum minetest version key for contentdb 2020-06-03 13:00:05 -04:00
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
08fde44bb8 update to use new signs_lib API -- requires signs_lib commit 4ff54c9a and above 2019-09-11 12:29:52 -04:00
f2f5e5f73e use Unified Dyes on_dig where needed - requires Unified Dyes commit 9ff40a7f or later 2019-07-18 02:22:52 -04:00
3 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,4 @@
default
unifieddyes
moreblocks?
signs_lib?

View File

@ -88,6 +88,7 @@ for _, color in ipairs(unifieddyes.HUES_WITH_GREY) do
after_place_node = function(pos, placer, itemstack, pointed_thing)
minetest.rotate_node(itemstack, placer, pointed_thing)
end,
on_dig = unifieddyes.on_dig,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2, not_in_creative_inventory=1, ud_param2_colorable = 1},
}
)
@ -101,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)
@ -123,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
@ -167,7 +173,8 @@ default.register_fence("coloredwood:fence", {
palette = "unifieddyes_palette_extended.png",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
material = "coloredwood:wood_block"
material = "coloredwood:wood_block",
on_dig = unifieddyes.on_dig,
})
groups = table.copy(minetest.registered_items["default:fence_wood"].groups)
@ -214,4 +221,10 @@ unifieddyes.register_color_craft({
}
})
if minetest.get_modpath("signs_lib") then
minetest.override_item("coloredwood:fence", {
check_for_pole = true
})
end
print("[Colored Wood] Loaded!")

View File

@ -1 +1,2 @@
name = coloredwood
min_minetest_version = 5.2.0