forked from mtcontrib/homedecor_modpack
add white and "mahogany" "3dforniture" tables,
better wood texture for "3dforniture" wooden objects
This commit is contained in:
parent
6cb4f449a1
commit
da4039e2c5
@ -1,9 +1,21 @@
|
||||
local S = homedecor.gettext
|
||||
|
||||
-- Test
|
||||
minetest.register_node("homedecor:table", {
|
||||
description = S("Table"),
|
||||
tiles = { "forniture_wood.png" },
|
||||
-- 3dforniture tables ... well, they used to be :P
|
||||
|
||||
local table_colors = { "", "mahogany", "white" }
|
||||
|
||||
for _, i in ipairs(table_colors) do
|
||||
local color = "_"..i
|
||||
local desc = S("Table ("..i..")")
|
||||
|
||||
if i == "" then
|
||||
color = ""
|
||||
desc = S("Table")
|
||||
end
|
||||
|
||||
minetest.register_node("homedecor:table"..color, {
|
||||
description = desc,
|
||||
tiles = { "forniture_wood"..color..".png" },
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
@ -22,7 +34,8 @@ minetest.register_node("homedecor:table", {
|
||||
},
|
||||
},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_node("homedecor:chair", {
|
||||
description = S("Chair"),
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 640 B |
BIN
homedecor/textures/forniture_wood_mahogany.png
Normal file
BIN
homedecor/textures/forniture_wood_mahogany.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 588 B |
BIN
homedecor/textures/forniture_wood_white.png
Normal file
BIN
homedecor/textures/forniture_wood_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 250 B |
Loading…
Reference in New Issue
Block a user