Added initial flashlight definitions

This commit is contained in:
Maciej Kasatkin 2012-10-11 17:57:21 +02:00
parent 2f7d6bb35b
commit 6a67be6139
3 changed files with 6 additions and 6 deletions

View File

@ -1,14 +1,14 @@
torchlight_max_charge=30000 flashlight_max_charge=30000
minetest.register_tool("technic:torchlight", { minetest.register_tool("technic:flashlight", {
description = "Torchlight", description = "Flashlight",
inventory_image = "technic_torchlight.png", inventory_image = "technic_flashlight.png",
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
end, end,
}) })
minetest.register_craft({ minetest.register_craft({
output = "technic:torchlight", output = "technic:flashlight",
recipe = { recipe = {
{"glass","glass","glass"}, {"glass","glass","glass"},
{"technic:stainless_steel_ingot","technic:battery","technic:stainless_steel_ingot"}, {"technic:stainless_steel_ingot","technic:battery","technic:stainless_steel_ingot"},

View File

@ -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").."/node_breaker.lua")
dofile(minetest.get_modpath("technic").."/deployer.lua") dofile(minetest.get_modpath("technic").."/deployer.lua")
dofile(minetest.get_modpath("technic").."/tree_tap.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") dofile(minetest.get_modpath("technic").."/water_can.lua")

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB