[stained_wood] Add "Dark Gray Stained Wood".

master
AntumDeluge 2016-08-07 21:13:53 -07:00
parent 4ed6fd8059
commit fed7ebda0f
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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},