From 6a67be6139c842a0160fecde881bce082aeb4f84 Mon Sep 17 00:00:00 2001 From: Maciej Kasatkin Date: Thu, 11 Oct 2012 17:57:21 +0200 Subject: [PATCH] Added initial flashlight definitions --- torchlight.lua => flashlight.lua | 10 +++++----- init.lua | 2 +- textures/technic_flashlight.png | Bin 0 -> 1901 bytes 3 files changed, 6 insertions(+), 6 deletions(-) rename torchlight.lua => flashlight.lua (61%) create mode 100644 textures/technic_flashlight.png diff --git a/torchlight.lua b/flashlight.lua similarity index 61% rename from torchlight.lua rename to 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 0000000000000000000000000000000000000000..01afdbb2f8a1f7cd7c309828e9ba20f744a4888c GIT binary patch literal 1901 zcmV-z2a@=SP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01m4F01m4Gj_kzz00007bV*G`2iyt? z4j(Fl@5`M400!+zL_t(o!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