forked from mtcontrib/coloredwood
directly copy, modify default:wood groups
(instead of hard-coding the groups list) fixes a wood -> slabs -> sticks -> wood multiplyier loop
This commit is contained in:
parent
08fde44bb8
commit
cd5e026e31
7
init.lua
7
init.lua
|
@ -102,6 +102,11 @@ local coloredwood_cuts = {}
|
||||||
|
|
||||||
if coloredwood.enable_stairsplus then
|
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
|
for _, i in pairs(minetest.registered_nodes) do
|
||||||
|
|
||||||
local chk = string.sub(i.name, 1, 20)
|
local chk = string.sub(i.name, 1, 20)
|
||||||
|
@ -124,7 +129,7 @@ if coloredwood.enable_stairsplus then
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.override_item(i.name, {
|
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",
|
paramtype2 = "colorfacedir",
|
||||||
palette = "unifieddyes_palette_greys.png",
|
palette = "unifieddyes_palette_greys.png",
|
||||||
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape
|
airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape
|
||||||
|
|
Loading…
Reference in New Issue