summaryrefslogtreecommitdiff
path: root/flashlight.lua
diff options
context:
space:
mode:
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",""}
+ }
+ })