1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-18 18:50:23 +02:00
server-nalc/mods/homedecor_modpack/homedecor/shingles.lua
Ombridride ef8497f9b2 Update home decor and plantlife
more mesh on homedecor, and important performance upgrade for plantlife
2015-03-02 21:55:02 +01:00

46 lines
1.4 KiB
Lua
Executable File

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", {
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),
})
local materials = {"asphalt", "terracotta", "wood"}
for _, s in ipairs(materials) do
minetest.register_node("homedecor:shingles_"..s, {
description = S("Shingles ("..s..")"),
drawtype = "raillike",
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),
})
end