166
furniture.lua
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
|
||||||
|
minetest.register_node("homedecor:table", {
|
||||||
|
description = "Table",
|
||||||
|
tiles = {
|
||||||
|
"forniture_wood.png",
|
||||||
|
"forniture_wood.png",
|
||||||
|
"forniture_wood_s1.png",
|
||||||
|
"forniture_wood_s1.png",
|
||||||
|
"forniture_wood_s2.png",
|
||||||
|
"forniture_wood_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
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},
|
||||||
|
})
|
||||||
|
minetest.register_node("homedecor:chair", {
|
||||||
|
description = "Chair",
|
||||||
|
tiles = {
|
||||||
|
"forniture_wood.png",
|
||||||
|
"forniture_wood.png",
|
||||||
|
"forniture_wood_s1.png",
|
||||||
|
"forniture_wood_s1.png",
|
||||||
|
"forniture_wood_s2.png",
|
||||||
|
"forniture_wood_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.3, -0.5, 0.20, -0.2, 0.5, 0.30 },
|
||||||
|
{ 0.2, -0.5, 0.20, 0.3, 0.5, 0.30 },
|
||||||
|
{ -0.3, -0.5, -0.30, -0.2, -0.1, -0.20 },
|
||||||
|
{ 0.2, -0.5, -0.30, 0.3, -0.1, -0.20 },
|
||||||
|
{ -0.3, -0.1, -0.30, 0.3, 0.0, 0.20 },
|
||||||
|
{ -0.2, 0.1, 0.25, 0.2, 0.4, 0.26 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||||
|
},
|
||||||
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:armchair", {
|
||||||
|
description = "Armchair",
|
||||||
|
tiles = {
|
||||||
|
"forniture_armchair_top.png",
|
||||||
|
"forniture_armchair_top.png",
|
||||||
|
"forniture_armchair_lat1.png",
|
||||||
|
"forniture_armchair_lat1.png",
|
||||||
|
"forniture_armchair_lat2.png",
|
||||||
|
"forniture_armchair_lat2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.50, -0.50, -0.45, -0.30, 0.05, 0.30 },
|
||||||
|
{ -0.45, -0.50, -0.50, -0.35, 0.05, -0.45 },
|
||||||
|
{ -0.45, 0.05, -0.45, -0.35, 0.10, 0.15 },
|
||||||
|
{ 0.30, -0.50, -0.45, 0.50, 0.05, 0.30 },
|
||||||
|
{ 0.35, -0.50, -0.50, 0.45, 0.05, -0.45 },
|
||||||
|
{ 0.35, 0.05, -0.45, 0.45, 0.10, 0.15 },
|
||||||
|
{ -0.50, -0.50, 0.30, 0.50, 0.45, 0.50 },
|
||||||
|
{ -0.45, 0.45, 0.35, 0.45, 0.50, 0.45 },
|
||||||
|
{ -0.30, -0.45, -0.35, 0.30, -0.10, 0.30 },
|
||||||
|
{ -0.30, -0.45, -0.40, 0.30, -0.15, -0.35 },
|
||||||
|
{ -0.50, 0.05, 0.15, -0.30, 0.45, 0.30 },
|
||||||
|
{ -0.45, 0.10, 0.10, -0.35, 0.45, 0.15 },
|
||||||
|
{ -0.45, 0.45, 0.15, -0.35, 0.50, 0.35 },
|
||||||
|
{ 0.30, 0.05, 0.15, 0.50, 0.45, 0.30 },
|
||||||
|
{ 0.35, 0.10, 0.10, 0.45, 0.45, 0.15 },
|
||||||
|
{ 0.35, 0.45, 0.15, 0.45, 0.50, 0.35 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
function homedecor_table_lamp_on_punch(pos, node, puncher)
|
||||||
|
local repl = { off="low", low="med", med="hi", hi="max", max="off", }
|
||||||
|
local s = minetest.registered_nodes[node.name].homedecor_table_lamp_next
|
||||||
|
if (not s) or (not repl[s]) then return end
|
||||||
|
node.name = "homedecor:table_lamp_"..repl[s]
|
||||||
|
minetest.env:set_node(pos, node)
|
||||||
|
nodeupdate(pos)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
local function reg_lamp(suffix, nxt, desc, tilesuffix, light)
|
||||||
|
minetest.register_node("homedecor:table_lamp_"..suffix, {
|
||||||
|
description = desc,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
"forniture_table_lamp_s"..tilesuffix..".png",
|
||||||
|
"forniture_table_lamp_s"..tilesuffix..".png",
|
||||||
|
"forniture_table_lamp_l"..tilesuffix..".png",
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.1500, -0.500, -0.1500, 0.1500, -0.45, 0.1500 },
|
||||||
|
{ -0.0500, -0.450, -0.0500, 0.0500, -0.40, 0.0500 },
|
||||||
|
{ -0.0250, -0.400, -0.0250, 0.0250, -0.10, 0.0250 },
|
||||||
|
{ -0.0125, -0.125, -0.2000, 0.0125, -0.10, 0.2000 },
|
||||||
|
{ -0.2000, -0.125, -0.0125, 0.2000, -0.10, 0.0125 },
|
||||||
|
{ -0.2000, -0.100, -0.2000, -0.1750, 0.30, 0.2000 },
|
||||||
|
{ 0.1750, -0.100, -0.2000, 0.2000, 0.30, 0.2000 },
|
||||||
|
{ -0.1750, -0.100, -0.2000, 0.1750, 0.30, -0.1750 },
|
||||||
|
{ -0.1750, -0.100, 0.1750, 0.1750, 0.30, 0.2000 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
walkable = false,
|
||||||
|
light_source = light,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.2, -0.5, -0.2, 0.2, 0.30, 0.2 },
|
||||||
|
},
|
||||||
|
groups = {cracky=2,oddly_breakable_by_hand=1,
|
||||||
|
not_in_creative_inventory=((desc == nil) and 1) or nil,
|
||||||
|
},
|
||||||
|
drop = "homedecor:table_lamp_off",
|
||||||
|
homedecor_table_lamp_next = nxt,
|
||||||
|
on_punch = homedecor_table_lamp_on_punch,
|
||||||
|
})
|
||||||
|
minetest.register_alias("3dforniture:table_lamp_"..suffix,
|
||||||
|
"homedecor:table_lamp_"..suffix)
|
||||||
|
end
|
||||||
|
|
||||||
|
reg_lamp("off", "low", "Table Lamp", "", nil)
|
||||||
|
reg_lamp("low", "med", nil, "l", 3)
|
||||||
|
reg_lamp("med", "hi", nil, "m", 7)
|
||||||
|
reg_lamp("hi", "max", nil, "h", 11)
|
||||||
|
reg_lamp("max", "off", nil, "x", 14)
|
||||||
|
|
||||||
|
-- Aliases for 3dforniture mod.
|
||||||
|
minetest.register_alias("3dforniture:table", "homedecor:table")
|
||||||
|
minetest.register_alias("3dforniture:chair", "homedecor:chair")
|
||||||
|
minetest.register_alias("3dforniture:armchair", "homedecor:armchair")
|
||||||
|
|
||||||
|
minetest.register_alias('table', 'homedecor:table')
|
||||||
|
minetest.register_alias('chair', 'homedecor:chair')
|
||||||
|
minetest.register_alias('armchair', 'homedecor:armchair')
|
216
furniture_bathroom.lua
Normal file
@ -0,0 +1,216 @@
|
|||||||
|
|
||||||
|
minetest.register_node("homedecor:toilet", {
|
||||||
|
description = "Toilet",
|
||||||
|
tiles = {
|
||||||
|
"forniture_marble.png", "forniture_marble.png",
|
||||||
|
"forniture_marble_s1.png", "forniture_marble_s1.png",
|
||||||
|
"forniture_marble_s2.png", "forniture_marble_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = false,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
||||||
|
{ -0.10, -0.45, -0.10, 0.10, 0.00, 0.50, },
|
||||||
|
{ -0.30, -0.20, -0.30, 0.30, 0.00, 0.35, },
|
||||||
|
{ -0.25, 0.00, -0.25, 0.25, 0.05, 0.25, },
|
||||||
|
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
|
||||||
|
{ -0.05, 0.40, 0.35, 0.05, 0.45, 0.45, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
drop = "3dforniture:toilet",
|
||||||
|
groups = {cracky=3,},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
on_punch = function (pos, node, puncher)
|
||||||
|
node.name = "homedecor:toilet_open"
|
||||||
|
minetest.env:set_node(pos, node)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:toilet_open", {
|
||||||
|
tiles = {
|
||||||
|
"forniture_marble_top_toilet.png", "forniture_marble.png",
|
||||||
|
"forniture_marble_sb1.png", "forniture_marble_sb1.png",
|
||||||
|
"forniture_marble_sb2.png", "forniture_marble_sb2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
||||||
|
{ -0.10, -0.45, -0.10, 0.10, -0.20, 0.50, },
|
||||||
|
{ -0.10, -0.20, 0.30, 0.10, 0.00, 0.50, },
|
||||||
|
{ -0.30, -0.20, 0.10, 0.30, 0.00, 0.35, },
|
||||||
|
{ -0.30, -0.20, -0.30, -0.10, -0.15, 0.10, },
|
||||||
|
{ -0.10, -0.20, -0.30, 0.10, -0.15, -0.10, },
|
||||||
|
{ 0.10, -0.20, -0.30, 0.30, -0.15, 0.10, },
|
||||||
|
{ -0.30, -0.15, -0.30, -0.20, 0.00, 0.10, },
|
||||||
|
{ -0.20, -0.15, -0.30, 0.20, 0.00, -0.20, },
|
||||||
|
{ 0.20, -0.15, -0.30, 0.30, 0.00, 0.10, },
|
||||||
|
{ -0.25, 0.00, 0.20, 0.25, 0.50, 0.25, },
|
||||||
|
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
drop = "3dforniture:toilet",
|
||||||
|
groups = {cracky = 3,},
|
||||||
|
--sounds = {dig = "3dforniture_dig_toilet", gain=0.5},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
on_punch = function (pos, node, puncher)
|
||||||
|
node.name = "homedecor:toilet"
|
||||||
|
minetest.env:set_node(pos, node)
|
||||||
|
minetest.sound_play({name="homedecor_toilet_flush", pos=pos,})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
--Sink
|
||||||
|
minetest.register_node("homedecor:sink", {
|
||||||
|
description = "Sink",
|
||||||
|
tiles = {
|
||||||
|
"forniture_marble_top_sink.png", "forniture_marble.png",
|
||||||
|
"forniture_marble_sb1.png", "forniture_marble_sb1.png",
|
||||||
|
"forniture_marble_sb2.png", "forniture_marble_sb2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.15, 0.35, 0.20, 0.15, 0.40, 0.50, },
|
||||||
|
{ -0.25, 0.40, 0.40, 0.25, 0.45, 0.50, },
|
||||||
|
{ -0.25, 0.40, 0.15, -0.15, 0.45, 0.40, },
|
||||||
|
{ 0.15, 0.40, 0.15, 0.25, 0.45, 0.40, },
|
||||||
|
{ -0.15, 0.40, 0.15, 0.15, 0.45, 0.20, },
|
||||||
|
{ -0.30, 0.45, 0.40, 0.30, 0.50, 0.50, },
|
||||||
|
{ -0.30, 0.45, 0.10, -0.25, 0.50, 0.40, },
|
||||||
|
{ 0.25, 0.45, 0.10, 0.30, 0.50, 0.40, },
|
||||||
|
{ -0.25, 0.45, 0.10, 0.25, 0.50, 0.15, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.3,0.35,0.1, 0.3,0.5,0.5},
|
||||||
|
},
|
||||||
|
groups = {cracky=2,},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
--Taps
|
||||||
|
minetest.register_node("homedecor:taps", {
|
||||||
|
description = "Taps",
|
||||||
|
tiles = {
|
||||||
|
"forniture_metal.png", "forniture_metal.png",
|
||||||
|
"forniture_metal_s1.png", "forniture_metal_s1.png",
|
||||||
|
"forniture_metal_s2.png", "forniture_metal_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.25, -0.450, 0.49, 0.25, -0.30, 0.50, },
|
||||||
|
{ -0.05, -0.400, 0.25, 0.05, -0.35, 0.50, },
|
||||||
|
{ -0.05, -0.425, 0.25, 0.05, -0.40, 0.30, },
|
||||||
|
{ -0.20, -0.400, 0.45, -0.15, -0.35, 0.50, },
|
||||||
|
{ -0.20, -0.450, 0.40, -0.15, -0.30, 0.45, },
|
||||||
|
{ -0.25, -0.400, 0.40, -0.10, -0.35, 0.45, },
|
||||||
|
{ 0.15, -0.400, 0.45, 0.20, -0.35, 0.50, },
|
||||||
|
{ 0.15, -0.450, 0.40, 0.20, -0.30, 0.45, },
|
||||||
|
{ 0.10, -0.400, 0.40, 0.25, -0.35, 0.45, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.25, -0.45, 0.25, 0.25, -0.3, 0.5 },
|
||||||
|
},
|
||||||
|
groups = {cracky=2,},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
--Shower Tray
|
||||||
|
minetest.register_node("homedecor:shower_tray", {
|
||||||
|
description = "Shower Tray",
|
||||||
|
tiles = {
|
||||||
|
"forniture_marble_base_ducha_top.png",
|
||||||
|
"forniture_marble_base_ducha_top.png",
|
||||||
|
"forniture_marble_sb1.png",
|
||||||
|
"forniture_marble_sb1.png",
|
||||||
|
"forniture_marble_sb2.png",
|
||||||
|
"forniture_marble_sb2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
legacy_facedir_simple = true,
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.50, -0.50, -0.50, 0.50, -0.45, 0.50, },
|
||||||
|
{ -0.50, -0.45, -0.50, 0.50, -0.40, -0.45, },
|
||||||
|
{ -0.50, -0.45, 0.45, 0.50, -0.40, 0.50, },
|
||||||
|
{ -0.50, -0.45, -0.45, -0.45, -0.40, 0.45, },
|
||||||
|
{ 0.45, -0.45, -0.45, 0.50, -0.40, 0.45, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 },
|
||||||
|
},
|
||||||
|
groups = {cracky=2,},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
--Shower Head
|
||||||
|
minetest.register_node("homedecor:shower_head", {
|
||||||
|
description = "Shower Head",
|
||||||
|
tiles = {
|
||||||
|
"forniture_metal.png",
|
||||||
|
"forniture_metal.png",
|
||||||
|
"forniture_metal_s1.png",
|
||||||
|
"forniture_metal_s1.png",
|
||||||
|
"forniture_metal_s2.png",
|
||||||
|
"forniture_metal_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.10, -0.50, 0.10, 0.10, -0.40, 0.30, },
|
||||||
|
{ -0.05, -0.40, 0.15, 0.05, -0.30, 0.25, },
|
||||||
|
{ -0.05, -0.35, 0.25, 0.05, -0.30, 0.50, },
|
||||||
|
{ -0.10, -0.40, 0.49, 0.10, -0.25, 0.50, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.1, -0.5, 0.1, 0.1, -0.25, 0.5 },
|
||||||
|
},
|
||||||
|
groups = {cracky=2,},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("3dforniture:toilet", "homedecor:toilet")
|
||||||
|
minetest.register_alias("3dforniture:toilet_open", "homedecor:toilet_open")
|
||||||
|
minetest.register_alias("3dforniture:sink", "homedecor:sink")
|
||||||
|
minetest.register_alias("3dforniture:taps", "homedecor:taps")
|
||||||
|
minetest.register_alias("3dforniture:shower_tray", "homedecor:shower_tray")
|
||||||
|
minetest.register_alias("3dforniture:shower_head", "homedecor:shower_head")
|
||||||
|
minetest.register_alias("3dforniture:table_lamp", "homedecor:table_lamp_off")
|
||||||
|
|
||||||
|
minetest.register_alias("toilet", "homedecor:toilet")
|
||||||
|
minetest.register_alias("sink", "homedecor:sink")
|
||||||
|
minetest.register_alias("taps", "homedecor:taps")
|
||||||
|
minetest.register_alias("shower_tray", "homedecor:shower_tray")
|
||||||
|
minetest.register_alias("shower_head", "homedecor:shower_head")
|
||||||
|
minetest.register_alias("table_lamp", "homedecor:table_lamp_off")
|
187
furniture_medieval.lua
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
|
||||||
|
minetest.register_node("homedecor:bars", {
|
||||||
|
description = "Bars",
|
||||||
|
tiles = {
|
||||||
|
"forniture_black_metal.png",
|
||||||
|
"forniture_black_metal.png",
|
||||||
|
"forniture_black_metal_s1.png",
|
||||||
|
"forniture_black_metal_s1.png",
|
||||||
|
"forniture_black_metal_s2.png",
|
||||||
|
"forniture_black_metal_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.5, -0.50, -0.10, -0.4, 0.50, 0.10 },
|
||||||
|
{ -0.1, -0.50, -0.10, 0.1, 0.50, 0.10 },
|
||||||
|
{ 0.4, -0.50, -0.10, 0.5, 0.50, 0.10 },
|
||||||
|
{ -0.5, -0.50, -0.05, 0.5, -0.45, 0.05 },
|
||||||
|
{ -0.5, 0.45, -0.05, 0.5, 0.50, 0.05 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.1, 0.5, 0.5, 0.1 },
|
||||||
|
},
|
||||||
|
groups = {cracky=1},
|
||||||
|
})
|
||||||
|
|
||||||
|
--L Binding Bars
|
||||||
|
minetest.register_node("homedecor:L_binding_bars", {
|
||||||
|
description = "Binding Bars",
|
||||||
|
tiles = {
|
||||||
|
"forniture_black_metal.png",
|
||||||
|
"forniture_black_metal.png",
|
||||||
|
"forniture_black_metal_s1.png",
|
||||||
|
"forniture_black_metal_s1.png",
|
||||||
|
"forniture_black_metal_s2.png",
|
||||||
|
"forniture_black_metal_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.10, -0.50, -0.50, 0.10, 0.50, -0.40 },
|
||||||
|
{ -0.15, -0.50, -0.15, 0.15, 0.50, 0.15 },
|
||||||
|
{ 0.40, -0.50, -0.10, 0.50, 0.50, 0.10 },
|
||||||
|
{ 0.00, -0.50, -0.05, 0.50, -0.45, 0.05 },
|
||||||
|
{ -0.05, -0.50, -0.50, 0.05, -0.45, 0.00 },
|
||||||
|
{ 0.00, 0.45, -0.05, 0.50, 0.50, 0.05 },
|
||||||
|
{ -0.05, 0.45, -0.50, 0.05, 0.50, 0.00 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
groups = {cracky=1,}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:chains", {
|
||||||
|
description = "Chains",
|
||||||
|
tiles = {
|
||||||
|
"forniture_black_metal.png",
|
||||||
|
"forniture_black_metal.png",
|
||||||
|
"forniture_black_metal_s1.png",
|
||||||
|
"forniture_black_metal_s1.png",
|
||||||
|
"forniture_black_metal_s2.png",
|
||||||
|
"forniture_black_metal_s2.png",
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.45, 0.25, 0.45, -0.20, 0.50, 0.50, },
|
||||||
|
{ -0.35, 0.40, 0.35, -0.30, 0.45, 0.45, },
|
||||||
|
{ -0.35, 0.30, 0.35, -0.30, 0.35, 0.45, },
|
||||||
|
{ -0.35, 0.35, 0.30, -0.30, 0.40, 0.35, },
|
||||||
|
{ -0.40, 0.35, 0.35, -0.25, 0.40, 0.40, },
|
||||||
|
{ -0.40, 0.15, 0.35, -0.25, 0.20, 0.40, },
|
||||||
|
{ -0.45, 0.20, 0.35, -0.40, 0.35, 0.40, },
|
||||||
|
{ -0.25, 0.20, 0.35, -0.20, 0.35, 0.40, },
|
||||||
|
{ -0.35, 0.20, 0.30, -0.30, 0.25, 0.45, },
|
||||||
|
{ -0.35, 0.00, 0.30, -0.30, 0.05, 0.45, },
|
||||||
|
{ -0.35, 0.05, 0.25, -0.30, 0.20, 0.30, },
|
||||||
|
{ -0.35, 0.05, 0.45, -0.30, 0.20, 0.50, },
|
||||||
|
{ -0.40, 0.05, 0.35, -0.25, 0.10, 0.40, },
|
||||||
|
{ -0.40, -0.15, 0.35, -0.25, -0.10, 0.40, },
|
||||||
|
{ -0.45, -0.10, 0.35, -0.40, 0.05, 0.40, },
|
||||||
|
{ -0.25, -0.10, 0.35, -0.20, 0.05, 0.40, },
|
||||||
|
{ -0.35, -0.10, 0.30, -0.30, -0.05, 0.45, },
|
||||||
|
{ -0.35, -0.30, 0.30, -0.30, -0.25, 0.45, },
|
||||||
|
{ -0.35, -0.25, 0.25, -0.30, -0.10, 0.30, },
|
||||||
|
{ -0.35, -0.25, 0.45, -0.30, -0.10, 0.50, },
|
||||||
|
{ -0.40, -0.25, 0.35, -0.25, -0.20, 0.40, },
|
||||||
|
{ -0.40, -0.45, 0.35, -0.25, -0.40, 0.40, },
|
||||||
|
{ -0.45, -0.40, 0.35, -0.40, -0.25, 0.40, },
|
||||||
|
{ -0.25, -0.40, 0.35, -0.20, -0.25, 0.40, },
|
||||||
|
{ 0.20, 0.25, 0.45, 0.45, 0.50, 0.50, },
|
||||||
|
{ 0.30, 0.40, 0.35, 0.35, 0.45, 0.45, },
|
||||||
|
{ 0.30, 0.30, 0.35, 0.35, 0.35, 0.45, },
|
||||||
|
{ 0.30, 0.35, 0.30, 0.35, 0.40, 0.35, },
|
||||||
|
{ 0.25, 0.35, 0.35, 0.40, 0.40, 0.40, },
|
||||||
|
{ 0.25, 0.15, 0.35, 0.40, 0.20, 0.40, },
|
||||||
|
{ 0.20, 0.20, 0.35, 0.25, 0.35, 0.40, },
|
||||||
|
{ 0.40, 0.20, 0.35, 0.45, 0.35, 0.40, },
|
||||||
|
{ 0.30, 0.20, 0.30, 0.35, 0.25, 0.45, },
|
||||||
|
{ 0.30, 0.00, 0.30, 0.35, 0.05, 0.45, },
|
||||||
|
{ 0.30, 0.05, 0.25, 0.35, 0.20, 0.30, },
|
||||||
|
{ 0.30, 0.05, 0.45, 0.35, 0.20, 0.50, },
|
||||||
|
{ 0.25, 0.05, 0.35, 0.40, 0.10, 0.40, },
|
||||||
|
{ 0.25, -0.15, 0.35, 0.40, -0.10, 0.40, },
|
||||||
|
{ 0.20, -0.10, 0.35, 0.25, 0.05, 0.40, },
|
||||||
|
{ 0.40, -0.10, 0.35, 0.45, 0.05, 0.40, },
|
||||||
|
{ 0.30, -0.10, 0.30, 0.35, -0.05, 0.45, },
|
||||||
|
{ 0.30, -0.30, 0.30, 0.35, -0.25, 0.45, },
|
||||||
|
{ 0.30, -0.25, 0.25, 0.35, -0.10, 0.30, },
|
||||||
|
{ 0.30, -0.25, 0.45, 0.35, -0.10, 0.50, },
|
||||||
|
{ 0.25, -0.25, 0.35, 0.40, -0.20, 0.40, },
|
||||||
|
{ 0.25, -0.45, 0.35, 0.40, -0.40, 0.40, },
|
||||||
|
{ 0.20, -0.40, 0.35, 0.25, -0.25, 0.40, },
|
||||||
|
{ 0.40, -0.40, 0.35, 0.45, -0.25, 0.40, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2},
|
||||||
|
},
|
||||||
|
groups = {cracky=1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:torch_wall", {
|
||||||
|
description = "Torch Wall",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = {
|
||||||
|
"forniture_torch_wall_s.png",
|
||||||
|
"forniture_torch_wall_i.png",
|
||||||
|
{
|
||||||
|
name="forniture_torch_wall_anim.png",
|
||||||
|
animation={
|
||||||
|
type="vertical_frames",
|
||||||
|
aspect_w=40,
|
||||||
|
aspect_h=40,
|
||||||
|
length=1.0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{ -0.05, -0.45, 0.45, 0.05, -0.35, 0.50, },
|
||||||
|
{ -0.05, -0.35, 0.40, 0.05, -0.25, 0.50, },
|
||||||
|
{ -0.05, -0.25, 0.35, 0.05, -0.15, 0.45, },
|
||||||
|
{ -0.05, -0.15, 0.30, 0.05, -0.05, 0.40, },
|
||||||
|
{ -0.05, -0.05, 0.25, 0.05, 0.00, 0.35, },
|
||||||
|
{ -0.10, 0.00, 0.20, 0.10, 0.05, 0.40, },
|
||||||
|
{ -0.15, 0.05, 0.15, 0.15, 0.15, 0.45, },
|
||||||
|
{ -0.10, 0.15, 0.20, 0.10, 0.25, 0.40, },
|
||||||
|
{ -0.05, 0.25, 0.25, 0.05, 0.35, 0.35, },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sunlight_propagates = true,
|
||||||
|
walkable = false,
|
||||||
|
light_source = 14,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
|
||||||
|
},
|
||||||
|
groups = {cracky=2},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("3dforniture:bars", "homedecor:bars")
|
||||||
|
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
|
||||||
|
minetest.register_alias("3dforniture:chains", "homedecor:chains")
|
||||||
|
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
|
||||||
|
|
||||||
|
minetest.register_alias('bars', 'homedecor:bars')
|
||||||
|
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
|
||||||
|
minetest.register_alias('chains', 'homedecor:chains')
|
||||||
|
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
|
4
init.lua
@ -81,4 +81,8 @@ dofile(minetest.get_modpath("homedecor").."/crafts.lua")
|
|||||||
|
|
||||||
dofile(minetest.get_modpath("homedecor").."/locked.lua")
|
dofile(minetest.get_modpath("homedecor").."/locked.lua")
|
||||||
|
|
||||||
|
dofile(minetest.get_modpath("homedecor").."/furniture.lua")
|
||||||
|
dofile(minetest.get_modpath("homedecor").."/furniture_medieval.lua")
|
||||||
|
dofile(minetest.get_modpath("homedecor").."/furniture_bathroom.lua")
|
||||||
|
|
||||||
print("[HomeDecor] "..S("Loaded!"))
|
print("[HomeDecor] "..S("Loaded!"))
|
||||||
|
BIN
sounds/homedecor_toilet_flush.ogg
Normal file
BIN
textures/forniture_armchair_lat1.png
Normal file
After Width: | Height: | Size: 354 B |
BIN
textures/forniture_armchair_lat2.png
Normal file
After Width: | Height: | Size: 353 B |
BIN
textures/forniture_armchair_top.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
textures/forniture_black_metal.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
textures/forniture_black_metal_s1.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
textures/forniture_black_metal_s2.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
textures/forniture_marble.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_base_ducha_top.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_s1.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_s2.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_sb1.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_sb2.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_top_sink.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_marble_top_toilet.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/forniture_metal.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
textures/forniture_metal_s1.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
textures/forniture_metal_s2.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
textures/forniture_papyrus.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
textures/forniture_papyrus_s1.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
textures/forniture_papyrus_s2.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
textures/forniture_table_lamp_l.png
Normal file
After Width: | Height: | Size: 773 B |
BIN
textures/forniture_table_lamp_s.png
Normal file
After Width: | Height: | Size: 620 B |
BIN
textures/forniture_torch_wall_anim.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
textures/forniture_torch_wall_i.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
textures/forniture_torch_wall_s.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
textures/forniture_wood.png
Normal file
After Width: | Height: | Size: 615 B |
BIN
textures/forniture_wood_s1.png
Normal file
After Width: | Height: | Size: 615 B |
BIN
textures/forniture_wood_s2.png
Normal file
After Width: | Height: | Size: 610 B |