diff options
author | cheapie <no-email-for-you@example.com> | 2016-01-10 04:28:30 -0600 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2016-01-10 04:28:30 -0600 |
commit | b6b08a8ad899186bb28e984cbe217d843a44559b (patch) | |
tree | 0144f877a7735ece3113a66267fbd9f997db7616 | |
parent | f26a72d98d53ce34c57e6daeae58a736ebb3fa2e (diff) | |
download | roads-b6b08a8ad899186bb28e984cbe217d843a44559b.tar roads-b6b08a8ad899186bb28e984cbe217d843a44559b.tar.gz roads-b6b08a8ad899186bb28e984cbe217d843a44559b.tar.bz2 roads-b6b08a8ad899186bb28e984cbe217d843a44559b.tar.xz roads-b6b08a8ad899186bb28e984cbe217d843a44559b.zip |
Redo pavement markings (full nodes only so far)
-rw-r--r-- | infrastructure/crafts.lua | 106 | ||||
-rw-r--r-- | infrastructure/nodes.lua | 106 | ||||
-rw-r--r-- | labels/init.lua | 561 | ||||
-rw-r--r-- | labels/textures/infrastructure_double_yellow_line.png (renamed from infrastructure/textures/infrastructure_double_yellow_line.png) | bin | 270 -> 270 bytes | |||
-rw-r--r-- | labels/textures/infrastructure_single_yellow_line.png (renamed from infrastructure/textures/infrastructure_single_yellow_line.png) | bin | 231 -> 231 bytes | |||
-rw-r--r-- | labels/textures/infrastructure_single_yellow_line_corner.png (renamed from infrastructure/textures/infrastructure_single_yellow_line_corner.png) | bin | 250 -> 250 bytes | |||
-rw-r--r-- | labels/textures/infrastructure_solid_double_yellow_line_corner.png (renamed from infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png) | bin | 239 -> 239 bytes | |||
-rw-r--r-- | labels/textures/infrastructure_solid_yellow_line_one_side.png (renamed from infrastructure/textures/infrastructure_solid_yellow_line_one_side.png) | bin | 272 -> 272 bytes | |||
-rw-r--r-- | labels/textures/streets_arrow_alldirs.png (renamed from streetsmod/textures/streets_arrow_alldirs.png) | bin | 7932 -> 7932 bytes | |||
-rw-r--r-- | labels/textures/streets_arrow_left.png (renamed from streetsmod/textures/streets_arrow_left.png) | bin | 7662 -> 7662 bytes | |||
-rw-r--r-- | labels/textures/streets_arrow_right.png (renamed from streetsmod/textures/streets_arrow_right.png) | bin | 7605 -> 7605 bytes | |||
-rw-r--r-- | labels/textures/streets_arrow_straight.png (renamed from streetsmod/textures/streets_arrow_straight.png) | bin | 7564 -> 7564 bytes | |||
-rw-r--r-- | labels/textures/streets_arrow_straight_left.png (renamed from streetsmod/textures/streets_arrow_straight_left.png) | bin | 7770 -> 7770 bytes | |||
-rw-r--r-- | labels/textures/streets_arrow_straight_right.png (renamed from streetsmod/textures/streets_arrow_straight_right.png) | bin | 7719 -> 7719 bytes | |||
-rw-r--r-- | labels/textures/streets_asphalt_dashed_line.png (renamed from streetsmod/textures/streets_asphalt_dashed_line.png) | bin | 7946 -> 7946 bytes | |||
-rw-r--r-- | labels/textures/streets_asphalt_outer_edge.png (renamed from streetsmod/textures/streets_asphalt_outer_edge.png) | bin | 4526 -> 4526 bytes | |||
-rw-r--r-- | labels/textures/streets_asphalt_side.png (renamed from streetsmod/textures/streets_asphalt_side.png) | bin | 3821 -> 3821 bytes | |||
-rw-r--r-- | labels/textures/streets_asphalt_side_r.png (renamed from streetsmod/textures/streets_asphalt_side_r.png) | bin | 3812 -> 3812 bytes | |||
-rw-r--r-- | labels/textures/streets_asphalt_solid_line.png (renamed from streetsmod/textures/streets_asphalt_solid_line.png) | bin | 8003 -> 8003 bytes | |||
-rw-r--r-- | labels/textures/streets_parking.png (renamed from streetsmod/textures/streets_parking.png) | bin | 6911 -> 6911 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_arrow_left.png (renamed from streetsmod/textures/streets_rw_arrow_left.png) | bin | 8954 -> 8954 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_arrow_right.png (renamed from streetsmod/textures/streets_rw_arrow_right.png) | bin | 8951 -> 8951 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_arrow_straight.png (renamed from streetsmod/textures/streets_rw_arrow_straight.png) | bin | 8796 -> 8796 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_arrow_straight_left.png (renamed from streetsmod/textures/streets_rw_arrow_straight_left.png) | bin | 9403 -> 9403 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_arrow_straight_right.png (renamed from streetsmod/textures/streets_rw_arrow_straight_right.png) | bin | 9306 -> 9306 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_asphalt_side.png (renamed from streetsmod/textures/streets_rw_asphalt_side.png) | bin | 4190 -> 4190 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_cross.png (renamed from streetsmod/textures/streets_rw_cross.png) | bin | 2586 -> 2586 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_dashed_line.png (renamed from streetsmod/textures/streets_rw_dashed_line.png) | bin | 7944 -> 7944 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_dashed_line_crossing.png (renamed from streetsmod/textures/streets_rw_dashed_line_crossing.png) | bin | 3841 -> 3841 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_dashed_line_curve.png (renamed from streetsmod/textures/streets_rw_dashed_line_curve.png) | bin | 3333 -> 3333 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_dashed_line_tjunction.png (renamed from streetsmod/textures/streets_rw_dashed_line_tjunction.png) | bin | 4099 -> 4099 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_outer_edge.png (renamed from streetsmod/textures/streets_rw_outer_edge.png) | bin | 5169 -> 5169 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_parking.png (renamed from streetsmod/textures/streets_rw_parking.png) | bin | 8571 -> 8571 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_solid_line.png (renamed from streetsmod/textures/streets_rw_solid_line.png) | bin | 8058 -> 8058 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_solid_line_crossing.png (renamed from streetsmod/textures/streets_rw_solid_line_crossing.png) | bin | 4005 -> 4005 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_solid_line_curve.png (renamed from streetsmod/textures/streets_rw_solid_line_curve.png) | bin | 3657 -> 3657 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_solid_line_tjunction.png (renamed from streetsmod/textures/streets_rw_solid_line_tjunction.png) | bin | 3702 -> 3702 bytes | |||
-rw-r--r-- | labels/textures/streets_rw_transparent.png (renamed from streetsmod/textures/streets_rw_transparent.png) | bin | 3836 -> 3836 bytes | |||
-rw-r--r-- | roadworks/depends.txt | 3 | ||||
-rw-r--r-- | roadworks/init.lua | 353 |
40 files changed, 343 insertions, 786 deletions
diff --git a/infrastructure/crafts.lua b/infrastructure/crafts.lua index 4a324fe..9897892 100644 --- a/infrastructure/crafts.lua +++ b/infrastructure/crafts.lua @@ -23,112 +23,6 @@ }
})
--- **************************************************************************************************** CENTER LINES
-
--- Asphalt block with center dashed line
- minetest.register_craft({
- output = '"infrastructure:asphalt_center_dashed" 9',
- recipe = {
- {'infrastructure:asphalt', 'wool:yellow', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'wool:yellow', 'infrastructure:asphalt'}
- }
- })
-
--- Asphalt block with center solid line
- minetest.register_craft({
- output = '"infrastructure:asphalt_center_solid_line" 9',
- recipe = {
- {'infrastructure:asphalt', 'wool:yellow', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'wool:yellow', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'wool:yellow', 'infrastructure:asphalt'}
- }
- })
-
--- Asphalt block with center solid line on one side
- minetest.register_craft({
- output = '"infrastructure:asphalt_center_solid_one_side" 9',
- recipe = {
- {'wool:yellow', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:yellow', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:yellow', 'infrastructure:asphalt', 'infrastructure:asphalt'}
- }
- })
-
-
--- Asphalt block with center solid double line
- minetest.register_craft({
- output = '"infrastructure:asphalt_center_solid_double" 9',
- recipe = {
- {'wool:yellow', 'infrastructure:asphalt', 'wool:yellow'},
- {'wool:yellow', 'infrastructure:asphalt', 'wool:yellow'},
- {'wool:yellow', 'infrastructure:asphalt', 'wool:yellow'}
- }
- })
-
--- Asphalt block with center corner single line
- minetest.register_craft({
- output = '"infrastructure:asphalt_center_corner_single" 9',
- recipe = {
- {'infrastructure:asphalt', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'wool:yellow', 'wool:yellow'},
- {'infrastructure:asphalt', 'wool:yellow', 'infrastructure:asphalt'}
- }
- })
-
--- Asphalt block with center corner double line
- minetest.register_craft({
- output = '"infrastructure:asphalt_center_corner_double" 9',
- recipe = {
- {'wool:yellow', 'wool:yellow', 'wool:yellow'},
- {'wool:yellow', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:yellow', 'infrastructure:asphalt', 'wool:yellow'}
- }
- })
-
--- **************************************************************************************************** BORDER LINES
-
--- Asphalt block with side dashed line
- minetest.register_craft({
- output = '"infrastructure:asphalt_side_dashed" 9',
- recipe = {
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'}
- }
- })
-
--- Asphalt block with side solid line
- minetest.register_craft({
- output = '"infrastructure:asphalt_side_solid" 9',
- recipe = {
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'}
- }
- })
-
--- Asphalt block with lines for inner edge
- minetest.register_craft({
- output = '"infrastructure:asphalt_inner_edge" 9',
- recipe = {
- {'wool:white', 'wool:white', 'wool:white'},
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'}
- }
- })
-
--- Asphalt block with lines for outer edge
- minetest.register_craft({
- output = '"infrastructure:asphalt_outer_edge" 9',
- recipe = {
- {'infrastructure:asphalt', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'infrastructure:asphalt', 'infrastructure:asphalt', 'infrastructure:asphalt'},
- {'wool:white', 'infrastructure:asphalt', 'infrastructure:asphalt'}
- }
- })
-
-
-- **************************************************************************************************** PRECAST CONCRETE
-- Concrete seperating wall
diff --git a/infrastructure/nodes.lua b/infrastructure/nodes.lua index 33845c1..e0455ee 100644 --- a/infrastructure/nodes.lua +++ b/infrastructure/nodes.lua @@ -33,112 +33,6 @@ groups = {cracky = 2},
})
--- **************************************************************************************************** CENTER LINES
-
--- Asphalt block with center solid line
- minetest.register_node("infrastructure:asphalt_center_solid_line", {
- description = "Asphalt with center solid line",
- tiles = {
- "streets_asphalt.png^infrastructure_single_yellow_line.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- },
- drawtype = "normal",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 1},
- })
-
--- Asphalt block with center solid line on one side (for making dashed lines)
- minetest.register_node("infrastructure:asphalt_center_solid_one_side", {
- description = "Asphalt with center solid line on one side",
- tiles = {
- "streets_asphalt.png^infrastructure_solid_yellow_line_one_side.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- },
- drawtype = "normal",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 1},
- })
-
--- Asphalt block with center solid double line
- minetest.register_node("infrastructure:asphalt_center_solid_double", {
- description = "Asphalt with center solid double line",
- tiles = {
- "streets_asphalt.png^infrastructure_double_yellow_line.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- },
- drawtype = "normal",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 1},
- })
-
--- Asphalt block with center corner single line
- minetest.register_node("infrastructure:asphalt_center_corner_single", {
- description = "Asphalt with center corner single line",
- tiles = {
- "streets_asphalt.png^infrastructure_single_yellow_line_corner.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- },
- drawtype = "normal",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 1},
- })
-
--- Asphalt block with center corner double line
- minetest.register_node("infrastructure:asphalt_center_corner_double", {
- description = "Asphalt with center corner double line",
- tiles = {
- "streets_asphalt.png^infrastructure_solid_double_yellow_line_corner.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- "streets_asphalt.png",
- },
- drawtype = "normal",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {cracky = 1},
- })
-
--- **************************************************************************************************** TRAFFIC MARKS
-
--- Asphalt block with arrow straight
- minetest.register_alias("infrastructure:asphalt_arrow_straight", "streets:asphalt_arrow_straight")
-
--- Asphalt block with arrow straight + left
- minetest.register_alias("infrastructure:asphalt_arrow_straight_left", "streets:asphalt_arrow_straight_left")
-
--- Asphalt block with arrow straight + right
- minetest.register_alias("infrastructure:asphalt_arrow_straight_right", "streets:asphalt_arrow_straight_left")
-
--- Asphalt block with arrow left
- minetest.register_alias("infrastructure:asphalt_arrow_left", "streets:asphalt_arrow_left")
-
--- Asphalt block with arrow right
- minetest.register_alias("infrastructure:asphalt_arrow_right", "streets:asphalt_arrow_right")
-
--- Asphalt block with "P"-sign
- minetest.register_alias("infrastructure:asphalt_parking", "streets:asphalt_parking")
-- **************************************************************************************************** PRECAST CONCRETE
diff --git a/labels/init.lua b/labels/init.lua index ba2593f..c15a5ad 100644 --- a/labels/init.lua +++ b/labels/init.lua @@ -1,223 +1,348 @@ --[[ StreetsMod: All kinds of asphalt with labels ]] -minetest.register_node(":streets:asphalt_sideline",{ - description = streets.S("Asphalt with sideline"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_asphalt_side.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) - -minetest.register_alias("streets:asphalt_side","streets:asphalt_sideline") - -minetest.register_craft({ - output = "streets:asphalt_side 6", - recipe = { - {"dye:white","streets:asphalt","streets:asphalt"}, - {"dye:white","streets:asphalt","streets:asphalt"}, - {"dye:white","streets:asphalt","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_side_r",{ - description = streets.S("Asphalt with sideline (right)"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_asphalt_side_r.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) - -minetest.register_craft({ - output = "streets:asphalt_side", - recipe = { - {"streets:asphalt_side_r"}, - } -}) - -minetest.register_craft({ - output = "streets:asphalt_side_r", - recipe = { - {"streets:asphalt_side"}, - } -}) - -minetest.register_node(":streets:asphalt_solid_line",{ - description = streets.S("Asphalt with solid line"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_asphalt_solid_line.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) -minetest.register_alias("streets:asphalt_middle","streets:asphalt_solid_line") -minetest.register_craft({ - output = "streets:asphalt_solid_line 6", - recipe = { - {"streets:asphalt","dye:white","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_dashed_line",{ - description = streets.S("Asphalt with dashed line"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_asphalt_dashed_line.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) -minetest.register_alias("streets:asphalt_middle_dashed","streets:asphalt_dashed_line") -minetest.register_craft({ - output = "streets:asphalt_dashed_line 6", - recipe = { - {"streets:asphalt","dye:white","streets:asphalt"}, - {"streets:asphalt","streets:asphalt","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_outer_edge",{ - description = streets.S("Asphalt with sideline (edge)"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_asphalt_outer_edge.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) - -minetest.register_node(":streets:asphalt_outer_edge_r",{ - description = streets.S("Asphalt with sideline (edge, rotated)"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^(streets_asphalt_outer_edge.png^[transformR270)","streets_asphalt.png"}, - paramtype2 = "facedir" -}) - -minetest.register_craft({ - output = "streets:asphalt_outer_edge", - recipe = { - {"streets:asphalt_outer_edge_r"}, - } -}) - -minetest.register_craft({ - output = "streets:asphalt_outer_edge_r", - recipe = { - {"streets:asphalt_outer_edge"}, - } -}) - --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_outer_edge 4", - recipe = { + +streets.register_label = function(friendlyname,name,tex,craft) + minetest.register_node(":streets:mark_"..name,{ + description = streets.S("Marking Overlay: "..friendlyname), + tiles = {tex,"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, + inventory_image = tex, + wield_image = tex, + after_place_node = function(pos) + local node = minetest.get_node(pos) + local lower_pos = {x = pos.x, y = pos.y-1, z = pos.z} + local lower_node = minetest.get_node(lower_pos) + if lower_node.name == "streets:asphalt" then + lower_node.name = "streets:mark_"..(node.name:sub(14)).."_on_asphalt" + lower_node.param2 = node.param2 + minetest.set_node(lower_pos,lower_node) + minetest.remove_node(pos) + end + end, + node_box = { + type = "fixed", + fixed = {-0.5,-0.5,-0.5,0.5,-0.499,0.5} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } + }) + + minetest.register_node(":streets:mark_"..name.."_on_asphalt",{ + description = streets.S("Asphalt With Marking: "..friendlyname), + groups = {cracky=3}, + tiles = {"streets_asphalt.png^"..tex,"streets_asphalt.png"}, + paramtype2 = "facedir" + }) + + minetest.register_craft({ + output = "streets:mark_"..name.."_on_asphalt", + type = "shapeless", + recipe = {"streets:asphalt","streets:mark_"..name} + }) + + minetest.register_craft({ + output = "streets:mark_"..name.." 6", + recipe = craft + }) +end + + +--White Markings +streets.register_label("Solid White Side Line","solid_white_side_line","streets_asphalt_side.png",{ + {"dye:white","",""}, + {"dye:white","",""}, + {"dye:white","",""} + }) + +minetest.register_alias("streets:asphalt_side","streets:mark_solid_white_side_line_on_asphalt") +minetest.register_alias("streets:asphalt_sideline","streets:mark_solid_white_side_line_on_asphalt") + +streets.register_label("Solid White Side Line (rotated)","solid_white_side_line_rotated","streets_asphalt_side.png^[transformR180",{{"streets:mark_solid_white_side_line"}}) + +minetest.register_alias("streets:asphalt_sideline_r","streets:mark_solid_white_side_line_rotated_on_asphalt") + + +streets.register_label("Solid White Center Line","solid_white_center_line","streets_asphalt_solid_line.png",{ + {"","dye:white",""}, + {"","dye:white",""}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_middle","streets:mark_solid_white_center_line_on_asphalt") +minetest.register_alias("streets:asphalt_solid_line","streets:mark_solid_white_center_line_on_asphalt") + + +streets.register_label("Dashed White Center Line","dashed_white_center_line","streets_asphalt_dashed_line.png",{ + {"","dye:white",""}, + {"","",""}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_middle_dashed","streets:mark_dashed_white_center_line_on_asphalt") +minetest.register_alias("streets:asphalt_dashed_line","streets:mark_dashed_white_center_line_on_asphalt") + + +streets.register_label("Solid White Side Line (corner)","solid_white_side_line_corner","streets_asphalt_outer_edge.png",{ {"dye:white","dye:white","dye:white"}, - {"dye:white","streets:asphalt","streets:asphalt"}, - {"dye:white","streets:asphalt","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_parking",{ - description = streets.S("Asphalt with parking label"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_parking.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_parking 4", - recipe = { - {"streets:asphalt","dye:white","dye:white"}, - {"streets:asphalt","dye:white","dye:white"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_arrow_straight",{ - description = streets.S("Asphalt with arrow"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_arrow_straight.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_arrow_straight 4", - recipe = { - {"streets:asphalt","streets:asphalt","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_arrow_left",{ - description = streets.S("Asphalt with arrow"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_arrow_left.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_arrow_left 4", - recipe = { - {"streets:asphalt","streets:asphalt","streets:asphalt"}, - {"dye:white","dye:white","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_arrow_right",{ - description = streets.S("Asphalt with arrow"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_arrow_right.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_arrow_right 4", - recipe = { - {"streets:asphalt","streets:asphalt","streets:asphalt"}, - {"streets:asphalt","dye:white","dye:white"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_arrow_straight_left",{ - description = streets.S("Asphalt with arrow"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_arrow_straight_left.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_arrow_straight_left 4", - recipe = { - {"streets:asphalt","dye:white","streets:asphalt"}, - {"dye:white","dye:white","streets:asphalt"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_arrow_straight_right",{ - description = streets.S("Asphalt with arrow"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_arrow_straight_right.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_arrow_straight_right 4", - recipe = { - {"streets:asphalt","dye:white","streets:asphalt"}, - {"streets:asphalt","dye:white","dye:white"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) - -minetest.register_node(":streets:asphalt_arrow_alldirs",{ - description = streets.S("Asphalt with arrow"), - groups = {cracky=3}, - tiles = {"streets_asphalt.png^streets_arrow_alldirs.png","streets_asphalt.png"}, - paramtype2 = "facedir" -}) --- no minetest.register_alias() needed -minetest.register_craft({ - output = "streets:asphalt_arrow_alldirs 4", - recipe = { - {"streets:asphalt","dye:white","streets:asphalt"}, + {"dye:white","",""}, + {"dye:white","",""} + }) + +minetest.register_alias("streets:asphalt_outer_edge","streets:mark_solid_white_side_line_corner_on_asphalt") + + +streets.register_label("Solid White Side Line (corner, rotated)","solid_white_side_line_corner_rotated","streets_asphalt_outer_edge.png^[transformR270",{{"streets:mark_solid_white_line_corner"}}) + +minetest.register_alias("streets:asphalt_outer_edge_r","streets:mark_solid_white_side_line_corner_rotated_on_asphalt") + + +streets.register_label("Parking (white)","white_parking","streets_parking.png",{ + {"","dye:white","dye:white"}, + {"","dye:white","dye:white"}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_parking","streets:mark_white_parking_on_asphalt") + + +streets.register_label("White Arrow (straight)","white_arrow_straight","streets_arrow_straight.png",{ + {"","",""}, + {"","dye:white",""}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_arrow_straight","streets:mark_white_arrow_straight_on_asphalt") + + +streets.register_label("White Arrow (left)","white_arrow_left","streets_arrow_left.png",{ + {"","",""}, + {"dye:white","dye:white",""}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_arrow_left","streets:mark_white_arrow_left_on_asphalt") + + +streets.register_label("White Arrow (right)","white_arrow_right","streets_arrow_right.png",{ + {"","",""}, + {"","dye:white","dye:white"}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_arrow_right","streets:mark_white_arrow_right_on_asphalt") + + +streets.register_label("White Arrow (left+straight)","white_arrow_left_straight","streets_arrow_straight_left.png",{ + {"","dye:white",""}, + {"dye:white","dye:white",""}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_arrow_straight_left","streets:mark_white_arrow_left_straight_on_asphalt") + + +streets.register_label("White Arrow (straight+right)","white_arrow_straight_right","streets_arrow_straight_right.png",{ + {"","dye:white",""}, + {"","dye:white","dye:white"}, + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_arrow_straight_right","streets:mark_white_arrow_straight_right_on_asphalt") + + +streets.register_label("White Arrow (left+straight+right)","white_arrow_left_straight_right","streets_arrow_alldirs.png",{ + {"","dye:white",""}, {"dye:white","dye:white","dye:white"}, - {"streets:asphalt","dye:white","streets:asphalt"} - } -}) + {"","dye:white",""} + }) + +minetest.register_alias("streets:asphalt_arrow_alldirs","streets:mark_white_arrow_left_straight_right_on_asphalt") + + +--Yellow streetsmod markings + +streets.register_label("Solid Yellow Center Line","solid_yellow_center_line","streets_rw_solid_line.png",{ + {"","dye:yellow",""}, + {"","dye:yellow",""}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_asphalt_solid","streets:mark_solid_yellow_center_line") + + +streets.register_label("Dashed Yellow Center Line","dashed_yellow_center_line","streets_rw_dashed_line.png",{ + {"","dye:yellow",""}, + {"","",""}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_asphalt_dashed","streets:mark_dashed_yellow_center_line") + + +streets.register_label("Yellow X","yellow_x","streets_rw_cross.png",{ + {"dye:yellow","","dye:yellow"}, + {"","dye:yellow",""}, + {"dye:yellow","","dye:yellow"} + }) + +minetest.register_alias("streets:rw_cross","streets:mark_yellow_x") + + +streets.register_label("Solid Yellow Side Line (corner)","solid_yellow_side_line_corner","streets_rw_outer_edge.png",{ + {"dye:yellow","dye:yellow","dye:yellow"}, + {"dye:yellow","",""}, + {"dye:yellow","",""} + }) + +minetest.register_alias("streets:rw_outer_edge","streets:solid_yellow_side_line_corner") + + +streets.register_label("Solid Yellow Side Line (corner,rotated)","solid_yellow_side_line_corner_rotated","streets_rw_outer_edge.png^[transformR270",{{"streets:mark_solid_yellow_side_line_corner"}}) + +minetest.register_alias("streets:rw_outer_edge","streets:solid_yellow_side_line_corner") + + +streets.register_label("Parking (yellow)","yellow_parking","streets_rw_parking.png",{ + {"","dye:yellow","dye:yellow"}, + {"","dye:yellow","dye:yellow"}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_parking","streets:mark_yellow_parking") + + +streets.register_label("Yellow Arrow (straight)","yellow_arrow_straight","streets_rw_arrow_straight.png",{ + {"","",""}, + {"","dye:yellow",""}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_straight","streets:mark_yellow_arrow_straight") + + +streets.register_label("Yellow Arrow (left)","yellow_arrow_left","streets_rw_arrow_left.png",{ + {"","",""}, + {"dye:yellow","dye:yellow",""}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_left","streets:mark_yellow_arrow_left") + + +streets.register_label("Yellow Arrow (right)","yellow_arrow_right","streets_rw_arrow_right.png",{ + {"","",""}, + {"","dye:yellow","dye:yellow"}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_right","streets:mark_yellow_arrow_right") + + +streets.register_label("Yellow Arrow (left+straight)","yellow_arrow_left_straight","streets_rw_arrow_straight_left.png",{ + {"","dye:yellow",""}, + {"dye:yellow","dye:yellow",""}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_straight_left","streets:mark_yellow_arrow_left_straight") + + +streets.register_label("Yellow Arrow (straight+right)","yellow_arrow_straight_right","streets_rw_arrow_straight_right.png",{ + {"","dye:yellow",""}, + {"","dye:yellow","dye:yellow"}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_straight_right","streets:mark_yellow_arrow_straight_right") + + +streets.register_label("Yellow Arrow (left+straight+right)","yellow_arrow_left_straight_right","streets_rw_arrow_alldirs.png",{ + {"","dye:yellow",""}, + {"dye:yellow","dye:yellow","dye:yellow"}, + {"","dye:yellow",""} + }) + +minetest.register_alias("streets:rw_alldirs","streets:mark_yellow_arrow_left_straight_right") + +streets.register_label("Solid Yellow Side Line","solid_yellow_side_line","streets_rw_asphalt_side.png",{ + {"dye:yellow","",""}, + {"dye:yellow","",""}, + {"dye:yellow","",""} + }) + +minetest.register_alias("streets:rw_sideline","streets:mark_solid_yellow_side_line") + +streets.register_label("Solid Yellow Side Line (rotated)","solid_yellow_side_line_rotated","streets_rw_asphalt_side.png^[transformR180",{{"streets:mark_solid_yellow_side_line"}}) + + +--Infrastructure markings + +streets.register_label("Solid Yellow Center Line (wide)","solid_yellow_center_line_wide","infrastructure_single_yellow_line.png",{ + {"","",""}, + {"dye:yellow","dye:yellow","dye:yellow"}, + {"","",""} + }) + +minetest.register_alias("infrastructure:asphalt_center_solid_line","streets:mark_solid_yellow_center_line_wide_on_asphalt") + + +streets.register_label("Solid Yellow Center Line (wide,offset)","solid_yellow_center_line_wide_offset","infrastructure_solid_yellow_line_one_side.png",{ + {"","",""}, + {"","",""}, + {"dye:yellow","dye:yellow","dye:yellow"} + }) + +minetest.register_alias("infrastructure:asphalt_center_solid_one_side","streets:mark_solid_yellow_center_line_wide_offset_on_asphalt") + + +streets.register_label("Double Yellow Center Line (wide)","double_yellow_center_line_wide","infrastructure_double_yellow_line.png",{ + {"dye:yellow","dye:yellow","dye:yellow"}, + {"","",""}, + {"dye:yellow","dye:yellow","dye:yellow"} + }) + +minetest.register_alias("infrastructure:asphalt_center_solid_double","streets:mark_double_yellow_center_line_wide_on_asphalt") + + +streets.register_label("Solid Yellow Center Line (wide,corner)","solid_yellow_center_line_wide_corner","infrastructure_single_yellow_line_corner.png",{ + {"","dye:yellow","dye:yellow"}, + {"","dye:yellow",""}, + {"","dye:yellow",""} + }) + +minetest.register_alias("infrastructure:asphalt_center_corner_single","streets:mark_solid_yellow_center_line_wide_corner_on_asphalt") + + +streets.register_label("Double Yellow Center Line (wide,corner)","double_yellow_center_line_wide_corner","infrastructure_solid_double_yellow_line_corner.png",{ + {"dye:yellow","dye:yellow","dye:yellow"}, + {"dye:yellow","",""}, + {"dye:yellow","","dye:yellow"} + }) + +minetest.register_alias("infrastructure:asphalt_center_corner_double","streets:mark_double_yellow_center_line_wide_corner_on_asphalt") + + +minetest.register_alias("infrastructure:asphalt_arrow_straight", "streets:asphalt_arrow_straight") + + +minetest.register_alias("infrastructure:asphalt_arrow_straight_left", "streets:asphalt_arrow_straight_left") + + +minetest.register_alias("infrastructure:asphalt_arrow_straight_right", "streets:asphalt_arrow_straight_left") + + +minetest.register_alias("infrastructure:asphalt_arrow_left", "streets:asphalt_arrow_left") + + +minetest.register_alias("infrastructure:asphalt_arrow_right", "streets:asphalt_arrow_right") + + +minetest.register_alias("infrastructure:asphalt_parking", "streets:asphalt_parking") diff --git a/infrastructure/textures/infrastructure_double_yellow_line.png b/labels/textures/infrastructure_double_yellow_line.png Binary files differindex 3f21c45..3f21c45 100644 --- a/infrastructure/textures/infrastructure_double_yellow_line.png +++ b/labels/textures/infrastructure_double_yellow_line.png diff --git a/infrastructure/textures/infrastructure_single_yellow_line.png b/labels/textures/infrastructure_single_yellow_line.png Binary files differindex a9ca74b..a9ca74b 100644 --- a/infrastructure/textures/infrastructure_single_yellow_line.png +++ b/labels/textures/infrastructure_single_yellow_line.png diff --git a/infrastructure/textures/infrastructure_single_yellow_line_corner.png b/labels/textures/infrastructure_single_yellow_line_corner.png Binary files differindex a41d06a..a41d06a 100644 --- a/infrastructure/textures/infrastructure_single_yellow_line_corner.png +++ b/labels/textures/infrastructure_single_yellow_line_corner.png diff --git a/infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png b/labels/textures/infrastructure_solid_double_yellow_line_corner.png Binary files differindex 09a3719..09a3719 100644 --- a/infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png +++ b/labels/textures/infrastructure_solid_double_yellow_line_corner.png diff --git a/infrastructure/textures/infrastructure_solid_yellow_line_one_side.png b/labels/textures/infrastructure_solid_yellow_line_one_side.png Binary files differindex 0cff2e9..0cff2e9 100644 --- a/infrastructure/textures/infrastructure_solid_yellow_line_one_side.png +++ b/labels/textures/infrastructure_solid_yellow_line_one_side.png diff --git a/streetsmod/textures/streets_arrow_alldirs.png b/labels/textures/streets_arrow_alldirs.png Binary files differindex c31eeaa..c31eeaa 100644 --- a/streetsmod/textures/streets_arrow_alldirs.png +++ b/labels/textures/streets_arrow_alldirs.png diff --git a/streetsmod/textures/streets_arrow_left.png b/labels/textures/streets_arrow_left.png Binary files differindex d33a5eb..d33a5eb 100644 --- a/streetsmod/textures/streets_arrow_left.png +++ b/labels/textures/streets_arrow_left.png diff --git a/streetsmod/textures/streets_arrow_right.png b/labels/textures/streets_arrow_right.png Binary files differindex ae6450d..ae6450d 100644 --- a/streetsmod/textures/streets_arrow_right.png +++ b/labels/textures/streets_arrow_right.png diff --git a/streetsmod/textures/streets_arrow_straight.png b/labels/textures/streets_arrow_straight.png Binary files differindex d4899b9..d4899b9 100644 --- a/streetsmod/textures/streets_arrow_straight.png +++ b/labels/textures/streets_arrow_straight.png diff --git a/streetsmod/textures/streets_arrow_straight_left.png b/labels/textures/streets_arrow_straight_left.png Binary files differindex 2f5ddce..2f5ddce 100644 --- a/streetsmod/textures/streets_arrow_straight_left.png +++ b/labels/textures/streets_arrow_straight_left.png diff --git a/streetsmod/textures/streets_arrow_straight_right.png b/labels/textures/streets_arrow_straight_right.png Binary files differindex 661d4bf..661d4bf 100644 --- a/streetsmod/textures/streets_arrow_straight_right.png +++ b/labels/textures/streets_arrow_straight_right.png diff --git a/streetsmod/textures/streets_asphalt_dashed_line.png b/labels/textures/streets_asphalt_dashed_line.png Binary files differindex 5a13fac..5a13fac 100644 --- a/streetsmod/textures/streets_asphalt_dashed_line.png +++ b/labels/textures/streets_asphalt_dashed_line.png diff --git a/streetsmod/textures/streets_asphalt_outer_edge.png b/labels/textures/streets_asphalt_outer_edge.png Binary files differindex 53c1489..53c1489 100644 --- a/streetsmod/textures/streets_asphalt_outer_edge.png +++ b/labels/textures/streets_asphalt_outer_edge.png diff --git a/streetsmod/textures/streets_asphalt_side.png b/labels/textures/streets_asphalt_side.png Binary files differindex 9edce81..9edce81 100644 --- a/streetsmod/textures/streets_asphalt_side.png +++ b/labels/textures/streets_asphalt_side.png diff --git a/streetsmod/textures/streets_asphalt_side_r.png b/labels/textures/streets_asphalt_side_r.png Binary files differindex a067fda..a067fda 100644 --- a/streetsmod/textures/streets_asphalt_side_r.png +++ b/labels/textures/streets_asphalt_side_r.png diff --git a/streetsmod/textures/streets_asphalt_solid_line.png b/labels/textures/streets_asphalt_solid_line.png Binary files differindex 0353aed..0353aed 100644 --- a/streetsmod/textures/streets_asphalt_solid_line.png +++ b/labels/textures/streets_asphalt_solid_line.png diff --git a/streetsmod/textures/streets_parking.png b/labels/textures/streets_parking.png Binary files differindex a091ef5..a091ef5 100644 --- a/streetsmod/textures/streets_parking.png +++ b/labels/textures/streets_parking.png diff --git a/streetsmod/textures/streets_rw_arrow_left.png b/labels/textures/streets_rw_arrow_left.png Binary files differindex 6a51a51..6a51a51 100644 --- a/streetsmod/textures/streets_rw_arrow_left.png +++ b/labels/textures/streets_rw_arrow_left.png diff --git a/streetsmod/textures/streets_rw_arrow_right.png b/labels/textures/streets_rw_arrow_right.png Binary files differindex 05f503f..05f503f 100644 --- a/streetsmod/textures/streets_rw_arrow_right.png +++ b/labels/textures/streets_rw_arrow_right.png diff --git a/streetsmod/textures/streets_rw_arrow_straight.png b/labels/textures/streets_rw_arrow_straight.png Binary files differindex 0c9e613..0c9e613 100644 --- a/streetsmod/textures/streets_rw_arrow_straight.png +++ b/labels/textures/streets_rw_arrow_straight.png diff --git a/streetsmod/textures/streets_rw_arrow_straight_left.png b/labels/textures/streets_rw_arrow_straight_left.png Binary files differindex 0429c81..0429c81 100644 --- a/streetsmod/textures/streets_rw_arrow_straight_left.png +++ b/labels/textures/streets_rw_arrow_straight_left.png diff --git a/streetsmod/textures/streets_rw_arrow_straight_right.png b/labels/textures/streets_rw_arrow_straight_right.png Binary files differindex 02367d7..02367d7 100644 --- a/streetsmod/textures/streets_rw_arrow_straight_right.png +++ b/labels/textures/streets_rw_arrow_straight_right.png diff --git a/streetsmod/textures/streets_rw_asphalt_side.png b/labels/textures/streets_rw_asphalt_side.png Binary files differindex 83c8a6e..83c8a6e 100644 --- a/streetsmod/textures/streets_rw_asphalt_side.png +++ b/labels/textures/streets_rw_asphalt_side.png diff --git a/streetsmod/textures/streets_rw_cross.png b/labels/textures/streets_rw_cross.png Binary files differindex a1f34b0..a1f34b0 100644 --- a/streetsmod/textures/streets_rw_cross.png +++ b/labels/textures/streets_rw_cross.png diff --git a/streetsmod/textures/streets_rw_dashed_line.png b/labels/textures/streets_rw_dashed_line.png Binary files differindex 4eb211e..4eb211e 100644 --- a/streetsmod/textures/streets_rw_dashed_line.png +++ b/labels/textures/streets_rw_dashed_line.png diff --git a/streetsmod/textures/streets_rw_dashed_line_crossing.png b/labels/textures/streets_rw_dashed_line_crossing.png Binary files differindex bebe4c5..bebe4c5 100644 --- a/streetsmod/textures/streets_rw_dashed_line_crossing.png +++ b/labels/textures/streets_rw_dashed_line_crossing.png diff --git a/streetsmod/textures/streets_rw_dashed_line_curve.png b/labels/textures/streets_rw_dashed_line_curve.png Binary files differindex 4a59805..4a59805 100644 --- a/streetsmod/textures/streets_rw_dashed_line_curve.png +++ b/labels/textures/streets_rw_dashed_line_curve.png diff --git a/streetsmod/textures/streets_rw_dashed_line_tjunction.png b/labels/textures/streets_rw_dashed_line_tjunction.png Binary files differindex 144480b..144480b 100644 --- a/streetsmod/textures/streets_rw_dashed_line_tjunction.png +++ b/labels/textures/streets_rw_dashed_line_tjunction.png diff --git a/streetsmod/textures/streets_rw_outer_edge.png b/labels/textures/streets_rw_outer_edge.png Binary files differindex 54f16ea..54f16ea 100644 --- a/streetsmod/textures/streets_rw_outer_edge.png +++ b/labels/textures/streets_rw_outer_edge.png diff --git a/streetsmod/textures/streets_rw_parking.png b/labels/textures/streets_rw_parking.png Binary files differindex aea7fb5..aea7fb5 100644 --- a/streetsmod/textures/streets_rw_parking.png +++ b/labels/textures/streets_rw_parking.png diff --git a/streetsmod/textures/streets_rw_solid_line.png b/labels/textures/streets_rw_solid_line.png Binary files differindex 3396d63..3396d63 100644 --- a/streetsmod/textures/streets_rw_solid_line.png +++ b/labels/textures/streets_rw_solid_line.png diff --git a/streetsmod/textures/streets_rw_solid_line_crossing.png b/labels/textures/streets_rw_solid_line_crossing.png Binary files differindex 4f911ed..4f911ed 100644 --- a/streetsmod/textures/streets_rw_solid_line_crossing.png +++ b/labels/textures/streets_rw_solid_line_crossing.png diff --git a/streetsmod/textures/streets_rw_solid_line_curve.png b/labels/textures/streets_rw_solid_line_curve.png Binary files differindex 596983c..596983c 100644 --- a/streetsmod/textures/streets_rw_solid_line_curve.png +++ b/labels/textures/streets_rw_solid_line_curve.png diff --git a/streetsmod/textures/streets_rw_solid_line_tjunction.png b/labels/textures/streets_rw_solid_line_tjunction.png Binary files differindex e6d11e7..e6d11e7 100644 --- a/streetsmod/textures/streets_rw_solid_line_tjunction.png +++ b/labels/textures/streets_rw_solid_line_tjunction.png diff --git a/streetsmod/textures/streets_rw_transparent.png b/labels/textures/streets_rw_transparent.png Binary files differindex 9f466f4..9f466f4 100644 --- a/streetsmod/textures/streets_rw_transparent.png +++ b/labels/textures/streets_rw_transparent.png diff --git a/roadworks/depends.txt b/roadworks/depends.txt deleted file mode 100644 index f17a377..0000000 --- a/roadworks/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -default -streetsmod -wool?
\ No newline at end of file diff --git a/roadworks/init.lua b/roadworks/init.lua deleted file mode 100644 index 43dfbbc..0000000 --- a/roadworks/init.lua +++ /dev/null @@ -1,353 +0,0 @@ ---[[ - StreetsMod: Yellow labels for construction areas on roads, - which "override" the white ones. - Construction area fence. -]] -local box = {-0.5,-0.5,-0.5,0.5,-0.45,0.5} - -minetest.register_node(":streets:rw_asphalt_solid",{ - description = streets.S("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, - 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 = streets.S("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, - 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 = streets.S("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, - inventory_image = "streets_rw_cross.png", - wield_image = "streets_rw_cross.png", - selection_box = { - type = "wallmounted" - } -}) - -minetest.register_node(":streets:rw_outer_edge",{ - description = streets.S("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, - inventory_image = "streets_rw_outer_edge.png", - wield_image = "streets_rw_outer_edge.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_parking.png", - wield_image = "streets_rw_parking.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_arrow_alldirs.png", - wield_image = "streets_rw_arrow_alldirs.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_arrow_left.png", - wield_image = "streets_rw_arrow_left.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_arrow_right.png", - wield_image = "streets_rw_arrow_right.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_arrow_straight_right.png", - wield_image = "streets_rw_arrow_straight_right.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_arrow_straight_left.png", - wield_image = "streets_rw_arrow_straight_left.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_arrow_straight.png", - wield_image = "streets_rw_arrow_straight.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = streets.S("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, - inventory_image = "streets_rw_asphalt_side.png", - wield_image = "streets_rw_asphalt_side.png", - node_box = { - type = "fixed", - fixed = box - }, - 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 = { - {"","dye:yellow",""}, - {"","dye:yellow",""}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_sideline 3", - recipe = { - {"dye:yellow","dye:yellow",""}, - {"dye:yellow","dye:yellow",""}, - {"dye:yellow","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_asphalt_dashed 3", - recipe = { - {"","dye:yellow",""}, - {"","",""}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_cross 3", - recipe = { - {"dye:yellow","","dye:yellow"}, - {"","dye:yellow",""}, - {"dye:yellow","","dye:yellow"} - } -}) - -minetest.register_craft({ - output = "streets:rw_outer_edge 3", - recipe = { - {"dye:yellow","dye:yellow","dye:yellow"}, - {"dye:yellow","",""}, - {"dye:yellow","",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_parking 3", - recipe = { - {"","dye:yellow","dye:yellow"}, - {"","dye:yellow","dye:yellow"}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_alldirs 3", - recipe = { - {"","dye:yellow",""}, - {"dye:yellow","dye:yellow","dye:yellow"}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_left 3", - recipe = { - {"","",""}, - {"dye:yellow","dye:yellow",""}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_right 3", - recipe = { - {"","",""}, - {"","dye:yellow","dye:yellow"}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_straight_left 3", - recipe = { - {"","dye:yellow",""}, - {"dye:yellow","dye:yellow",""}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_straight_right 3", - recipe = { - {"","dye:yellow",""}, - {"","dye:yellow","dye:yellow"}, - {"","dye:yellow",""} - } -}) - -minetest.register_craft({ - output = "streets:rw_straight 3", - recipe = { - {"","",""}, - {"","dye:yellow",""}, - {"","dye:yellow",""} - } -})
\ No newline at end of file |