Added initial flashlight definitions
authorMaciej Kasatkin <mk@realbadangel.pl>
Thu, 11 Oct 2012 15:57:21 +0000 (17:57 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Thu, 11 Oct 2012 15:57:21 +0000 (17:57 +0200)
flashlight.lua [new file with mode: 0644]
init.lua
textures/technic_flashlight.png [new file with mode: 0644]
torchlight.lua [deleted file]

diff --git a/flashlight.lua b/flashlight.lua
new file mode 100644 (file)
index 0000000..8b34e94
--- /dev/null
@@ -0,0 +1,17 @@
+flashlight_max_charge=30000
+      
+       minetest.register_tool("technic:flashlight", {
+            description = "Flashlight",
+            inventory_image = "technic_flashlight.png",
+            on_use = function(itemstack, user, pointed_thing)
+       end,            
+    })
+     
+    minetest.register_craft({
+            output = "technic:flashlight",
+            recipe = {
+                   {"glass","glass","glass"},
+                    {"technic:stainless_steel_ingot","technic:battery","technic:stainless_steel_ingot"},
+                    {"","technic:battery",""}
+            }
+    })
index 95a519f0fd886d9588275d06751daeb853beb594..5504b291f30c24dec608fb7946226f3f8eaf7752 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -44,7 +44,7 @@ dofile(minetest.get_modpath("technic").."/sonic_screwdriver.lua")
 dofile(minetest.get_modpath("technic").."/node_breaker.lua")
 dofile(minetest.get_modpath("technic").."/deployer.lua")
 dofile(minetest.get_modpath("technic").."/tree_tap.lua")
-dofile(minetest.get_modpath("technic").."/torchlight.lua")
+dofile(minetest.get_modpath("technic").."/flashlight.lua")
 dofile(minetest.get_modpath("technic").."/water_can.lua")
 
 
diff --git a/textures/technic_flashlight.png b/textures/technic_flashlight.png
new file mode 100644 (file)
index 0000000..01afdbb
Binary files /dev/null and b/textures/technic_flashlight.png differ
diff --git a/torchlight.lua b/torchlight.lua
deleted file mode 100644 (file)
index d69c8ee..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-torchlight_max_charge=30000
-      
-       minetest.register_tool("technic:torchlight", {
-            description = "Torchlight",
-            inventory_image = "technic_torchlight.png",
-            on_use = function(itemstack, user, pointed_thing)
-       end,            
-    })
-     
-    minetest.register_craft({
-            output = "technic:torchlight",
-            recipe = {
-                   {"glass","glass","glass"},
-                    {"technic:stainless_steel_ingot","technic:battery","technic:stainless_steel_ingot"},
-                    {"","technic:battery",""}
-            }
-    })