1 Commits

Author SHA1 Message Date
Luke aka SwissalpS
1aeb88d6fd isn't ground content (#3) 2024-03-01 11:06:50 -05:00
2 changed files with 13 additions and 6 deletions

View File

@@ -61,6 +61,7 @@ minetest.register_node("coloredwood:wood_block", {
walkable = true,
sunlight_propagates = false,
groups = groups,
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
})
@@ -116,17 +117,23 @@ if enable_stairsplus then
or chk == "moreblocks:panel_woo"
or chk == "moreblocks:micro_woo"
or chk == "moreblocks:slope_woo"
and not string.find(i.name, "wood_tile") then
and not string.find(i.name, "wood_tile") then
local class = string.sub(i.name, 12, 15)
local shape = string.sub(i.name, 22)
table.insert(coloredwood_cuts, i.name)
local class, shape = is_stairsplus(i.name, false)
if chk ~= "moreblocks:slab_wood" then
class = string.sub(i.name, 12, 16)
shape = string.sub(i.name, 23)
end
minetest.override_item(i.name, {
groups = groups2,
paramtype2 = "colorfacedir",
palette = "unifieddyes_palette_greys.png",
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey"..shape,
drop = "moreblocks:"..class.."_wood"..shape,
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape
})
end
end

View File

@@ -1,5 +1,5 @@
name = coloredwood
description = Provides a multitude of colors of wood, stairs, and fences.
description = Provides a multitude of colors of wood, sticks, and fences.
depends = default, unifieddyes
optional_depends = moreblocks, signs_lib
min_minetest_version = 5.2.0