summaryrefslogtreecommitdiff
path: root/emergencyphone
diff options
context:
space:
mode:
authorChristian <Christian_D_97@gmx.de>2013-11-24 11:14:19 -0800
committerChristian <Christian_D_97@gmx.de>2013-11-24 11:14:19 -0800
commit72081ea604af282ae7a5304dfcc689d8de735756 (patch)
tree161ca95e5fce06902ab9dc91b7644c632b0b448d /emergencyphone
parentd04d0c142f3826729c289ea52df1e85ad104dfdc (diff)
parent4fab78d25b26bb9111aa5d5da0511c8395f0c5ca (diff)
downloadroads-72081ea604af282ae7a5304dfcc689d8de735756.tar
roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.gz
roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.bz2
roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.xz
roads-72081ea604af282ae7a5304dfcc689d8de735756.zip
Merge pull request #3 from webdesigner97/indev
new release
Diffstat (limited to 'emergencyphone')
-rw-r--r--emergencyphone/init.lua44
1 files changed, 21 insertions, 23 deletions
diff --git a/emergencyphone/init.lua b/emergencyphone/init.lua
index 90124a8..2dc818f 100644
--- a/emergencyphone/init.lua
+++ b/emergencyphone/init.lua
@@ -1,27 +1,25 @@
--[[
StreetsMod: Emergency Phone
]]
-if streets.extendedBy.wool == true then
- minetest.register_node(":streets:emergencyphone",{
- description = "Emergency Phone",
- tiles = {"streets_sos_top.png","streets_sos_bottom.png","streets_sos_side.png","streets_sos_side.png","streets_sos_side.png","streets_sos_front.png"},
- groups = {cracky = 3},
- paramtype2 = "facedir",
- light_source = 5,
- on_rightclick = function(pos,node,clicker)
- if clicker:is_player() and clicker:get_hp() < 6 then
- clicker:set_hp(6)
- minetest.log("action",clicker:get_player_name() .. " healed by emergency phone at pos (" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ")")
- end
+minetest.register_node(":streets:emergencyphone",{
+ description = "Emergency Phone",
+ tiles = {"streets_sos_top.png","streets_sos_bottom.png","streets_sos_side.png","streets_sos_side.png","streets_sos_side.png","streets_sos_front.png"},
+ groups = {cracky = 3},
+ paramtype2 = "facedir",
+ light_source = 5,
+ on_rightclick = function(pos,node,clicker)
+ if clicker:is_player() and clicker:get_hp() < 6 then
+ clicker:set_hp(6)
+ minetest.log("action",clicker:get_player_name() .. " healed by emergency phone at pos (" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ")")
end
- })
- minetest.register_alias("streets:emergency_phone","streets:emergencyphone")
- minetest.register_craft({
- output = "streets:emergencyphone",
- recipe = {
- {"wool:orange","default:torch","wool:orange"},
- {"wool:orange","default:apple","wool:orange"},
- {"default:steel_ingot","default:diamondblock","default:steel_ingot"}
- }
- })
-end \ No newline at end of file
+ end
+ })
+ minetest.register_alias("streets:emergency_phone","streets:emergencyphone")
+minetest.register_craft({
+ output = "streets:emergencyphone",
+ recipe = {
+ {"wool:orange","default:torch","wool:orange"},
+ {"wool:orange","default:apple","wool:orange"},
+ {"default:steel_ingot","default:diamondblock","default:steel_ingot"}
+ }
+}) \ No newline at end of file