diff --git a/depends.txt b/depends.txt new file mode 100755 index 0000000..4ad96d5 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +default diff --git a/glow_lamp.png b/glow_lamp.png new file mode 100755 index 0000000..25131d0 Binary files /dev/null and b/glow_lamp.png differ diff --git a/init.lua b/init.lua new file mode 100755 index 0000000..8e8f737 --- /dev/null +++ b/init.lua @@ -0,0 +1,38 @@ +-- glow/init.lua +-- mod by john and Zeg9 + + +minetest.register_node("glow:stone", { + description = "Glowing stone", + tiles = {"glow_stone.png"}, + light_source = default.LIGHT_MAX, + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("glow:lamp", { + description = "Lamp", + tiles = {"glow_stone.png^glow_lamp_frame.png"}, + light_source = default.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") diff --git a/textures/glow_lamp_frame.png b/textures/glow_lamp_frame.png new file mode 100755 index 0000000..0f763ca Binary files /dev/null and b/textures/glow_lamp_frame.png differ diff --git a/textures/glow_lamp_frame_normal.png b/textures/glow_lamp_frame_normal.png new file mode 100755 index 0000000..4bdb5ef Binary files /dev/null and b/textures/glow_lamp_frame_normal.png differ diff --git a/textures/glow_stone.png b/textures/glow_stone.png new file mode 100755 index 0000000..512475a Binary files /dev/null and b/textures/glow_stone.png differ diff --git a/textures/glow_stone_normal.png b/textures/glow_stone_normal.png new file mode 100755 index 0000000..81731b2 Binary files /dev/null and b/textures/glow_stone_normal.png differ