1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-12-05 21:45:24 +01:00

phase out generic dark, mahogany, and white wood

and rename the base wood to _plain instead of beech
This commit is contained in:
Vanessa Ezekowitz
2015-05-03 21:18:35 -04:00
parent 5041ae2cdd
commit 3996b55c03
13 changed files with 261 additions and 249 deletions

View File

@@ -1,21 +1,21 @@
local S = homedecor.gettext
local table_colors = { "", "mahogany", "white" }
local table_colors = {
{ "", homedecor.plain_wood },
{ "_mahogany", homedecor.mahogany_wood },
{ "_white", homedecor.white_wood }
}
for _, i in ipairs(table_colors) do
local color = "_"..i
local color2 = "_"..i
for i in ipairs(table_colors) do
local desc = S("Table ("..i..")")
if i == "" then
color = ""
color2 = "_beech"
if i == 1 then
desc = S("Table")
end
homedecor.register("table"..color, {
homedecor.register("table"..table_colors[i][1], {
description = desc,
tiles = { "homedecor_generic_wood"..color2..".png" },
tiles = { table_colors[i][2] },
node_box = {
type = "fixed",
fixed = {
@@ -64,15 +64,15 @@ for i in ipairs(chaircolors) do
local color2 = chaircolors[i][1]
local name = S(chaircolors[i][2])
local chairtiles = {
"homedecor_generic_wood_beech.png",
homedecor.plain_wood,
"wool"..color..".png",
}
if chaircolors[i][1] == "" then
color = ""
chairtiles = {
"homedecor_generic_wood_beech.png",
"homedecor_generic_wood_beech.png"
homedecor.plain_wood,
homedecor.plain_wood
}
end