summaryrefslogtreecommitdiff
path: root/roadsigns
diff options
context:
space:
mode:
Diffstat (limited to 'roadsigns')
-rw-r--r--roadsigns/pole.lua4
-rw-r--r--roadsigns/signs.lua38
-rw-r--r--roadsigns/textures/streets_pole.pngbin2317 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_pole_inv.pngbin767 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_sign_back.pngbin1808 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_sign_construction.pngbin4007 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_sign_lava.pngbin4453 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_sign_water.pngbin3730 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_signworkshop_bottom.pngbin1942 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_signworkshop_front.pngbin2138 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_signworkshop_side.pngbin1888 -> 0 bytes
-rw-r--r--roadsigns/textures/streets_signworkshop_top.pngbin2026 -> 0 bytes
-rw-r--r--roadsigns/workshop.lua2
13 files changed, 32 insertions, 12 deletions
diff --git a/roadsigns/pole.lua b/roadsigns/pole.lua
index 478afb9..417ecdf 100644
--- a/roadsigns/pole.lua
+++ b/roadsigns/pole.lua
@@ -2,7 +2,7 @@
StreetsMod: Poles and signs
]]
minetest.register_node(":streets:pole_bottom",{
- description = "Pole",
+ description = S("Pole"),
tiles = {"streets_pole.png"},
groups = {cracky=2},
inventory_image = "streets_pole_inv.png",
@@ -42,7 +42,7 @@ minetest.register_node(":streets:pole_bottom",{
})
minetest.register_node(":streets:pole_top",{
- description = "Y u no play minetest without cheating?",
+ description = S("Y u no play minetest without cheating?"),
tiles = {"streets_pole.png"},
groups = {cracky=2,not_in_creative_inventory=1},
paramtype = "light",
diff --git a/roadsigns/signs.lua b/roadsigns/signs.lua
index 0992adf..d7878fd 100644
--- a/roadsigns/signs.lua
+++ b/roadsigns/signs.lua
@@ -1,5 +1,5 @@
minetest.register_node(":streets:sign_blank",{
- description = "Emtpy sign",
+ description = S("Emtpy sign"),
tiles = {"streets_sign_back.png"},
inventory_image = "streets_sign_back.png",
wield_image = "streets_sign_back.png",
@@ -23,10 +23,15 @@ 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)",
+ description = S("Warning sign (lava)"),
tiles = {"streets_sign_lava.png"},
inventory_image = "streets_sign_lava.png",
wield_image = "streets_sign_lava.png",
@@ -50,11 +55,16 @@ 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: Careful of lava")
+ end
})
minetest.register_node(":streets:sign_water",{
- description = "Warning sign (water)",
+ description = S("Warning sign (water)"),
tiles = {"streets_sign_water.png"},
inventory_image = "streets_sign_water.png",
wield_image = "streets_sign_water.png",
@@ -78,11 +88,16 @@ 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",{
- description = "Warning sign (Construction area)",
+ description = S("Warning sign (Construction area)"),
tiles = {"streets_sign_construction.png"},
inventory_image = "streets_sign_construction.png",
wield_image = "streets_sign_construction.png",
@@ -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
+})
diff --git a/roadsigns/textures/streets_pole.png b/roadsigns/textures/streets_pole.png
deleted file mode 100644
index 3fbed28..0000000
--- a/roadsigns/textures/streets_pole.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_pole_inv.png b/roadsigns/textures/streets_pole_inv.png
deleted file mode 100644
index fce2292..0000000
--- a/roadsigns/textures/streets_pole_inv.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_sign_back.png b/roadsigns/textures/streets_sign_back.png
deleted file mode 100644
index 77d4210..0000000
--- a/roadsigns/textures/streets_sign_back.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_sign_construction.png b/roadsigns/textures/streets_sign_construction.png
deleted file mode 100644
index f2c2455..0000000
--- a/roadsigns/textures/streets_sign_construction.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_sign_lava.png b/roadsigns/textures/streets_sign_lava.png
deleted file mode 100644
index e80f8e2..0000000
--- a/roadsigns/textures/streets_sign_lava.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_sign_water.png b/roadsigns/textures/streets_sign_water.png
deleted file mode 100644
index b941817..0000000
--- a/roadsigns/textures/streets_sign_water.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_signworkshop_bottom.png b/roadsigns/textures/streets_signworkshop_bottom.png
deleted file mode 100644
index 022bb2c..0000000
--- a/roadsigns/textures/streets_signworkshop_bottom.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_signworkshop_front.png b/roadsigns/textures/streets_signworkshop_front.png
deleted file mode 100644
index 83317b1..0000000
--- a/roadsigns/textures/streets_signworkshop_front.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_signworkshop_side.png b/roadsigns/textures/streets_signworkshop_side.png
deleted file mode 100644
index 509a3e3..0000000
--- a/roadsigns/textures/streets_signworkshop_side.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/textures/streets_signworkshop_top.png b/roadsigns/textures/streets_signworkshop_top.png
deleted file mode 100644
index 07f4f06..0000000
--- a/roadsigns/textures/streets_signworkshop_top.png
+++ /dev/null
Binary files differ
diff --git a/roadsigns/workshop.lua b/roadsigns/workshop.lua
index 9c68fb7..75cbf5a 100644
--- a/roadsigns/workshop.lua
+++ b/roadsigns/workshop.lua
@@ -36,7 +36,7 @@ local forms = {
}
}
minetest.register_node(":streets:signworkshop",{
- description = "Sign workshop",
+ description = S("Sign workshop"),
tiles = {"streets_signworkshop_top.png","streets_signworkshop_bottom.png","streets_signworkshop_side.png","streets_signworkshop_side.png","streets_signworkshop_side.png","streets_signworkshop_front.png"},
groups = {cracky = 1, level = 2},
paramtype2 = "facedir",