30 lines
742 B
Lua
Raw Normal View History

2019-03-07 19:26:53 -05:00
-- LUALOCALS < ---------------------------------------------------------
local minetest
= minetest
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
minetest.register_node(modname .. ":glass", {
description = "Clear Glass",
drawtype = "glasslike_framed_optional",
tiles = {
modname .. "_glass_glare.png^" .. modname .. "_glass_edges.png",
modname .. "_glass_glare.png"
},
groups = {
cracky = 3
},
sunlight_propagates = true,
paramtype = "light"
})
minetest.register_node(modname .. ":glass_opaque", {
2019-03-07 19:35:01 -05:00
description = "Chromatic Glass",
2019-03-07 19:26:53 -05:00
tiles = { modname .. "_glass_frost.png" },
groups = {
cracky = 3
},
paramtype = "light"
})