diff options
author | Maciej Kasatkin <mk@realbadangel.pl> | 2012-10-11 17:57:21 +0200 |
---|---|---|
committer | Maciej Kasatkin <mk@realbadangel.pl> | 2012-10-11 17:57:21 +0200 |
commit | 6a67be6139c842a0160fecde881bce082aeb4f84 (patch) | |
tree | f4c56fc7a2469da224f855bd920a6d49e5abb42e | |
parent | 2f7d6bb35bb4b1353b94d06fc4dd69045c6a9ef5 (diff) |
Added initial flashlight definitions
-rw-r--r-- | flashlight.lua (renamed from torchlight.lua) | 10 | ||||
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | textures/technic_flashlight.png | bin | 0 -> 1901 bytes |
3 files changed, 6 insertions, 6 deletions
diff --git a/torchlight.lua b/flashlight.lua index d69c8ee..8b34e94 100644 --- a/torchlight.lua +++ b/flashlight.lua @@ -1,14 +1,14 @@ -torchlight_max_charge=30000 +flashlight_max_charge=30000 - minetest.register_tool("technic:torchlight", { - description = "Torchlight", - inventory_image = "technic_torchlight.png", + 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:torchlight", + output = "technic:flashlight", recipe = { {"glass","glass","glass"}, {"technic:stainless_steel_ingot","technic:battery","technic:stainless_steel_ingot"}, @@ -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 Binary files differnew file mode 100644 index 0000000..01afdbb --- /dev/null +++ b/textures/technic_flashlight.png |