2013-10-22 02:31:54 +02:00
|
|
|
local S = homedecor.gettext
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2013-05-07 07:49:22 +02:00
|
|
|
minetest.register_node("homedecor:skylight", {
|
2013-04-29 09:08:36 +02:00
|
|
|
description = S("Glass Skylight"),
|
2013-05-07 07:49:22 +02:00
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "default_glass.png" },
|
|
|
|
wield_image = "default_glass.png",
|
|
|
|
inventory_image = "homedecor_skylight_inv.png",
|
2013-03-18 00:09:42 +01:00
|
|
|
groups = { snappy = 3 },
|
2015-05-18 23:31:05 +02:00
|
|
|
paramtype = "light",
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2013-05-07 07:49:22 +02:00
|
|
|
minetest.register_node("homedecor:skylight_frosted", {
|
2014-03-25 14:16:47 +01:00
|
|
|
description = S("Glass Skylight Frosted"),
|
2013-05-07 07:49:22 +02:00
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "homedecor_skylight_frosted.png" },
|
|
|
|
wield_image = "homedecor_skylight_frosted.png",
|
|
|
|
inventory_image = "homedecor_skylight_frosted_inv.png",
|
2013-04-29 09:08:36 +02:00
|
|
|
use_texture_alpha = true,
|
2013-03-18 00:09:42 +01:00
|
|
|
groups = { snappy = 3 },
|
2015-05-18 23:31:05 +02:00
|
|
|
paramtype = "light",
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
2013-04-29 09:08:36 +02:00
|
|
|
})
|
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
local materials = {"asphalt", "terracotta", "wood"}
|
2013-03-18 00:09:42 +01:00
|
|
|
|
2015-02-28 10:14:46 +01:00
|
|
|
for _, s in ipairs(materials) do
|
|
|
|
minetest.register_node("homedecor:shingles_"..s, {
|
|
|
|
description = S("Shingles ("..s..")"),
|
2013-05-07 07:49:22 +02:00
|
|
|
drawtype = "raillike",
|
2015-02-28 10:14:46 +01:00
|
|
|
tiles = { "homedecor_shingles_"..s..".png" },
|
|
|
|
wield_image = "homedecor_shingles_"..s..".png",
|
|
|
|
inventory_image = "homedecor_shingles_"..s.."_inv.png",
|
2013-05-07 07:49:22 +02:00
|
|
|
paramtype = "light",
|
2013-03-18 00:09:42 +01:00
|
|
|
walkable = false,
|
|
|
|
groups = { snappy = 3 },
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-01-23 17:40:57 +01:00
|
|
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
2015-02-28 10:14:46 +01:00
|
|
|
end
|