summaryrefslogtreecommitdiff
path: root/roadsigns
diff options
context:
space:
mode:
authorcrazyR14 <crazyR14@users.noreply.github.com>2014-04-04 19:43:04 +0100
committercrazyR14 <crazyR14@users.noreply.github.com>2014-04-04 19:43:04 +0100
commitb421e02b81fbe1c2cc20ed59349350d0186f9097 (patch)
tree80ed9fb852f3e5f4b12aedfcd39ffa4fde76364a /roadsigns
parent6557c46ead5d3a98c4b8b8fa0536d1ee2f680299 (diff)
downloadroads-b421e02b81fbe1c2cc20ed59349350d0186f9097.tar
roads-b421e02b81fbe1c2cc20ed59349350d0186f9097.tar.gz
roads-b421e02b81fbe1c2cc20ed59349350d0186f9097.tar.bz2
roads-b421e02b81fbe1c2cc20ed59349350d0186f9097.tar.xz
roads-b421e02b81fbe1c2cc20ed59349350d0186f9097.zip
Update signs.lua
Added infotext meta data to the signs for people that may not understand the images.
Diffstat (limited to 'roadsigns')
-rw-r--r--roadsigns/signs.lua30
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
+})