summaryrefslogtreecommitdiff
path: root/roadworks
diff options
context:
space:
mode:
authorChristian Danscheid <Christian_D_97@gmx.de>2013-08-10 19:23:52 +0200
committerChristian Danscheid <Christian_D_97@gmx.de>2013-08-10 19:23:52 +0200
commit7bda846ea7f8c3ad127b167e6c7a797bfd46f73f (patch)
tree37c4d4cc80cb2b11452d24df057e485c54687eb4 /roadworks
downloadroads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar
roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar.gz
roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar.bz2
roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar.xz
roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.zip
Initial commit
Diffstat (limited to 'roadworks')
-rw-r--r--roadworks/depends.txt3
-rw-r--r--roadworks/init.lua363
-rw-r--r--roadworks/textures/streets_rw_arrow_alldirs.pngbin0 -> 9866 bytes
-rw-r--r--roadworks/textures/streets_rw_arrow_left.pngbin0 -> 8954 bytes
-rw-r--r--roadworks/textures/streets_rw_arrow_right.pngbin0 -> 8951 bytes
-rw-r--r--roadworks/textures/streets_rw_arrow_straight.pngbin0 -> 8796 bytes
-rw-r--r--roadworks/textures/streets_rw_arrow_straight_left.pngbin0 -> 9403 bytes
-rw-r--r--roadworks/textures/streets_rw_arrow_straight_right.pngbin0 -> 9306 bytes
-rw-r--r--roadworks/textures/streets_rw_asphalt_side.pngbin0 -> 4190 bytes
-rw-r--r--roadworks/textures/streets_rw_cross.pngbin0 -> 2586 bytes
-rw-r--r--roadworks/textures/streets_rw_dashed_line.pngbin0 -> 7944 bytes
-rw-r--r--roadworks/textures/streets_rw_dashed_line_crossing.pngbin0 -> 3841 bytes
-rw-r--r--roadworks/textures/streets_rw_dashed_line_curve.pngbin0 -> 3333 bytes
-rw-r--r--roadworks/textures/streets_rw_dashed_line_tjunction.pngbin0 -> 4099 bytes
-rw-r--r--roadworks/textures/streets_rw_outer_edge.pngbin0 -> 5169 bytes
-rw-r--r--roadworks/textures/streets_rw_parking.pngbin0 -> 8571 bytes
-rw-r--r--roadworks/textures/streets_rw_solid_line.pngbin0 -> 8058 bytes
-rw-r--r--roadworks/textures/streets_rw_solid_line_crossing.pngbin0 -> 4005 bytes
-rw-r--r--roadworks/textures/streets_rw_solid_line_curve.pngbin0 -> 3657 bytes
-rw-r--r--roadworks/textures/streets_rw_solid_line_tjunction.pngbin0 -> 3702 bytes
-rw-r--r--roadworks/textures/streets_rw_transparent.pngbin0 -> 3836 bytes
21 files changed, 366 insertions, 0 deletions
diff --git a/roadworks/depends.txt b/roadworks/depends.txt
new file mode 100644
index 0000000..f17a377
--- /dev/null
+++ b/roadworks/depends.txt
@@ -0,0 +1,3 @@
+default
+streetsmod
+wool? \ No newline at end of file
diff --git a/roadworks/init.lua b/roadworks/init.lua
new file mode 100644
index 0000000..2ea69c5
--- /dev/null
+++ b/roadworks/init.lua
@@ -0,0 +1,363 @@
+--[[
+ StreetsMod: Yellow labels for construction areas on roads,
+ which "override" the white ones.
+ Construction area fence.
+]]
+minetest.register_node(":streets:rw_asphalt_solid",{
+ description = "Solid line (yellow)",
+ tiles = {"streets_rw_solid_line.png","streets_rw_solid_line_curve.png","streets_rw_solid_line_tjunction.png","streets_rw_solid_line_crossing.png"},
+ drawtype = "raillike",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_solid_line.png",
+ wield_image = "streets_rw_solid_line.png",
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
+ }
+})
+
+minetest.register_node(":streets:rw_asphalt_dashed",{
+ description = "Dashed line (yellow)",
+ tiles = {"streets_rw_dashed_line.png","streets_rw_dashed_line_curve.png","streets_rw_dashed_line_tjunction.png","streets_rw_dashed_line_crossing.png"},
+ drawtype = "raillike",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_dashed_line.png",
+ wield_image = "streets_rw_dashed_line.png",
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
+ }
+})
+
+minetest.register_node(":streets:rw_cross",{
+ description = "Cross (yellow)",
+ tiles = {"streets_rw_cross.png"},
+ drawtype = "signlike",
+ paramtype = "light",
+ paramtype2 = "wallmounted",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_cross.png",
+ wield_image = "streets_rw_cross.png",
+ selection_box = {
+ type = "wallmounted"
+ }
+})
+
+minetest.register_node(":streets:rw_outer_edge",{
+ description = "Outer edge (yellow)",
+ tiles = {"streets_rw_outer_edge.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_outer_edge.png",
+ wield_image = "streets_rw_outer_edge.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_parking",{
+ description = "Parking (yellow)",
+ tiles = {"streets_rw_parking.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_parking.png",
+ wield_image = "streets_rw_parking.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_alldirs",{
+ description = "Arrow (yellow)",
+ tiles = {"streets_rw_arrow_alldirs.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_arrow_alldirs.png",
+ wield_image = "streets_rw_arrow_alldirs.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_left",{
+ description = "Arrow (yellow)",
+ tiles = {"streets_rw_arrow_left.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_arrow_left.png",
+ wield_image = "streets_rw_arrow_left.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_right",{
+ description = "Arrow (yellow)",
+ tiles = {"streets_rw_arrow_right.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_arrow_right.png",
+ wield_image = "streets_rw_arrow_right.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_straight_right",{
+ description = "Arrow (yellow)",
+ tiles = {"streets_rw_arrow_straight_right.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_arrow_straight_right.png",
+ wield_image = "streets_rw_arrow_straight_right.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_straight_left",{
+ description = "Arrow (yellow)",
+ tiles = {"streets_rw_arrow_straight_left.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_arrow_straight_left.png",
+ wield_image = "streets_rw_arrow_straight_left.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_straight",{
+ description = "Arrow (yellow)",
+ tiles = {"streets_rw_arrow_straight.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_arrow_straight.png",
+ wield_image = "streets_rw_arrow_straight.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_node(":streets:rw_sideline",{
+ description = "Sideline (yellow)",
+ tiles = {"streets_rw_asphalt_side.png","streets_rw_transparent.png"},
+ drawtype = "nodebox",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1},
+ sunlight_propagates = true,
+ walkable = false,
+ buildable_to = true,
+ inventory_image = "streets_rw_asphalt_side.png",
+ wield_image = "streets_rw_asphalt_side.png",
+ node_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2}
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_asphalt_solid 3",
+ recipe = {
+ {"","wool:yellow",""},
+ {"","wool:yellow",""},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_sideline 3",
+ recipe = {
+ {"wool:yellow","wool:yellow",""},
+ {"wool:yellow","wool:yellow",""},
+ {"wool:yellow","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_asphalt_dashed 3",
+ recipe = {
+ {"","wool:yellow",""},
+ {"","",""},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_cross 3",
+ recipe = {
+ {"wool:yellow","","wool:yellow"},
+ {"","wool:yellow",""},
+ {"wool:yellow","","wool:yellow"}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_outer_edge 3",
+ recipe = {
+ {"wool:yellow","wool:yellow","wool:yellow"},
+ {"wool:yellow","",""},
+ {"wool:yellow","",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_parking 3",
+ recipe = {
+ {"","wool:yellow","wool:yellow"},
+ {"","wool:yellow","wool:yellow"},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_alldirs 3",
+ recipe = {
+ {"","wool:yellow",""},
+ {"wool:yellow","wool:yellow","wool:yellow"},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_left 3",
+ recipe = {
+ {"","",""},
+ {"wool:yellow","wool:yellow",""},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_right 3",
+ recipe = {
+ {"","",""},
+ {"","wool:yellow","wool:yellow"},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_straight_left 3",
+ recipe = {
+ {"","wool:yellow",""},
+ {"wool:yellow","wool:yellow",""},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_straight_right 3",
+ recipe = {
+ {"","wool:yellow",""},
+ {"","wool:yellow","wool:yellow"},
+ {"","wool:yellow",""}
+ }
+})
+
+minetest.register_craft({
+ output = "streets:rw_straight 3",
+ recipe = {
+ {"","",""},
+ {"","wool:yellow",""},
+ {"","wool:yellow",""}
+ }
+}) \ No newline at end of file
diff --git a/roadworks/textures/streets_rw_arrow_alldirs.png b/roadworks/textures/streets_rw_arrow_alldirs.png
new file mode 100644
index 0000000..532280e
--- /dev/null
+++ b/roadworks/textures/streets_rw_arrow_alldirs.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_arrow_left.png b/roadworks/textures/streets_rw_arrow_left.png
new file mode 100644
index 0000000..6a51a51
--- /dev/null
+++ b/roadworks/textures/streets_rw_arrow_left.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_arrow_right.png b/roadworks/textures/streets_rw_arrow_right.png
new file mode 100644
index 0000000..05f503f
--- /dev/null
+++ b/roadworks/textures/streets_rw_arrow_right.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_arrow_straight.png b/roadworks/textures/streets_rw_arrow_straight.png
new file mode 100644
index 0000000..0c9e613
--- /dev/null
+++ b/roadworks/textures/streets_rw_arrow_straight.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_arrow_straight_left.png b/roadworks/textures/streets_rw_arrow_straight_left.png
new file mode 100644
index 0000000..0429c81
--- /dev/null
+++ b/roadworks/textures/streets_rw_arrow_straight_left.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_arrow_straight_right.png b/roadworks/textures/streets_rw_arrow_straight_right.png
new file mode 100644
index 0000000..02367d7
--- /dev/null
+++ b/roadworks/textures/streets_rw_arrow_straight_right.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_asphalt_side.png b/roadworks/textures/streets_rw_asphalt_side.png
new file mode 100644
index 0000000..83c8a6e
--- /dev/null
+++ b/roadworks/textures/streets_rw_asphalt_side.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_cross.png b/roadworks/textures/streets_rw_cross.png
new file mode 100644
index 0000000..a1f34b0
--- /dev/null
+++ b/roadworks/textures/streets_rw_cross.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_dashed_line.png b/roadworks/textures/streets_rw_dashed_line.png
new file mode 100644
index 0000000..4eb211e
--- /dev/null
+++ b/roadworks/textures/streets_rw_dashed_line.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_dashed_line_crossing.png b/roadworks/textures/streets_rw_dashed_line_crossing.png
new file mode 100644
index 0000000..bebe4c5
--- /dev/null
+++ b/roadworks/textures/streets_rw_dashed_line_crossing.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_dashed_line_curve.png b/roadworks/textures/streets_rw_dashed_line_curve.png
new file mode 100644
index 0000000..4a59805
--- /dev/null
+++ b/roadworks/textures/streets_rw_dashed_line_curve.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_dashed_line_tjunction.png b/roadworks/textures/streets_rw_dashed_line_tjunction.png
new file mode 100644
index 0000000..144480b
--- /dev/null
+++ b/roadworks/textures/streets_rw_dashed_line_tjunction.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_outer_edge.png b/roadworks/textures/streets_rw_outer_edge.png
new file mode 100644
index 0000000..54f16ea
--- /dev/null
+++ b/roadworks/textures/streets_rw_outer_edge.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_parking.png b/roadworks/textures/streets_rw_parking.png
new file mode 100644
index 0000000..aea7fb5
--- /dev/null
+++ b/roadworks/textures/streets_rw_parking.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_solid_line.png b/roadworks/textures/streets_rw_solid_line.png
new file mode 100644
index 0000000..3396d63
--- /dev/null
+++ b/roadworks/textures/streets_rw_solid_line.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_solid_line_crossing.png b/roadworks/textures/streets_rw_solid_line_crossing.png
new file mode 100644
index 0000000..4f911ed
--- /dev/null
+++ b/roadworks/textures/streets_rw_solid_line_crossing.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_solid_line_curve.png b/roadworks/textures/streets_rw_solid_line_curve.png
new file mode 100644
index 0000000..596983c
--- /dev/null
+++ b/roadworks/textures/streets_rw_solid_line_curve.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_solid_line_tjunction.png b/roadworks/textures/streets_rw_solid_line_tjunction.png
new file mode 100644
index 0000000..e6d11e7
--- /dev/null
+++ b/roadworks/textures/streets_rw_solid_line_tjunction.png
Binary files differ
diff --git a/roadworks/textures/streets_rw_transparent.png b/roadworks/textures/streets_rw_transparent.png
new file mode 100644
index 0000000..9f466f4
--- /dev/null
+++ b/roadworks/textures/streets_rw_transparent.png
Binary files differ