diff --git a/.gitignore b/.gitignore index b25c15b..d9c069a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ +## Generic ignorable patterns and files *~ +.*.swp +debug.txt diff --git a/glow/textures/glow_lamp.png b/glow/glow_lamp.png similarity index 100% rename from glow/textures/glow_lamp.png rename to glow/glow_lamp.png diff --git a/glow/init.lua b/glow/init.lua index 3d42958..7dfdc4d 100644 --- a/glow/init.lua +++ b/glow/init.lua @@ -13,7 +13,7 @@ minetest.register_node("glow:stone", { minetest.register_node("glow:lamp", { description = "Lamp", - tile_images = {"glow_lamp.png"}, + tile_images = {"glow_stone.png^glow_lamp_frame.png"}, light_source = LIGHT_MAX, groups = {cracky=3}, sounds = default.node_sound_glass_defaults(), @@ -23,16 +23,16 @@ minetest.register_node("glow:lamp", { minetest.register_craft( { output = '"glow:stone" 2', recipe = { - { 'default:stone','default:coal_lump','default:stone' } + {'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' }, + {'default:stick', 'default:glass', 'default:stick'}, + {'default:glass', 'glow:stone', 'default:glass'}, + {'default:stick', 'default:glass', 'default:stick'}, }, }) diff --git a/glow/textures/glow_lamp_frame.png b/glow/textures/glow_lamp_frame.png new file mode 100644 index 0000000..0f763ca Binary files /dev/null and b/glow/textures/glow_lamp_frame.png differ diff --git a/glow/textures/glow_lamp_frame_normal.png b/glow/textures/glow_lamp_frame_normal.png new file mode 100644 index 0000000..4bdb5ef Binary files /dev/null and b/glow/textures/glow_lamp_frame_normal.png differ diff --git a/glow/textures/glow_stone_normal.png b/glow/textures/glow_stone_normal.png new file mode 100644 index 0000000..97a27d4 Binary files /dev/null and b/glow/textures/glow_stone_normal.png differ