[stained_wood] Add "Dark Gray Stained Wood".
parent
4ed6fd8059
commit
fed7ebda0f
|
@ -60,7 +60,7 @@ end
|
||||||
|
|
||||||
-- Set stained wood colors
|
-- Set stained wood colors
|
||||||
wood_colors = {
|
wood_colors = {
|
||||||
"black", "blue", "brown", "gray", "green", "red", "violet",
|
"black", "blue", "brown", "gray", "gray_dark", "green", "red", "violet",
|
||||||
"white", "yellow"}
|
"white", "yellow"}
|
||||||
|
|
||||||
wood_colors_count = getWoodColorsCount(wood_colors)
|
wood_colors_count = getWoodColorsCount(wood_colors)
|
||||||
|
|
|
@ -26,9 +26,14 @@
|
||||||
-- Define function for adding a stained wood
|
-- Define function for adding a stained wood
|
||||||
addStainedWood = function(color)
|
addStainedWood = function(color)
|
||||||
local node_name = "stained_wood:" .. color
|
local node_name = "stained_wood:" .. color
|
||||||
|
local description = titleize(color) .. " Stained Wood"
|
||||||
|
|
||||||
|
if color == "gray_dark" then
|
||||||
|
description = "Dark Gray Stained Wood"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node(node_name, {
|
minetest.register_node(node_name, {
|
||||||
description = titleize(color) .. " Stained Wood",
|
description = description,
|
||||||
tiles = {"wood_" .. color .. ".png"},
|
tiles = {"wood_" .. color .. ".png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||||
|
|
Loading…
Reference in New Issue