From: Maciej Kasatkin Date: Thu, 11 Oct 2012 15:57:21 +0000 (+0200) Subject: Added initial flashlight definitions X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6a67be6139c842a0160fecde881bce082aeb4f84;p=zefram%2Fminetest%2Ftechnic.git Added initial flashlight definitions --- diff --git a/flashlight.lua b/flashlight.lua new file mode 100644 index 0000000..8b34e94 --- /dev/null +++ b/flashlight.lua @@ -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",""} + } + }) diff --git a/init.lua b/init.lua index 95a519f..5504b29 100644 --- 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 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 index d69c8ee..0000000 --- a/torchlight.lua +++ /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",""} - } - })