From 7bda846ea7f8c3ad127b167e6c7a797bfd46f73f Mon Sep 17 00:00:00 2001 From: Christian Danscheid Date: Sat, 10 Aug 2013 19:23:52 +0200 Subject: Initial commit --- emergencyphone/depends.txt | 3 +++ emergencyphone/init.lua | 27 +++++++++++++++++++++++++ emergencyphone/textures/streets_sos_bottom.png | Bin 0 -> 1961 bytes emergencyphone/textures/streets_sos_front.png | Bin 0 -> 2990 bytes emergencyphone/textures/streets_sos_side.png | Bin 0 -> 2529 bytes emergencyphone/textures/streets_sos_top.png | Bin 0 -> 8219 bytes 6 files changed, 30 insertions(+) create mode 100644 emergencyphone/depends.txt create mode 100644 emergencyphone/init.lua create mode 100644 emergencyphone/textures/streets_sos_bottom.png create mode 100644 emergencyphone/textures/streets_sos_front.png create mode 100644 emergencyphone/textures/streets_sos_side.png create mode 100644 emergencyphone/textures/streets_sos_top.png (limited to 'emergencyphone') diff --git a/emergencyphone/depends.txt b/emergencyphone/depends.txt new file mode 100644 index 0000000..f17a377 --- /dev/null +++ b/emergencyphone/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +wool? \ No newline at end of file diff --git a/emergencyphone/init.lua b/emergencyphone/init.lua new file mode 100644 index 0000000..90124a8 --- /dev/null +++ b/emergencyphone/init.lua @@ -0,0 +1,27 @@ +--[[ + 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 + 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 diff --git a/emergencyphone/textures/streets_sos_bottom.png b/emergencyphone/textures/streets_sos_bottom.png new file mode 100644 index 0000000..0437ef1 Binary files /dev/null and b/emergencyphone/textures/streets_sos_bottom.png differ diff --git a/emergencyphone/textures/streets_sos_front.png b/emergencyphone/textures/streets_sos_front.png new file mode 100644 index 0000000..80e2c25 Binary files /dev/null and b/emergencyphone/textures/streets_sos_front.png differ diff --git a/emergencyphone/textures/streets_sos_side.png b/emergencyphone/textures/streets_sos_side.png new file mode 100644 index 0000000..af83757 Binary files /dev/null and b/emergencyphone/textures/streets_sos_side.png differ diff --git a/emergencyphone/textures/streets_sos_top.png b/emergencyphone/textures/streets_sos_top.png new file mode 100644 index 0000000..2b5790f Binary files /dev/null and b/emergencyphone/textures/streets_sos_top.png differ -- cgit v1.2.3