diff options
author | Christian <Christian_D_97@gmx.de> | 2014-04-04 21:28:07 +0200 |
---|---|---|
committer | Christian <Christian_D_97@gmx.de> | 2014-04-04 21:28:07 +0200 |
commit | 893a2da6624991771dde8057b1fb4483e6181f49 (patch) | |
tree | 80ed9fb852f3e5f4b12aedfcd39ffa4fde76364a | |
parent | 6557c46ead5d3a98c4b8b8fa0536d1ee2f680299 (diff) | |
parent | b421e02b81fbe1c2cc20ed59349350d0186f9097 (diff) | |
download | roads-893a2da6624991771dde8057b1fb4483e6181f49.tar roads-893a2da6624991771dde8057b1fb4483e6181f49.tar.gz roads-893a2da6624991771dde8057b1fb4483e6181f49.tar.bz2 roads-893a2da6624991771dde8057b1fb4483e6181f49.tar.xz roads-893a2da6624991771dde8057b1fb4483e6181f49.zip |
Merge pull request #7 from crazyR14/master
Added infotext meta data to the signs for people that may not understand the images.
-rw-r--r-- | roadsigns/signs.lua | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/roadsigns/signs.lua b/roadsigns/signs.lua index 0992adf..7d3aa44 100644 --- a/roadsigns/signs.lua +++ b/roadsigns/signs.lua @@ -23,7 +23,12 @@ minetest.register_node(":streets:sign_blank",{ recipe = {"default:steel_ingot","","",""}, time = 3 } - } + }, + after_place_node = function(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("infotext", "Empty Sign") + end }) minetest.register_node(":streets:sign_lava",{ description = "Warning sign (lava)", @@ -50,7 +55,12 @@ minetest.register_node(":streets:sign_lava",{ recipe = {"streets:sign_blank","bucket:bucket_lava","",""}, time = 5 } - } + }, + after_place_node = function(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("infotext", "Warning: Carefull of lava") + end }) minetest.register_node(":streets:sign_water",{ @@ -78,7 +88,12 @@ minetest.register_node(":streets:sign_water",{ recipe = {"streets:sign_blank","bucket:bucket_water","",""}, time = 5 } - } + }, + after_place_node = function(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("infotext", "Warning: Water Nearby") + end }) minetest.register_node(":streets:sign_construction",{ @@ -106,5 +121,10 @@ minetest.register_node(":streets:sign_construction",{ recipe = {"streets:sign_blank","default:dirt","",""}, time = 5 } - } -})
\ No newline at end of file + }, + after_place_node = function(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("infotext", "Warning: Construction area, possible deep excavations") + end +}) |