2013-10-22 02:31:54 +02:00
|
|
|
local S = homedecor.gettext
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("ceiling_paint", {
|
2013-03-18 00:09:42 +01:00
|
|
|
description = S("Textured Ceiling Paint"),
|
|
|
|
drawtype = 'signlike',
|
|
|
|
tiles = { 'homedecor_ceiling_paint.png' },
|
|
|
|
inventory_image = 'homedecor_ceiling_paint_roller.png',
|
|
|
|
wield_image = 'homedecor_ceiling_paint_roller.png',
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2015-02-28 10:14:46 +01:00
|
|
|
selection_box = { type = "wallmounted" },
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("ceiling_tile", {
|
2013-03-18 00:09:42 +01:00
|
|
|
description = S("Drop-Ceiling Tile"),
|
|
|
|
drawtype = 'signlike',
|
|
|
|
tiles = { 'homedecor_ceiling_tile.png' },
|
|
|
|
wield_image = 'homedecor_ceiling_tile.png',
|
|
|
|
inventory_image = 'homedecor_ceiling_tile.png',
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2015-02-28 10:14:46 +01:00
|
|
|
selection_box = { type = "wallmounted" },
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
local rug_sizes = {"small", "large"}
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
for _, s in ipairs(rug_sizes) do
|
|
|
|
homedecor.register("rug_"..s, {
|
|
|
|
description = S("Throw Rug ("..s..")"),
|
2013-03-18 00:09:42 +01:00
|
|
|
drawtype = 'signlike',
|
2015-02-28 10:14:46 +01:00
|
|
|
tiles = {"homedecor_rug_"..s..".png"},
|
|
|
|
wield_image = "homedecor_rug_"..s..".png",
|
|
|
|
inventory_image = "homedecor_rug_"..s..".png",
|
2013-03-18 00:09:42 +01:00
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
walkable = false,
|
2015-02-28 10:14:46 +01:00
|
|
|
groups = {snappy = 3},
|
2013-03-18 00:09:42 +01:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2015-02-28 10:14:46 +01:00
|
|
|
selection_box = { type = "wallmounted" },
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
2015-02-28 10:14:46 +01:00
|
|
|
end
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
local pot_colors = {"black", "green", "terracotta"}
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
for _, p in ipairs(pot_colors) do
|
|
|
|
homedecor.register("flower_pot_"..p, {
|
|
|
|
description = S("Flower Pot ("..p..")"),
|
2014-12-14 21:12:44 +01:00
|
|
|
mesh = "homedecor_flowerpot.obj",
|
2015-02-28 10:14:46 +01:00
|
|
|
tiles = { "homedecor_flower_pot_"..p..".png" },
|
2015-01-21 04:40:38 +01:00
|
|
|
groups = { snappy = 3, potting_soil=1 },
|
2013-03-18 00:09:42 +01:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
2015-02-28 10:14:46 +01:00
|
|
|
end
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("pole_brass", {
|
2014-08-12 18:26:14 +02:00
|
|
|
description = S("Brass Pole"),
|
2014-12-13 23:32:31 +01:00
|
|
|
mesh = "homedecor_round_pole.obj",
|
2014-08-12 18:26:14 +02:00
|
|
|
tiles = {"homedecor_tile_brass2.png"},
|
2014-12-14 21:42:59 +01:00
|
|
|
inventory_image = "homedecor_pole_brass_inv.png",
|
|
|
|
wield_image = "homedecor_pole_brass_inv.png",
|
2014-08-12 18:26:14 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
2014-12-13 23:32:31 +01:00
|
|
|
fixed = { -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
|
|
|
|
},
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
|
2014-08-12 18:26:14 +02:00
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
2015-01-20 23:59:50 +01:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("pole_wrought_iron", {
|
2014-08-12 18:26:14 +02:00
|
|
|
description = S("Wrought Iron Pole"),
|
|
|
|
tiles = {"homedecor_tile_wrought_iron2.png"},
|
2014-12-14 21:42:59 +01:00
|
|
|
inventory_image = "homedecor_pole_wrought_iron_inv.png",
|
|
|
|
wield_image = "homedecor_pole_wrought_iron_inv.png",
|
2014-08-12 18:26:14 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}
|
|
|
|
},
|
2013-03-18 00:09:42 +01:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}
|
|
|
|
},
|
2014-08-12 18:26:14 +02:00
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2014-06-25 08:50:11 +02:00
|
|
|
local welcome_mat_colors = { "green", "brown", "grey" }
|
|
|
|
|
|
|
|
for _, color in ipairs(welcome_mat_colors) do
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("welcome_mat_"..color, {
|
2014-06-25 08:50:11 +02:00
|
|
|
description = "Welcome Mat ("..color..")",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_welcome_mat_"..color..".png",
|
|
|
|
"homedecor_welcome_mat_bottom.png",
|
|
|
|
"homedecor_welcome_mat_"..color..".png",
|
|
|
|
},
|
|
|
|
groups = {crumbly=3},
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.25},
|
|
|
|
}),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.375, 0.5, -0.46875, 0.375 }
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
2014-06-25 10:21:54 +02:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("chimney", {
|
2014-06-25 10:21:54 +02:00
|
|
|
description = "Chimney",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_chimney_top.png",
|
|
|
|
"homedecor_chimney_bottom.png",
|
|
|
|
"homedecor_chimney_sides.png",
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.25, -0.5, -0.25, 0.25, 0.5, -0.1875},
|
|
|
|
{-0.25, -0.5, 0.1875, 0.25, 0.5, 0.25},
|
|
|
|
{-0.25, -0.5, -0.25, -0.1875, 0.5, 0.25},
|
|
|
|
{0.1875, -0.5, -0.25, 0.25, 0.5, 0.25},
|
|
|
|
}
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.bar_y(0.25),
|
2014-06-25 10:21:54 +02:00
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults()
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("fishtank", {
|
2014-06-26 04:32:43 +02:00
|
|
|
description = "Fishtank",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_fishtank_top.png",
|
|
|
|
"homedecor_fishtank_bottom.png",
|
|
|
|
"homedecor_fishtank_right.png",
|
|
|
|
"homedecor_fishtank_left.png",
|
|
|
|
"homedecor_fishtank_back.png",
|
|
|
|
"homedecor_fishtank_front.png"
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.375, 0.5, -0.4375, 0.375},
|
|
|
|
{-0.4375, -0.4375, -0.3125, 0.4375, 0.1875, 0.3125},
|
|
|
|
{-0.4375, 0.1875, -0.1875, 0.4375, 0.25, 0.1875},
|
|
|
|
{-0.1875, 0.0625, 0.0625, 0.1875, 0.25, 0.375},
|
|
|
|
{ 0.125, -0.5, 0.25, 0.1875, 0.1875, 0.375},
|
|
|
|
{-0.375, 0.25, -0.125, 0.375, 0.3125, 0.125},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
use_texture_alpha = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.375, 0.5, 0.3125, 0.375 }
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2014-06-28 01:12:21 +02:00
|
|
|
on_rightclick = function(pos, node, clicker)
|
|
|
|
fdir = minetest.get_node(pos).param2
|
2015-03-05 23:10:27 +01:00
|
|
|
minetest.set_node(pos, {name = "homedecor:fishtank_lighted", param2 = fdir})
|
2014-06-28 01:12:21 +02:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("fishtank_lighted", {
|
2014-06-28 01:12:21 +02:00
|
|
|
description = "Fishtank",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_fishtank_top.png",
|
|
|
|
"homedecor_fishtank_bottom.png",
|
|
|
|
"homedecor_fishtank_right_lighted.png",
|
|
|
|
"homedecor_fishtank_left_lighted.png",
|
|
|
|
"homedecor_fishtank_back_lighted.png",
|
|
|
|
"homedecor_fishtank_front_lighted.png"
|
|
|
|
},
|
|
|
|
light_source = LIGHT_MAX-4,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.375, 0.5, -0.4375, 0.375},
|
|
|
|
{-0.4375, -0.4375, -0.3125, 0.4375, 0.1875, 0.3125},
|
|
|
|
{-0.4375, 0.1875, -0.1875, 0.4375, 0.25, 0.1875},
|
|
|
|
{-0.1875, 0.0625, 0.0625, 0.1875, 0.25, 0.375},
|
|
|
|
{ 0.125, -0.5, 0.25, 0.1875, 0.1875, 0.375},
|
|
|
|
{-0.375, 0.25, -0.125, 0.375, 0.3125, 0.125},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
use_texture_alpha = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.375, 0.5, 0.3125, 0.375 }
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
2014-08-04 19:04:17 +02:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
2014-06-28 01:12:21 +02:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
on_rightclick = function(pos, node, clicker)
|
|
|
|
fdir = minetest.get_node(pos).param2
|
2015-03-05 23:10:27 +01:00
|
|
|
minetest.set_node(pos, {name = "homedecor:fishtank", param2 = fdir})
|
2014-06-28 01:12:21 +02:00
|
|
|
end
|
2014-06-26 04:32:43 +02:00
|
|
|
})
|
|
|
|
|
2015-01-23 23:25:00 +01:00
|
|
|
homedecor.register("cardboard_box_big", {
|
|
|
|
description = S("Cardboard box (big)"),
|
2014-06-26 06:28:21 +02:00
|
|
|
tiles = {
|
2015-01-23 23:25:00 +01:00
|
|
|
'homedecor_cardbox_big_tb.png',
|
|
|
|
'homedecor_cardbox_big_tb.png',
|
|
|
|
'homedecor_cardbox_big_sides.png',
|
2014-06-26 06:28:21 +02:00
|
|
|
},
|
2015-01-23 23:25:00 +01:00
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
infotext=S("Cardboard box"),
|
|
|
|
inventory = {
|
|
|
|
size=24,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("cardboard_box", {
|
|
|
|
description = S("Cardboard box"),
|
|
|
|
tiles = {
|
|
|
|
'homedecor_cardbox_tb.png',
|
|
|
|
'homedecor_cardbox_tb.png',
|
|
|
|
'homedecor_cardbox_sides.png',
|
|
|
|
},
|
2014-06-26 06:28:21 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2015-01-23 23:25:00 +01:00
|
|
|
{-0.3125, -0.5, -0.3125, 0.3125, 0, 0.3125},
|
2014-06-26 06:28:21 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Cardboard box"),
|
|
|
|
inventory = {
|
2015-01-23 23:25:00 +01:00
|
|
|
size=8,
|
2015-01-21 19:19:14 +01:00
|
|
|
},
|
2014-06-26 06:28:21 +02:00
|
|
|
})
|
2014-06-25 11:59:34 +02:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("dvd_cd_cabinet", {
|
2014-06-26 13:11:58 +02:00
|
|
|
description = "DVD/CD cabinet",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_dvdcd_cabinet_top.png",
|
2014-11-03 12:46:45 +01:00
|
|
|
"homedecor_dvdcd_cabinet_top.png",
|
2014-06-26 13:11:58 +02:00
|
|
|
"homedecor_dvdcd_cabinet_sides.png",
|
|
|
|
"homedecor_dvdcd_cabinet_sides.png^[transformFX",
|
|
|
|
"homedecor_dvdcd_cabinet_back.png",
|
|
|
|
"homedecor_dvdcd_cabinet_front.png",
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0, -0.4375, 0.5, 0.5},
|
|
|
|
{0.4375, -0.5, 0, 0.5, 0.5, 0.5},
|
|
|
|
{-0.0625, -0.5, 0, 0.0625, 0.5, 0.5},
|
|
|
|
{-0.5, 0.4375, 0, 0.5, 0.5, 0.5},
|
|
|
|
{-0.5, -0.5, 0, 0.5, -0.4375, 0.5},
|
|
|
|
{-0.5, -0.5, 0.0625, 0.5, 0.5, 0.4375},
|
|
|
|
{-0.375, -0.5, 0.02756, -0.125, 0.5, 0.5},
|
|
|
|
{0.125, -0.5, 0.01217, 0.375, 0.5, 0.5},
|
|
|
|
}
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_z(0.5),
|
2014-06-26 13:11:58 +02:00
|
|
|
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2015-01-21 19:19:14 +01:00
|
|
|
homedecor.register("filing_cabinet", {
|
2014-06-26 14:10:10 +02:00
|
|
|
description = S("Filing Cabinet"),
|
|
|
|
tiles = {
|
2014-11-03 12:46:45 +01:00
|
|
|
'forniture_wood.png',
|
2014-06-26 14:10:10 +02:00
|
|
|
'homedecor_filing_cabinet_bottom.png',
|
2014-11-03 12:46:45 +01:00
|
|
|
'forniture_wood.png',
|
|
|
|
'forniture_wood.png',
|
|
|
|
'forniture_wood.png',
|
2014-06-26 14:10:10 +02:00
|
|
|
'homedecor_filing_cabinet_front.png'
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = { type = "regular" },
|
2014-06-26 14:10:10 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -8/16, -8/16, -30/64, 8/16, 8/16, 8/16 }, -- main body
|
|
|
|
{ -7/16, -7/16, -8/16, 7/16, 7/16, 8/16 }, -- drawer
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-01-21 19:19:14 +01:00
|
|
|
infotext=S("Filing cabinet"),
|
|
|
|
inventory = {
|
|
|
|
size=16,
|
|
|
|
},
|
2014-06-26 14:10:10 +02:00
|
|
|
})
|
2014-06-26 14:39:30 +02:00
|
|
|
|
2015-01-23 00:01:08 +01:00
|
|
|
homedecor.register("pool_table", {
|
2014-08-07 20:49:26 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_pool_table_top1.png",
|
|
|
|
"homedecor_pool_table_bottom1.png",
|
|
|
|
"homedecor_pool_table_sides1.png",
|
2014-11-03 12:46:45 +01:00
|
|
|
"homedecor_pool_table_sides1.png^[transformFX",
|
2014-08-07 20:49:26 +02:00
|
|
|
"homedecor_pool_table_end1.png",
|
2014-11-03 12:46:45 +01:00
|
|
|
"homedecor_pool_table_end1.png"
|
2014-08-07 20:49:26 +02:00
|
|
|
},
|
|
|
|
description = "Pool Table",
|
|
|
|
inventory_image = "homedecor_pool_table_inv.png",
|
|
|
|
groups = {snappy=3},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.375, -0.5, -0.375, -0.25, 0.1875, -0.25}, -- NodeBox1
|
|
|
|
{0.25, -0.5, -0.375, 0.375, 0.1875, -0.25}, -- NodeBox2
|
|
|
|
{-0.25, -0.125, -0.3125, 0.25, -0.0625, 0}, -- NodeBox3
|
|
|
|
{-0.3125, -0.0625, -0.3125, -0.25, 0.1875, 0}, -- NodeBox4
|
|
|
|
{0.25, -0.0625, -0.3125, 0.3125, 0.1875, 0}, -- NodeBox5
|
|
|
|
{-0.3125, -0.125, 0, 0.3125, 0.1875, 0.0625}, -- NodeBox6
|
|
|
|
{0.25, -0.125, -0.25, 0.3125, 0.1875, 0.5}, -- NodeBox7
|
|
|
|
{-0.3125, -0.125, -0.25, -0.25, 0.1875, 0.5}, -- NodeBox8
|
|
|
|
{-0.5, 0.1875, -0.5, -0.4375, 0.25, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, 0.1875, -0.5, 0.5, 0.25, -0.4375}, -- NodeBox10
|
|
|
|
{0.4375, 0.1875, -0.5, 0.5, 0.25, 0.5}, -- NodeBox11
|
|
|
|
{-0.3125, 0.1875, -0.3125, 0.3125, 0.25, 0.5}, -- NodeBox12
|
|
|
|
{-0.4375, 0.1875, -0.3125, 0.4375, 0.25, 0.4375}, -- NodeBox13
|
|
|
|
{-0.3125, 0.1875, -0.5, 0.3125, 0.25, -0.3125}, -- NodeBox14
|
2014-08-14 20:46:46 +02:00
|
|
|
{-0.25, -0.125, -0.325, 0.25, 0, -0.3125}, -- NodeBox15
|
2014-08-07 20:49:26 +02:00
|
|
|
{0.25, 0.125, -0.4375, 0.4375, 0.1875, 0.5}, -- NodeBox16
|
|
|
|
{-0.4375, 0.125, -0.4375, -0.25, 0.1875, 0.5}, -- NodeBox17
|
|
|
|
{-0.5, 0.25, -0.5, -0.4375, 0.3125, 0.5}, -- NodeBox18
|
|
|
|
{-0.5, 0.25, -0.5, 0.5, 0.3125, -0.4375}, -- NodeBox19
|
|
|
|
{0.4375, 0.25, -0.5, 0.5, 0.3125, 0.5}, -- NodeBox20
|
|
|
|
{-0.4375, 0.25, -0.3125, -0.375, 0.3125, 0.4375}, -- NodeBox23
|
|
|
|
{-0.3125, 0.25, -0.4375, 0.3125, 0.3125, -0.375}, -- NodeBox24
|
|
|
|
{0.375, 0.25, -0.3125, 0.4375, 0.3125, 0.4375}, -- NodeBox25
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.3125, 1.5 }
|
|
|
|
},
|
2015-01-23 00:01:08 +01:00
|
|
|
expand = { forward="homedecor:pool_table_2" },
|
2014-08-07 20:49:26 +02:00
|
|
|
})
|
|
|
|
|
2015-01-23 00:01:08 +01:00
|
|
|
homedecor.register("pool_table_2", {
|
2014-08-07 20:49:26 +02:00
|
|
|
tiles = {
|
2014-11-03 12:46:45 +01:00
|
|
|
"homedecor_pool_table_top1.png^[transformR180",
|
|
|
|
"homedecor_pool_table_bottom1.png",
|
|
|
|
"homedecor_pool_table_sides1.png^[transformFX",
|
|
|
|
"homedecor_pool_table_sides1.png",
|
|
|
|
"homedecor_pool_table_end1.png",
|
|
|
|
"homedecor_pool_table_end1.png"
|
2014-08-07 20:49:26 +02:00
|
|
|
},
|
|
|
|
groups = {snappy=3, not_in_creative_inventory=1},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2014-09-07 21:14:48 +02:00
|
|
|
{-0.375, -0.5, 0.25, -0.25, 0.1875, 0.375}, -- NodeBox1
|
|
|
|
{0.25, -0.5, 0.25, 0.375, 0.1875, 0.375}, -- NodeBox2
|
|
|
|
{-0.25, -0.125, 0, 0.25, -0.0625, 0.3125}, -- NodeBox3
|
|
|
|
{-0.3125, -0.0625, 0, -0.25, 0.1875, 0.3125}, -- NodeBox4
|
|
|
|
{0.25, -0.0625, 0, 0.3125, 0.1875, 0.3125}, -- NodeBox5
|
|
|
|
{-0.3125, -0.125, -0.0625, 0.3125, 0.1875, 0}, -- NodeBox6
|
|
|
|
{0.25, -0.125, -0.5, 0.3125, 0.1875, 0.25}, -- NodeBox7
|
|
|
|
{-0.3125, -0.125, -0.5, -0.25, 0.1875, 0.25}, -- NodeBox8
|
|
|
|
{-0.5, 0.1875, -0.5, -0.4375, 0.25, 0.5}, -- NodeBox9
|
|
|
|
{-0.5, 0.1875, 0.4375, 0.5, 0.25, 0.5}, -- NodeBox10
|
|
|
|
{0.4375, 0.1875, -0.5, 0.5, 0.25, 0.5}, -- NodeBox11
|
|
|
|
{-0.3125, 0.1875, -0.5, 0.3125, 0.25, 0.3125}, -- NodeBox12
|
|
|
|
{-0.4375, 0.1875, -0.4375, 0.4375, 0.25, 0.3125}, -- NodeBox13
|
|
|
|
{-0.3125, 0.1875, 0.3125, 0.3125, 0.25, 0.5}, -- NodeBox14
|
|
|
|
{-0.25, -0.125, 0.3125, 0.25, 0, 0.325}, -- NodeBox15
|
|
|
|
{0.25, 0.125, -0.5, 0.4375, 0.1875, 0.4375}, -- NodeBox16
|
|
|
|
{-0.4375, 0.125, -0.5, -0.25, 0.1875, 0.4375}, -- NodeBox17
|
|
|
|
{-0.5, 0.25, -0.5, -0.4375, 0.3125, 0.5}, -- NodeBox18
|
|
|
|
{-0.5, 0.25, 0.4375, 0.5, 0.3125, 0.5}, -- NodeBox19
|
|
|
|
{0.4375, 0.25, -0.5, 0.5, 0.3125, 0.5}, -- NodeBox20
|
|
|
|
{-0.4375, 0.25, -0.4375, -0.375, 0.3125, 0.3125}, -- NodeBox23
|
|
|
|
{-0.3125, 0.25, 0.375, 0.3125, 0.3125, 0.4375}, -- NodeBox24
|
|
|
|
{0.375, 0.25, -0.4375, 0.4375, 0.3125, 0.3125}, -- NodeBox25
|
2014-08-07 20:49:26 +02:00
|
|
|
}
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.null,
|
2014-08-07 20:49:26 +02:00
|
|
|
})
|
2014-08-08 21:13:47 +02:00
|
|
|
|
2015-01-28 08:25:46 +01:00
|
|
|
local trash_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.25, -0.5, -0.25, 0.25, 0.125, 0.25 }
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("trash_can", {
|
2015-01-28 08:25:46 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_trash_can.obj",
|
|
|
|
tiles = { "homedecor_trash_can.png" },
|
|
|
|
inventory_image = "homedecor_trash_can_inv.png",
|
2014-08-08 21:13:47 +02:00
|
|
|
description = "Trash Can",
|
|
|
|
groups = {snappy=3},
|
2015-01-28 08:25:46 +01:00
|
|
|
selection_box = trash_cbox,
|
|
|
|
collision_box = trash_cbox,
|
2014-08-08 21:13:47 +02:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("coatrack_wallmount", {
|
2014-11-03 12:46:45 +01:00
|
|
|
tiles = { "forniture_wood.png" },
|
2014-08-14 20:05:41 +02:00
|
|
|
inventory_image = "homedecor_coatrack_wallmount_inv.png",
|
|
|
|
description = "Coatrack (wallmounted)",
|
|
|
|
groups = {snappy=3},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.375, 0, 0.4375, 0.375, 0.14, 0.5}, -- NodeBox1
|
|
|
|
{-0.3025, 0.0475, 0.375, -0.26, 0.09, 0.4375}, -- NodeBox2
|
|
|
|
{0.26, 0.0475, 0.375, 0.3025, 0.09, 0.4375}, -- NodeBox3
|
|
|
|
{0.0725, 0.0475, 0.375, 0.115, 0.09, 0.4375}, -- NodeBox4
|
|
|
|
{-0.115, 0.0475, 0.375, -0.0725, 0.09, 0.4375}, -- NodeBox5
|
|
|
|
{0.24, 0.025, 0.352697, 0.3225, 0.115, 0.375}, -- NodeBox6
|
|
|
|
{-0.3225, 0.025, 0.352697, -0.24, 0.115, 0.375}, -- NodeBox7
|
|
|
|
{-0.135, 0.025, 0.352697, -0.0525, 0.115, 0.375}, -- NodeBox8
|
|
|
|
{0.0525, 0.025, 0.352697, 0.135, 0.115, 0.375}, -- NodeBox9
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("coat_tree", {
|
2014-11-03 12:46:45 +01:00
|
|
|
tiles = { "forniture_wood.png" },
|
2014-09-30 19:17:43 +02:00
|
|
|
inventory_image = "homedecor_coatrack_inv.png",
|
2014-08-14 20:05:41 +02:00
|
|
|
description = "Coat tree",
|
2014-09-30 19:17:43 +02:00
|
|
|
groups = {snappy=3},
|
2014-08-14 20:05:41 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{0, -0.5, 0, 0.0625, 1.5, 0.0625}, -- NodeBox1
|
|
|
|
{-0.125, -0.5, -0.125, 0.1875, -0.4375, 0.1875}, -- NodeBox2
|
|
|
|
{0.1875, -0.5, -0.0625, 0.22, -0.4375, 0.125}, -- NodeBox3
|
|
|
|
{-0.0625, -0.5, 0.188, 0.125, -0.4375, 0.22}, -- NodeBox4
|
|
|
|
{-0.16, -0.5, -0.0625, -0.125, -0.4375, 0.125}, -- NodeBox5
|
|
|
|
{-0.0625, -0.5, -0.16, 0.125, -0.4375, -0.125}, -- NodeBox6
|
|
|
|
{-0.25, 1.1875, 0, 0.3125, 1.25, 0.0625}, -- NodeBox7
|
|
|
|
{0, 1.1875, -0.25, 0.0625, 1.25, 0.3125}, -- NodeBox8
|
|
|
|
{-0.0207468, 1.4375, -0.0207468, 0.0829876, 1.5, 0.0829876}, -- NodeBox9
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-01-28 04:07:19 +01:00
|
|
|
local cutlery_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -5/16, -8/16, -6/16, 5/16, -7/16, 2/16 },
|
|
|
|
{ -2/16, -8/16, 2/16, 2/16, -4/16, 6/16 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("cutlery_set", {
|
2015-01-28 04:07:19 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_cutlery_set.obj",
|
|
|
|
tiles = { "homedecor_cutlery_set.png" },
|
2014-08-18 05:40:56 +02:00
|
|
|
inventory_image = "homedecor_cutlery_set_inv.png",
|
|
|
|
description = "Cutlery set",
|
|
|
|
groups = {snappy=3},
|
2015-01-28 04:07:19 +01:00
|
|
|
selection_box = cutlery_cbox,
|
|
|
|
collision_box = cutlery_cbox
|
2014-08-18 05:40:56 +02:00
|
|
|
})
|
|
|
|
|
2015-01-02 07:24:07 +01:00
|
|
|
local bottle_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.125, -0.5, -0.125, 0.125, 0, 0.125}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-02 11:40:02 +01:00
|
|
|
local fbottle_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.375, -0.5, -0.3125, 0.375, 0, 0.3125 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
local bottle_colors = {"brown", "green"}
|
|
|
|
|
|
|
|
for _, b in ipairs(bottle_colors) do
|
|
|
|
|
|
|
|
homedecor.register("bottle_"..b, {
|
|
|
|
tiles = { "homedecor_bottle_"..b..".png" },
|
|
|
|
inventory_image = "homedecor_bottle_"..b.."_inv.png",
|
|
|
|
description = "Bottle ("..b..")",
|
|
|
|
mesh = "homedecor_bottle.obj",
|
2015-01-02 11:29:42 +01:00
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {snappy=3},
|
2015-02-28 10:14:46 +01:00
|
|
|
collision_box = bottle_cbox,
|
|
|
|
selection_box = bottle_cbox
|
2015-01-02 11:29:42 +01:00
|
|
|
})
|
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
-- 4-bottle sets
|
|
|
|
|
|
|
|
homedecor.register("4_bottles_"..b, {
|
|
|
|
tiles = { "homedecor_bottle_"..b..".png" },
|
|
|
|
inventory_image = "homedecor_4_bottles_"..b.."_inv.png",
|
|
|
|
description = "Four "..b.." bottles",
|
2015-01-02 11:29:42 +01:00
|
|
|
mesh = "homedecor_4_bottles.obj",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {snappy=3},
|
2015-01-02 11:40:02 +01:00
|
|
|
collision_box = fbottle_cbox,
|
|
|
|
selection_box = fbottle_cbox
|
2015-01-02 11:29:42 +01:00
|
|
|
})
|
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
end
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("4_bottles_multi", {
|
2015-01-02 11:29:42 +01:00
|
|
|
tiles = { "homedecor_4_bottles_multi.png" },
|
|
|
|
inventory_image = "homedecor_4_bottles_multi_inv.png",
|
|
|
|
description = "Four misc brown/green bottles",
|
|
|
|
mesh = "homedecor_4_bottles_multi.obj",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {snappy=3},
|
2015-01-02 11:40:02 +01:00
|
|
|
collision_box = fbottle_cbox,
|
|
|
|
selection_box = fbottle_cbox
|
2015-01-02 11:29:42 +01:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("dartboard", {
|
2014-08-26 14:20:18 +02:00
|
|
|
description = "Dartboard",
|
2014-12-14 02:55:19 +01:00
|
|
|
mesh = "homedecor_dartboard.obj",
|
|
|
|
tiles = { "homedecor_dartboard.png" },
|
|
|
|
inventory_image = "homedecor_dartboard_inv.png",
|
|
|
|
wield_image = "homedecor_dartboard_inv.png",
|
2014-08-26 14:20:18 +02:00
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
},
|
|
|
|
groups = {choppy=2,dig_immediate=2,attached_node=1},
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2015-01-23 00:01:08 +01:00
|
|
|
homedecor.register("piano_left", {
|
2014-08-26 19:28:47 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_piano_top_left.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_front_left.png",
|
|
|
|
},
|
|
|
|
inventory_image = "homedecor_piano_inv.png",
|
2014-08-26 19:32:40 +02:00
|
|
|
description = "Piano",
|
2014-08-26 19:28:47 +02:00
|
|
|
groups = { snappy = 3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.1875, 0.5, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, 0.0625, -0.125, -0.4375, 0.25, 0.1875}, -- NodeBox2
|
|
|
|
{-0.5, -0.5, -0.125, -0.4375, -0.375, 0.1875}, -- NodeBox3
|
|
|
|
{-0.5, -0.375, -0.0625, -0.4375, 0.0625, 0}, -- NodeBox4
|
|
|
|
{-0.5, 0.0625, -0.0625, 0.5, 0.1875, 0.1875}, -- NodeBox5
|
|
|
|
{-0.4375, 0.1875, 0.15, 0.5, 0.4375, 0.1875}, -- NodeBox6
|
|
|
|
{0.3594, -0.5, 0, 0.4062, -0.46875, 0.25}, -- left-most pedal
|
|
|
|
{0.4844, -0.5, 0, 0.5, -0.46875, 0.25}, -- half of center pedal
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.125, 1.5, 0.5, 0.5 }
|
|
|
|
},
|
2015-01-23 00:01:08 +01:00
|
|
|
expand = { right="homedecor:piano_right" },
|
2014-08-26 19:28:47 +02:00
|
|
|
})
|
|
|
|
|
2015-01-23 00:01:08 +01:00
|
|
|
homedecor.register("piano_right", {
|
2014-08-26 19:28:47 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_piano_top_right.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_sides.png",
|
|
|
|
"homedecor_piano_front_right.png",
|
|
|
|
},
|
2014-08-26 19:33:37 +02:00
|
|
|
groups = { snappy = 3, not_in_creative_inventory=1 },
|
2014-08-26 19:28:47 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.1875, 0.5, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{0.4375, -0.5, -0.125, 0.5, -0.375, 0.1875}, -- NodeBox2
|
|
|
|
{0.4375, 0.0625, -0.125, 0.5, 0.25, 0.1875}, -- NodeBox3
|
|
|
|
{0.4375, -0.375, -0.0625, 0.5, 0.0625, 0}, -- NodeBox4
|
|
|
|
{-0.5, 0.0625, -0.0625, 0.4375, 0.1875, 0.1875}, -- NodeBox5
|
|
|
|
{-0.5, 0.1875, 0.15, 0.4375, 0.4375, 0.1875}, -- NodeBox6
|
|
|
|
{-0.5, -0.5, 0, -0.4688, -0.46875, 0.25}, -- half of center pedal
|
|
|
|
{-0.3905, -0.5, 0, -0.3438, -0.46875, 0.25}, -- right-most pedal
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.null
|
2014-08-26 19:28:47 +02:00
|
|
|
})
|
2014-08-28 14:38:16 +02:00
|
|
|
|
2014-09-07 21:14:48 +02:00
|
|
|
-- convert old pool tables into newer model
|
|
|
|
|
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = { "homedecor:pool_table2" },
|
|
|
|
interval = 1,
|
|
|
|
chance = 1,
|
|
|
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
|
|
local swap_fdir = { 2, 3, 0, 1 }
|
|
|
|
local fdir = swap_fdir[node.param2+1]
|
|
|
|
minetest.set_node(pos, {name = "homedecor:pool_table_2", param2 = fdir})
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("trophy", {
|
2014-09-10 12:13:06 +02:00
|
|
|
description = "Trophy",
|
|
|
|
tiles = {
|
|
|
|
"default_gold_block.png"
|
|
|
|
},
|
2014-09-10 20:01:37 +02:00
|
|
|
inventory_image = "homedecor_trophy_inv.png",
|
2014-09-10 12:13:06 +02:00
|
|
|
groups = { snappy=3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.125, -0.5, -0.125, 0.1875, -0.4375, 0.1875}, -- NodeBox1
|
|
|
|
{-0.0625, -0.4375, -0.0625, 0.125, -0.375, 0.125}, -- NodeBox2
|
|
|
|
{-0.02, -0.375, -0.02, 0.0825, -0.1875, 0.0825}, -- NodeBox3
|
|
|
|
{-0.0625, -0.1875, -0.0625, 0.125, -0.125, 0.125}, -- NodeBox4
|
|
|
|
{-0.125, -0.1875, -0.0625, -0.0625, 0.125, 0.125}, -- NodeBox5
|
|
|
|
{0.125, -0.1875, -0.0625, 0.1875, 0.125, 0.125}, -- NodeBox6
|
|
|
|
{-0.125, -0.1875, 0.125, 0.1875, 0.125, 0.1875}, -- NodeBox7
|
|
|
|
{-0.125, -0.1875, -0.125, 0.1875, 0.125, -0.0625}, -- NodeBox8
|
|
|
|
{-0.0625, -0.25, -0.0625, 0.125, -0.1875, 0.125}, -- NodeBox9
|
|
|
|
{0.1875, 0.05, 0, 0.23, 0.0925, 0.0625}, -- NodeBox10
|
|
|
|
{0.1875, -0.15, 0, 0.23, -0.11, 0.0625}, -- NodeBox11
|
|
|
|
{0.23, -0.15, 0, 0.2725, 0.0925, 0.0625}, -- NodeBox12
|
|
|
|
{-0.1675, -0.15, 0, -0.125, -0.11, 0.0625}, -- NodeBox13
|
|
|
|
{-0.1675, 0.05, 0, -0.125, 0.0925, 0.0625}, -- NodeBox14
|
|
|
|
{-0.21, -0.15, 0, -0.1675, 0.0925, 0.0625}, -- NodeBox15
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.21, -0.5, -0.125, 0.2725, 0.125, 0.1875 }
|
|
|
|
}
|
|
|
|
})
|
2014-09-10 18:34:09 +02:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("sportbench", {
|
2014-09-10 18:34:09 +02:00
|
|
|
description = "Sport bench",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_sportbench_top.png",
|
|
|
|
"wool_black.png",
|
2015-01-20 23:59:50 +01:00
|
|
|
"homedecor_sportbench_left.png^[transformFX",
|
2014-09-10 18:34:09 +02:00
|
|
|
"homedecor_sportbench_left.png",
|
|
|
|
"homedecor_sportbench_bottom.png",
|
|
|
|
"homedecor_sportbench_front.png"
|
|
|
|
},
|
|
|
|
groups = { snappy=3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.3125, -0.5, 0.1875, -0.25, 0.5}, -- NodeBox1
|
|
|
|
{-0.1875, -0.5, -0.5, -0.125, -0.3125, -0.4375}, -- NodeBox2
|
|
|
|
{0.125, -0.5, -0.5, 0.1875, -0.3125, -0.4375}, -- NodeBox3
|
|
|
|
{0.1875, -0.5, 0.375, 0.25, 0.375, 0.4375}, -- NodeBox4
|
|
|
|
{-0.25, -0.5, 0.375, -0.1875, 0.375, 0.4375}, -- NodeBox5
|
|
|
|
{-0.5, 0.125, 0.36, 0.5, 0.14, 0.375}, -- NodeBox6
|
|
|
|
{0.3125, 0, 0.225, 0.35, 0.285, 0.5}, -- NodeBox7
|
|
|
|
{-0.35, 0, 0.225, -0.3125, 0.285, 0.5}, -- NodeBox8
|
|
|
|
{-0.1875, -0.375, 0.375, 0.1875, -0.3125, 0.4375}, -- NodeBox9
|
|
|
|
{-0.23, 0.11, 0.33, -0.2075, 0.125, 0.375}, -- NodeBox10
|
|
|
|
{0.2075, 0.11, 0.33, 0.23, 0.125, 0.375}, -- NodeBox11
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.4, -0.5, -0.5, 0.4, 0.375, 0.5 }
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("skateboard", {
|
2014-09-10 19:49:20 +02:00
|
|
|
description = "Skateboard",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_skateboard_top.png",
|
|
|
|
"homedecor_skateboard_bottom.png",
|
|
|
|
"homedecor_skateboard_sides.png"
|
|
|
|
},
|
|
|
|
inventory_image = "homedecor_skateboard_inv.png",
|
|
|
|
groups = { snappy=3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4375, -0.4375, -0.1875, 0.4375, -0.415, 0.125}, -- NodeBox1
|
|
|
|
{-0.375, -0.5, 0.0625, -0.3125, -0.4375, 0.125}, -- NodeBox2
|
|
|
|
{-0.375, -0.5, -0.1875, -0.3125, -0.4375, -0.125}, -- NodeBox3
|
|
|
|
{0.3125, -0.5, 0.0625, 0.375, -0.4375, 0.125}, -- NodeBox4
|
|
|
|
{0.3125, -0.5, -0.1875, 0.375, -0.4375, -0.125}, -- NodeBox5
|
|
|
|
{-0.5, -0.4375, -0.16, -0.4375, -0.415, 0.0975}, -- NodeBox6
|
|
|
|
{0.4375, -0.4375, -0.16, 0.5, -0.415, 0.0975}, -- NodeBox7
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.2, 0.5, -0.40, 0.125 }
|
|
|
|
},
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("beer_tap", {
|
2014-09-18 06:30:07 +02:00
|
|
|
description = "Beer tap",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_beertap_front.png",
|
|
|
|
"homedecor_beertap_front.png",
|
|
|
|
"homedecor_beertap_right.png",
|
2014-11-03 12:46:45 +01:00
|
|
|
"homedecor_beertap_right.png^[transformFX",
|
2014-09-18 06:30:07 +02:00
|
|
|
"homedecor_beertap_front.png",
|
|
|
|
"homedecor_beertap_front.png"
|
|
|
|
},
|
|
|
|
inventory_image = "homedecor_beertap_inv.png",
|
|
|
|
groups = { snappy=3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.25, -0.5, -0.4375, 0.25, -0.48, 0}, -- NodeBox1
|
|
|
|
{-0.0625, -0.48, -0.1875, 0.0625, 0.125, -0.0625}, -- NodeBox2
|
|
|
|
{-0.1875, 0, -0.375, -0.125, 0.0315, -0.125}, -- NodeBox3
|
|
|
|
{-0.1875, 0, -0.1875, 0.1875, 0.0315, -0.125}, -- NodeBox4
|
|
|
|
{0.125, 0, -0.375, 0.1875, 0.0315, -0.125}, -- NodeBox5
|
|
|
|
{0.135, 0.0315, -0.3225, 0.1775, 0.235, -0.29}, -- NodeBox6
|
|
|
|
{-0.1775, 0.0315, -0.3225, -0.135, 0.235, -0.29}, -- NodeBox7
|
|
|
|
{-0.1675, -0.0825, -0.355, -0.145, 0, -0.3325}, -- NodeBox8
|
|
|
|
{0.145, -0.0825, -0.355, 0.1675, 0, -0.3325}, -- NodeBox9
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.25, -0.5, -0.4375, 0.25, 0.235, 0 }
|
2014-09-18 06:35:02 +02:00
|
|
|
},
|
|
|
|
on_punch = function(pos, node, puncher, pointed_thing)
|
|
|
|
local wielditem = puncher:get_wielded_item()
|
|
|
|
local inv = puncher:get_inventory()
|
|
|
|
|
|
|
|
local wieldname = wielditem:get_name()
|
2015-01-20 23:59:50 +01:00
|
|
|
if wieldname == "vessels:drinking_glass" then
|
2014-09-18 06:35:02 +02:00
|
|
|
if inv:room_for_item("main", "homedecor:beer_mug 1") then
|
|
|
|
wielditem:take_item()
|
|
|
|
puncher:set_wielded_item(wielditem)
|
|
|
|
inv:add_item("main", "homedecor:beer_mug 1")
|
|
|
|
minetest.chat_send_player(puncher:get_player_name(), "Ahh, a frosty cold beer - look in your inventory for it!")
|
|
|
|
else
|
|
|
|
minetest.chat_send_player(puncher:get_player_name(), "No room in your inventory to add a beer mug!")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2015-01-28 06:52:24 +01:00
|
|
|
local beer_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -5/32, -8/16, -9/32 , 7/32, -2/16, 1/32 }
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("beer_mug", {
|
2014-09-18 06:35:02 +02:00
|
|
|
description = "Beer mug",
|
2015-01-28 06:52:24 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_beer_mug.obj",
|
|
|
|
tiles = { "homedecor_beer_mug.png" },
|
|
|
|
inventory_image = "homedecor_beer_mug_inv.png",
|
2014-09-18 06:35:02 +02:00
|
|
|
groups = { snappy=3, oddly_breakable_by_hand=3 },
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2015-01-28 06:52:24 +01:00
|
|
|
selection_box = beer_cbox,
|
|
|
|
collision_box = beer_cbox
|
2014-09-18 06:30:07 +02:00
|
|
|
})
|
|
|
|
|
2015-01-23 00:01:08 +01:00
|
|
|
homedecor.register("tool_cabinet_bottom", {
|
2014-09-18 07:36:23 +02:00
|
|
|
description = "Metal tool cabinet and work table",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_tool_cabinet_bottom_top.png",
|
|
|
|
"homedecor_tool_cabinet_bottom_sides.png",
|
|
|
|
"homedecor_tool_cabinet_bottom_sides.png",
|
|
|
|
"homedecor_tool_cabinet_bottom_sides.png",
|
2015-01-20 23:59:50 +01:00
|
|
|
"homedecor_tool_cabinet_bottom_sides.png",
|
2014-09-18 07:36:23 +02:00
|
|
|
"homedecor_tool_cabinet_bottom_front.png"
|
|
|
|
},
|
|
|
|
inventory_image = "homedecor_tool_cabinet_inv.png",
|
|
|
|
groups = { snappy=3 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.4375, -0.4375, -0.375, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, -0.5, -0.5, -0.4375, -0.375, -0.4375}, -- NodeBox2
|
|
|
|
{0.4375, -0.5, 0.4375, 0.5, -0.375, 0.5}, -- NodeBox3
|
|
|
|
{0.4375, -0.5, -0.5, 0.5, -0.375, -0.4375}, -- NodeBox4
|
|
|
|
{-0.5, -0.375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox5
|
|
|
|
}
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_y(2),
|
2015-01-23 00:01:08 +01:00
|
|
|
expand = { top="homedecor:tool_cabinet_top" },
|
2014-09-18 07:36:23 +02:00
|
|
|
})
|
|
|
|
|
2015-01-23 00:01:08 +01:00
|
|
|
homedecor.register("tool_cabinet_top", {
|
2014-09-18 07:36:23 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_tool_cabinet_top_top.png",
|
|
|
|
"homedecor_tool_cabinet_top_bottom.png",
|
|
|
|
"homedecor_tool_cabinet_top_right.png",
|
|
|
|
"homedecor_tool_cabinet_top_left.png",
|
|
|
|
"homedecor_tool_cabinet_top_back.png",
|
|
|
|
"homedecor_tool_cabinet_top_front.png"
|
|
|
|
},
|
|
|
|
groups = { snappy=3, not_in_creative_inventory=1 },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox1
|
|
|
|
{-0.5, -0.5, -0.4375, -0.1875, -0.4375, 0.125}, -- NodeBox2
|
|
|
|
{-0.375, -0.4375, 0, -0.3125, 0.1875, 0.0625}, -- NodeBox3
|
|
|
|
{-0.4375, -0.1875, -0.375, -0.25, 0.125, 0.125}, -- NodeBox4
|
|
|
|
{-0.25, -0.0625, -0.3125, -0.22, 0.3125, -0.2825}, -- NodeBox5
|
|
|
|
{-0.375, -0.1875, -0.25, -0.3125, -0.218, -0.3125}, -- NodeBox6
|
|
|
|
{-0.35, -0.32, -0.285, -0.3375, -0.218, -0.2725}, -- NodeBox7
|
|
|
|
{0, -0.3125, 0.375, 0.0625, 0.1875, 0.4375}, -- NodeBox8
|
|
|
|
{0.125, 0.1875, 0.375, 0.1875, 0.25, 0.4375}, -- NodeBox9
|
|
|
|
{-0.0625, 0.1875, 0.375, 0.125, 0.3125, 0.4375}, -- NodeBox10
|
|
|
|
{0.343, -0.125, 0.42, 0.375, 0.125, 0.4375}, -- NodeBox11
|
|
|
|
{0.3125, 0.095, 0.42, 0.343, 0.1575, 0.4375}, -- NodeBox12
|
|
|
|
{0.375, 0.095, 0.42, 0.405, 0.1575, 0.4375}, -- NodeBox13
|
|
|
|
{0.3125, -0.155, 0.42, 0.343, -0.093, 0.4375}, -- NodeBox14
|
|
|
|
{0.375, -0.155, 0.42, 0.405, -0.093, 0.4375}, -- NodeBox15
|
|
|
|
}
|
|
|
|
},
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.null
|
2014-09-18 07:36:23 +02:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("calendar", {
|
2014-09-21 11:18:35 +02:00
|
|
|
description = "Calendar",
|
|
|
|
drawtype = "signlike",
|
|
|
|
tiles = {"homedecor_calendar.png"},
|
|
|
|
inventory_image = "homedecor_calendar.png",
|
|
|
|
wield_image = "homedecor_calendar.png",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
},
|
|
|
|
groups = {choppy=2,dig_immediate=2,attached_node=1},
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
2015-01-01 21:28:49 +01:00
|
|
|
|
2015-01-02 10:41:01 +01:00
|
|
|
local globe_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 }
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("desk_globe", {
|
2015-01-01 21:28:49 +01:00
|
|
|
description = "Desk globe",
|
|
|
|
mesh = "homedecor_desk_globe.obj",
|
|
|
|
tiles = {"homedecor_desk_globe.png"},
|
|
|
|
inventory_image = "homedecor_desk_globe_inv.png",
|
2015-01-02 10:41:01 +01:00
|
|
|
selection_box = globe_cbox,
|
|
|
|
collision_box = globe_cbox,
|
2015-01-02 06:47:08 +01:00
|
|
|
groups = {choppy=2},
|
2015-01-01 21:28:49 +01:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2015-01-23 17:40:57 +01:00
|
|
|
local wine_cbox = homedecor.nodebox.slab_z(0.25)
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("wine_rack", {
|
2015-01-02 06:39:04 +01:00
|
|
|
description = "Wine Rack",
|
|
|
|
mesh = "homedecor_wine_rack.obj",
|
|
|
|
tiles = {"homedecor_wine_rack.png"},
|
|
|
|
inventory_image = "homedecor_wine_rack_inv.png",
|
2015-01-02 06:47:08 +01:00
|
|
|
groups = {choppy=2},
|
2015-01-02 10:39:17 +01:00
|
|
|
selection_box = wine_cbox,
|
|
|
|
collision_box = wine_cbox,
|
2015-01-02 06:39:04 +01:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2015-02-14 12:21:27 +01:00
|
|
|
local pframe_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.18, -0.5, -0.08, 0.18, -0.08, 0.18 }
|
|
|
|
}
|
|
|
|
local n = { 1, 2 }
|
|
|
|
|
|
|
|
for _, i in ipairs(n) do
|
|
|
|
homedecor.register("picture_frame"..i, {
|
|
|
|
description = S("Picture Frame"),
|
|
|
|
mesh = "homedecor_picture_frame.obj",
|
|
|
|
tiles = { "homedecor_picture_frame"..i..".png" },
|
|
|
|
inventory_image = "homedecor_picture_frame"..i.."_inv.png",
|
|
|
|
wield_image = "homedecor_picture_frame"..i.."_inv.png",
|
|
|
|
groups = {snappy = 3},
|
|
|
|
selection_box = pframe_cbox,
|
|
|
|
collision_box = pframe_cbox,
|
|
|
|
})
|
|
|
|
end
|