MineClone2/mods/blocks/building/ornamental.lua

20 lines
537 B
Lua
Raw Normal View History

2024-06-09 17:11:46 +02:00
local common_defs = {
glass = {
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
_mcl_silk_touch_drop = true,
drawtype = "glasslike",
drop = "",
groups = {colored_blocks = 1, handy = 1},
paramtype = "light",
sounds = mcl_sounds.node_sound_glass_defaults(),
sunlight_propagates = true
}
}
for _, color in pairs(voxelibre.colors) do
local identifier = color.."_stained_glass"
voxelibre.register_block(identifier, table.copy(common_defs.glass))
end