1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-16 07:10:35 +01:00
homedecor_modpack/homedecor/shingles.lua

46 lines
1.4 KiB
Lua
Raw Normal View History

local S = homedecor.gettext
minetest.register_node("homedecor:skylight", {
description = S("Glass Skylight"),
drawtype = "raillike",
tiles = { "default_glass.png" },
wield_image = "default_glass.png",
inventory_image = "homedecor_skylight_inv.png",
paramtype = "light",
sunlight_propagates = true,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = homedecor.nodebox.slab_y(0.1),
})
minetest.register_node("homedecor:skylight_frosted", {
2014-03-25 14:16:47 +01:00
description = S("Glass Skylight Frosted"),
drawtype = "raillike",
tiles = { "homedecor_skylight_frosted.png" },
wield_image = "homedecor_skylight_frosted.png",
inventory_image = "homedecor_skylight_frosted_inv.png",
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = true,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = homedecor.nodebox.slab_y(0.1),
})
2015-02-28 10:14:46 +01:00
local materials = {"asphalt", "terracotta", "wood"}
2015-02-28 10:14:46 +01:00
for _, s in ipairs(materials) do
minetest.register_node("homedecor:shingles_"..s, {
description = S("Shingles ("..s..")"),
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",
paramtype = "light",
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = homedecor.nodebox.slab_y(0.1),
})
2015-02-28 10:14:46 +01:00
end