forked from VoxeLibre/VoxeLibre
20 lines
537 B
Lua
20 lines
537 B
Lua
|
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
|