summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Kasatkin <mk@realbadangel.pl>2012-10-11 17:57:21 +0200
committerMaciej Kasatkin <mk@realbadangel.pl>2012-10-11 17:57:21 +0200
commit6a67be6139c842a0160fecde881bce082aeb4f84 (patch)
treef4c56fc7a2469da224f855bd920a6d49e5abb42e
parent2f7d6bb35bb4b1353b94d06fc4dd69045c6a9ef5 (diff)
Added initial flashlight definitions
-rw-r--r--flashlight.lua (renamed from torchlight.lua)10
-rw-r--r--init.lua2
-rw-r--r--textures/technic_flashlight.pngbin0 -> 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"},
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
--- /dev/null
+++ b/textures/technic_flashlight.png
Binary files differ