mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-20 17:20:31 +01:00
40 lines
904 B
Lua
Executable File
40 lines
904 B
Lua
Executable File
-- glow/init.lua
|
|
-- mod by john and Zeg9
|
|
|
|
LIGHT_MAX = 15
|
|
|
|
minetest.register_node("glow:stone", {
|
|
description = "Glowing stone",
|
|
tile_images = {"glow_stone.png"},
|
|
light_source = LIGHT_MAX,
|
|
groups = {cracky=3},
|
|
sounds = default.node_sound_glass_defaults(),
|
|
})
|
|
|
|
minetest.register_node("glow:lamp", {
|
|
description = "Lamp",
|
|
tile_images = {"glow_stone.png^glow_lamp_frame.png"},
|
|
light_source = LIGHT_MAX,
|
|
groups = {cracky=3},
|
|
sounds = default.node_sound_glass_defaults(),
|
|
})
|
|
|
|
|
|
minetest.register_craft( {
|
|
output = '"glow:stone" 2',
|
|
recipe = {
|
|
{'default:stone','default:coal_lump','default:stone'}
|
|
},
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
output = '"glow:lamp" 6',
|
|
recipe = {
|
|
{'default:stick', 'default:glass', 'default:stick'},
|
|
{'default:glass', 'glow:stone', 'default:glass'},
|
|
{'default:stick', 'default:glass', 'default:stick'},
|
|
},
|
|
})
|
|
|
|
minetest.register_alias("glow:lantern", "glow:lamp")
|