2013-03-18 00:09:42 +01:00
|
|
|
-- Various kidns of shingles
|
|
|
|
|
|
|
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
|
|
local S
|
2013-10-09 18:47:22 +02:00
|
|
|
if homedecor.intllib_modpath then
|
|
|
|
dofile(homedecor.intllib_modpath.."/intllib.lua")
|
2013-03-18 00:09:42 +01:00
|
|
|
S = intllib.Getter(minetest.get_current_modname())
|
|
|
|
else
|
|
|
|
S = function ( s ) return s end
|
|
|
|
end
|
|
|
|
|
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",
|
|
|
|
paramtype = "light",
|
2013-04-29 09:08:36 +02:00
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = true,
|
2013-03-18 00:09:42 +01:00
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2013-04-29 09:08:36 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
|
|
|
}
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2013-05-07 07:49:22 +02:00
|
|
|
minetest.register_node("homedecor:skylight_frosted", {
|
2013-03-18 00:09:42 +01:00
|
|
|
description = S("Glass Skylight"),
|
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",
|
|
|
|
paramtype = "light",
|
2013-03-18 00:09:42 +01:00
|
|
|
sunlight_propagates = true,
|
2013-04-29 09:08:36 +02:00
|
|
|
use_texture_alpha = true,
|
2013-03-18 00:09:42 +01:00
|
|
|
walkable = true,
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2013-04-29 09:08:36 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-07 07:49:22 +02:00
|
|
|
minetest.register_node("homedecor:shingles_wood", {
|
2013-04-29 09:08:36 +02:00
|
|
|
description = S("Wood Shingles"),
|
2013-05-07 07:49:22 +02:00
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "homedecor_shingles_wood.png" },
|
|
|
|
wield_image = "homedecor_shingles_wood.png",
|
|
|
|
inventory_image = "homedecor_shingles_wood_inv.png",
|
|
|
|
paramtype = "light",
|
2013-04-29 09:08:36 +02:00
|
|
|
sunlight_propagates = false,
|
|
|
|
walkable = false,
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
|
|
|
}
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2013-05-07 07:49:22 +02:00
|
|
|
minetest.register_node("homedecor:shingles_asphalt", {
|
2013-03-18 00:09:42 +01:00
|
|
|
description = S("Asphalt Shingles"),
|
2013-05-07 07:49:22 +02:00
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "homedecor_shingles_asphalt.png" },
|
|
|
|
wield_image = "homedecor_shingles_asphalt.png",
|
|
|
|
inventory_image = "homedecor_shingles_asphalt_inv.png",
|
|
|
|
paramtype = "light",
|
2013-03-18 00:09:42 +01:00
|
|
|
sunlight_propagates = false,
|
|
|
|
walkable = false,
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2013-04-29 09:08:36 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
|
|
|
}
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|
2013-05-07 07:49:22 +02:00
|
|
|
minetest.register_node("homedecor:shingles_terracotta", {
|
2013-03-18 00:09:42 +01:00
|
|
|
description = S("Terracotta Roofing"),
|
2013-05-07 07:49:22 +02:00
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = { "homedecor_shingles_terracotta.png" },
|
|
|
|
wield_image = "homedecor_shingles_terracotta.png",
|
|
|
|
inventory_image = "homedecor_shingles_terracotta_inv.png",
|
|
|
|
paramtype = "light",
|
2013-03-18 00:09:42 +01:00
|
|
|
sunlight_propagates = false,
|
|
|
|
walkable = false,
|
|
|
|
groups = { snappy = 3 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2013-04-29 09:08:36 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
|
|
|
|
}
|
2013-03-18 00:09:42 +01:00
|
|
|
})
|
|
|
|
|