40 lines
886 B
Lua
Raw Permalink Normal View History

2012-12-24 12:37:21 +01:00
-- glow/init.lua
-- mod by john and Zeg9
local light = 14
2012-12-24 12:38:44 +01:00
2012-12-24 12:37:21 +01:00
minetest.register_node("glow:stone", {
description = "Glowing stone",
2015-12-12 12:58:55 +01:00
tiles = {"glow_stone.png"},
2015-07-19 12:27:22 +02:00
light_source = light,
2012-12-24 12:37:21 +01:00
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
2012-12-24 12:37:21 +01:00
})
minetest.register_node("glow:lamp", {
description = "Lamp",
2015-12-12 12:58:55 +01:00
tiles = {"glow_stone.png^glow_lamp_frame.png"},
2015-07-19 12:27:22 +02:00
light_source = light,
2012-12-24 12:37:21 +01:00
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
2012-12-24 12:37:21 +01:00
})
minetest.register_craft( {
output = '"glow:stone" 2',
recipe = {
2014-05-30 19:41:05 +02:00
{'default:stone','default:coal_lump','default:stone'}
2012-12-24 12:37:21 +01:00
},
})
minetest.register_craft( {
output = '"glow:lamp" 6',
recipe = {
2014-05-30 19:41:05 +02:00
{'default:stick', 'default:glass', 'default:stick'},
{'default:glass', 'glow:stone', 'default:glass'},
{'default:stick', 'default:glass', 'default:stick'},
2012-12-24 12:37:21 +01:00
},
})
minetest.register_alias("glow:lantern", "glow:lamp")