diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 20:02:19 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:09:33 -0400 |
commit | da66780a569712c23ae4f2996cfb4608a9f9d69d (patch) | |
tree | 217556029a78bc23ad4564720afc86de97228a04 /streets/emergencyphone | |
parent | 615b22df4d423aded3613db7716943a2f389b047 (diff) | |
download | dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2 dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip |
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'streets/emergencyphone')
-rw-r--r-- | streets/emergencyphone/depends.txt | 3 | ||||
-rw-r--r-- | streets/emergencyphone/init.lua | 25 |
2 files changed, 28 insertions, 0 deletions
diff --git a/streets/emergencyphone/depends.txt b/streets/emergencyphone/depends.txt new file mode 100644 index 0000000..f17a377 --- /dev/null +++ b/streets/emergencyphone/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +wool?
\ No newline at end of file diff --git a/streets/emergencyphone/init.lua b/streets/emergencyphone/init.lua new file mode 100644 index 0000000..8c25c65 --- /dev/null +++ b/streets/emergencyphone/init.lua @@ -0,0 +1,25 @@ +--[[ + StreetsMod: Emergency Phone +]] +minetest.register_node(":streets:emergencyphone",{ + description = streets.S("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 " .. minetest.pos_to_string(pos) .. "") + 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"} + } +})
\ No newline at end of file |