mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
add white and "mahogany" "3dforniture" tables,
better wood texture for "3dforniture" wooden objects
This commit is contained in:
parent
6cb4f449a1
commit
da4039e2c5
@ -1,28 +1,41 @@
|
|||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
-- Test
|
-- 3dforniture tables ... well, they used to be :P
|
||||||
minetest.register_node("homedecor:table", {
|
|
||||||
description = S("Table"),
|
local table_colors = { "", "mahogany", "white" }
|
||||||
tiles = { "forniture_wood.png" },
|
|
||||||
drawtype = "nodebox",
|
for _, i in ipairs(table_colors) do
|
||||||
paramtype = "light",
|
local color = "_"..i
|
||||||
paramtype2 = "facedir",
|
local desc = S("Table ("..i..")")
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
if i == "" then
|
||||||
fixed = {
|
color = ""
|
||||||
{ -0.4, -0.5, -0.4, -0.3, 0.4, -0.3 },
|
desc = S("Table")
|
||||||
{ 0.3, -0.5, -0.4, 0.4, 0.4, -0.3 },
|
end
|
||||||
{ -0.4, -0.5, 0.3, -0.3, 0.4, 0.4 },
|
|
||||||
{ 0.3, -0.5, 0.3, 0.4, 0.4, 0.4 },
|
minetest.register_node("homedecor:table"..color, {
|
||||||
{ -0.5, 0.4, -0.5, 0.5, 0.5, 0.5 },
|
description = desc,
|
||||||
{ -0.4, -0.2, -0.3, -0.3, -0.1, 0.3 },
|
tiles = { "forniture_wood"..color..".png" },
|
||||||
{ 0.3, -0.2, -0.4, 0.4, -0.1, 0.3 },
|
drawtype = "nodebox",
|
||||||
{ -0.3, -0.2, -0.4, 0.4, -0.1, -0.3 },
|
paramtype = "light",
|
||||||
{ -0.3, -0.2, 0.3, 0.3, -0.1, 0.4 },
|
paramtype2 = "facedir",
|
||||||
},
|
node_box = {
|
||||||
},
|
type = "fixed",
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
fixed = {
|
||||||
})
|
{ -0.4, -0.5, -0.4, -0.3, 0.4, -0.3 },
|
||||||
|
{ 0.3, -0.5, -0.4, 0.4, 0.4, -0.3 },
|
||||||
|
{ -0.4, -0.5, 0.3, -0.3, 0.4, 0.4 },
|
||||||
|
{ 0.3, -0.5, 0.3, 0.4, 0.4, 0.4 },
|
||||||
|
{ -0.5, 0.4, -0.5, 0.5, 0.5, 0.5 },
|
||||||
|
{ -0.4, -0.2, -0.3, -0.3, -0.1, 0.3 },
|
||||||
|
{ 0.3, -0.2, -0.4, 0.4, -0.1, 0.3 },
|
||||||
|
{ -0.3, -0.2, -0.4, 0.4, -0.1, -0.3 },
|
||||||
|
{ -0.3, -0.2, 0.3, 0.3, -0.1, 0.4 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("homedecor:chair", {
|
minetest.register_node("homedecor:chair", {
|
||||||
description = S("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