summaryrefslogtreecommitdiff
path: root/flashlight.lua
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 /flashlight.lua
parent2f7d6bb35bb4b1353b94d06fc4dd69045c6a9ef5 (diff)
Added initial flashlight definitions
Diffstat (limited to 'flashlight.lua')
-rw-r--r--flashlight.lua17
1 files changed, 17 insertions, 0 deletions
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",""}
+ }
+ })