forked from minetest-mods/technic
Added initial flashlight definitions
This commit is contained in:
parent
2f7d6bb35b
commit
6a67be6139
|
@ -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"},
|
2
init.lua
2
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").."/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")
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
textures/technic_flashlight.png
Normal file
BIN
textures/technic_flashlight.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in New Issue
Block a user