From b6b08a8ad899186bb28e984cbe217d843a44559b Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 10 Jan 2016 04:28:30 -0600 Subject: Redo pavement markings (full nodes only so far) --- infrastructure/crafts.lua | 106 ---- infrastructure/nodes.lua | 106 ---- .../textures/infrastructure_double_yellow_line.png | Bin 270 -> 0 bytes .../textures/infrastructure_single_yellow_line.png | Bin 231 -> 0 bytes .../infrastructure_single_yellow_line_corner.png | Bin 250 -> 0 bytes ...rastructure_solid_double_yellow_line_corner.png | Bin 239 -> 0 bytes .../infrastructure_solid_yellow_line_one_side.png | Bin 272 -> 0 bytes labels/init.lua | 561 +++++++++++++-------- .../textures/infrastructure_double_yellow_line.png | Bin 0 -> 270 bytes .../textures/infrastructure_single_yellow_line.png | Bin 0 -> 231 bytes .../infrastructure_single_yellow_line_corner.png | Bin 0 -> 250 bytes ...rastructure_solid_double_yellow_line_corner.png | Bin 0 -> 239 bytes .../infrastructure_solid_yellow_line_one_side.png | Bin 0 -> 272 bytes labels/textures/streets_arrow_alldirs.png | Bin 0 -> 7932 bytes labels/textures/streets_arrow_left.png | Bin 0 -> 7662 bytes labels/textures/streets_arrow_right.png | Bin 0 -> 7605 bytes labels/textures/streets_arrow_straight.png | Bin 0 -> 7564 bytes labels/textures/streets_arrow_straight_left.png | Bin 0 -> 7770 bytes labels/textures/streets_arrow_straight_right.png | Bin 0 -> 7719 bytes labels/textures/streets_asphalt_dashed_line.png | Bin 0 -> 7946 bytes labels/textures/streets_asphalt_outer_edge.png | Bin 0 -> 4526 bytes labels/textures/streets_asphalt_side.png | Bin 0 -> 3821 bytes labels/textures/streets_asphalt_side_r.png | Bin 0 -> 3812 bytes labels/textures/streets_asphalt_solid_line.png | Bin 0 -> 8003 bytes labels/textures/streets_parking.png | Bin 0 -> 6911 bytes labels/textures/streets_rw_arrow_left.png | Bin 0 -> 8954 bytes labels/textures/streets_rw_arrow_right.png | Bin 0 -> 8951 bytes labels/textures/streets_rw_arrow_straight.png | Bin 0 -> 8796 bytes labels/textures/streets_rw_arrow_straight_left.png | Bin 0 -> 9403 bytes .../textures/streets_rw_arrow_straight_right.png | Bin 0 -> 9306 bytes labels/textures/streets_rw_asphalt_side.png | Bin 0 -> 4190 bytes labels/textures/streets_rw_cross.png | Bin 0 -> 2586 bytes labels/textures/streets_rw_dashed_line.png | Bin 0 -> 7944 bytes .../textures/streets_rw_dashed_line_crossing.png | Bin 0 -> 3841 bytes labels/textures/streets_rw_dashed_line_curve.png | Bin 0 -> 3333 bytes .../textures/streets_rw_dashed_line_tjunction.png | Bin 0 -> 4099 bytes labels/textures/streets_rw_outer_edge.png | Bin 0 -> 5169 bytes labels/textures/streets_rw_parking.png | Bin 0 -> 8571 bytes labels/textures/streets_rw_solid_line.png | Bin 0 -> 8058 bytes labels/textures/streets_rw_solid_line_crossing.png | Bin 0 -> 4005 bytes labels/textures/streets_rw_solid_line_curve.png | Bin 0 -> 3657 bytes .../textures/streets_rw_solid_line_tjunction.png | Bin 0 -> 3702 bytes labels/textures/streets_rw_transparent.png | Bin 0 -> 3836 bytes roadworks/depends.txt | 3 - roadworks/init.lua | 353 ------------- streetsmod/textures/streets_arrow_alldirs.png | Bin 7932 -> 0 bytes streetsmod/textures/streets_arrow_left.png | Bin 7662 -> 0 bytes streetsmod/textures/streets_arrow_right.png | Bin 7605 -> 0 bytes streetsmod/textures/streets_arrow_straight.png | Bin 7564 -> 0 bytes .../textures/streets_arrow_straight_left.png | Bin 7770 -> 0 bytes .../textures/streets_arrow_straight_right.png | Bin 7719 -> 0 bytes .../textures/streets_asphalt_dashed_line.png | Bin 7946 -> 0 bytes streetsmod/textures/streets_asphalt_outer_edge.png | Bin 4526 -> 0 bytes streetsmod/textures/streets_asphalt_side.png | Bin 3821 -> 0 bytes streetsmod/textures/streets_asphalt_side_r.png | Bin 3812 -> 0 bytes streetsmod/textures/streets_asphalt_solid_line.png | Bin 8003 -> 0 bytes streetsmod/textures/streets_parking.png | Bin 6911 -> 0 bytes streetsmod/textures/streets_rw_arrow_left.png | Bin 8954 -> 0 bytes streetsmod/textures/streets_rw_arrow_right.png | Bin 8951 -> 0 bytes streetsmod/textures/streets_rw_arrow_straight.png | Bin 8796 -> 0 bytes .../textures/streets_rw_arrow_straight_left.png | Bin 9403 -> 0 bytes .../textures/streets_rw_arrow_straight_right.png | Bin 9306 -> 0 bytes streetsmod/textures/streets_rw_asphalt_side.png | Bin 4190 -> 0 bytes streetsmod/textures/streets_rw_cross.png | Bin 2586 -> 0 bytes streetsmod/textures/streets_rw_dashed_line.png | Bin 7944 -> 0 bytes .../textures/streets_rw_dashed_line_crossing.png | Bin 3841 -> 0 bytes .../textures/streets_rw_dashed_line_curve.png | Bin 3333 -> 0 bytes .../textures/streets_rw_dashed_line_tjunction.png | Bin 4099 -> 0 bytes streetsmod/textures/streets_rw_outer_edge.png | Bin 5169 -> 0 bytes streetsmod/textures/streets_rw_parking.png | Bin 8571 -> 0 bytes streetsmod/textures/streets_rw_solid_line.png | Bin 8058 -> 0 bytes .../textures/streets_rw_solid_line_crossing.png | Bin 4005 -> 0 bytes .../textures/streets_rw_solid_line_curve.png | Bin 3657 -> 0 bytes .../textures/streets_rw_solid_line_tjunction.png | Bin 3702 -> 0 bytes streetsmod/textures/streets_rw_transparent.png | Bin 3836 -> 0 bytes 75 files changed, 343 insertions(+), 786 deletions(-) delete mode 100644 infrastructure/textures/infrastructure_double_yellow_line.png delete mode 100644 infrastructure/textures/infrastructure_single_yellow_line.png delete mode 100644 infrastructure/textures/infrastructure_single_yellow_line_corner.png delete mode 100644 infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png delete mode 100644 infrastructure/textures/infrastructure_solid_yellow_line_one_side.png create mode 100644 labels/textures/infrastructure_double_yellow_line.png create mode 100644 labels/textures/infrastructure_single_yellow_line.png create mode 100644 labels/textures/infrastructure_single_yellow_line_corner.png create mode 100644 labels/textures/infrastructure_solid_double_yellow_line_corner.png create mode 100644 labels/textures/infrastructure_solid_yellow_line_one_side.png create mode 100644 labels/textures/streets_arrow_alldirs.png create mode 100644 labels/textures/streets_arrow_left.png create mode 100644 labels/textures/streets_arrow_right.png create mode 100644 labels/textures/streets_arrow_straight.png create mode 100644 labels/textures/streets_arrow_straight_left.png create mode 100644 labels/textures/streets_arrow_straight_right.png create mode 100644 labels/textures/streets_asphalt_dashed_line.png create mode 100644 labels/textures/streets_asphalt_outer_edge.png create mode 100644 labels/textures/streets_asphalt_side.png create mode 100644 labels/textures/streets_asphalt_side_r.png create mode 100644 labels/textures/streets_asphalt_solid_line.png create mode 100644 labels/textures/streets_parking.png create mode 100644 labels/textures/streets_rw_arrow_left.png create mode 100644 labels/textures/streets_rw_arrow_right.png create mode 100644 labels/textures/streets_rw_arrow_straight.png create mode 100644 labels/textures/streets_rw_arrow_straight_left.png create mode 100644 labels/textures/streets_rw_arrow_straight_right.png create mode 100644 labels/textures/streets_rw_asphalt_side.png create mode 100644 labels/textures/streets_rw_cross.png create mode 100644 labels/textures/streets_rw_dashed_line.png create mode 100644 labels/textures/streets_rw_dashed_line_crossing.png create mode 100644 labels/textures/streets_rw_dashed_line_curve.png create mode 100644 labels/textures/streets_rw_dashed_line_tjunction.png create mode 100644 labels/textures/streets_rw_outer_edge.png create mode 100644 labels/textures/streets_rw_parking.png create mode 100644 labels/textures/streets_rw_solid_line.png create mode 100644 labels/textures/streets_rw_solid_line_crossing.png create mode 100644 labels/textures/streets_rw_solid_line_curve.png create mode 100644 labels/textures/streets_rw_solid_line_tjunction.png create mode 100644 labels/textures/streets_rw_transparent.png delete mode 100644 roadworks/depends.txt delete mode 100644 roadworks/init.lua delete mode 100644 streetsmod/textures/streets_arrow_alldirs.png delete mode 100644 streetsmod/textures/streets_arrow_left.png delete mode 100644 streetsmod/textures/streets_arrow_right.png delete mode 100644 streetsmod/textures/streets_arrow_straight.png delete mode 100644 streetsmod/textures/streets_arrow_straight_left.png delete mode 100644 streetsmod/textures/streets_arrow_straight_right.png delete mode 100644 streetsmod/textures/streets_asphalt_dashed_line.png delete mode 100644 streetsmod/textures/streets_asphalt_outer_edge.png delete mode 100644 streetsmod/textures/streets_asphalt_side.png delete mode 100644 streetsmod/textures/streets_asphalt_side_r.png delete mode 100644 streetsmod/textures/streets_asphalt_solid_line.png delete mode 100644 streetsmod/textures/streets_parking.png delete mode 100644 streetsmod/textures/streets_rw_arrow_left.png delete mode 100644 streetsmod/textures/streets_rw_arrow_right.png delete mode 100644 streetsmod/textures/streets_rw_arrow_straight.png delete mode 100644 streetsmod/textures/streets_rw_arrow_straight_left.png delete mode 100644 streetsmod/textures/streets_rw_arrow_straight_right.png delete mode 100644 streetsmod/textures/streets_rw_asphalt_side.png delete mode 100644 streetsmod/textures/streets_rw_cross.png delete mode 100644 streetsmod/textures/streets_rw_dashed_line.png delete mode 100644 streetsmod/textures/streets_rw_dashed_line_crossing.png delete mode 100644 streetsmod/textures/streets_rw_dashed_line_curve.png delete mode 100644 streetsmod/textures/streets_rw_dashed_line_tjunction.png delete mode 100644 streetsmod/textures/streets_rw_outer_edge.png delete mode 100644 streetsmod/textures/streets_rw_parking.png delete mode 100644 streetsmod/textures/streets_rw_solid_line.png delete mode 100644 streetsmod/textures/streets_rw_solid_line_crossing.png delete mode 100644 streetsmod/textures/streets_rw_solid_line_curve.png delete mode 100644 streetsmod/textures/streets_rw_solid_line_tjunction.png delete mode 100644 streetsmod/textures/streets_rw_transparent.png 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/infrastructure/textures/infrastructure_double_yellow_line.png b/infrastructure/textures/infrastructure_double_yellow_line.png deleted file mode 100644 index 3f21c45..0000000 Binary files a/infrastructure/textures/infrastructure_double_yellow_line.png and /dev/null differ diff --git a/infrastructure/textures/infrastructure_single_yellow_line.png b/infrastructure/textures/infrastructure_single_yellow_line.png deleted file mode 100644 index a9ca74b..0000000 Binary files a/infrastructure/textures/infrastructure_single_yellow_line.png and /dev/null differ diff --git a/infrastructure/textures/infrastructure_single_yellow_line_corner.png b/infrastructure/textures/infrastructure_single_yellow_line_corner.png deleted file mode 100644 index a41d06a..0000000 Binary files a/infrastructure/textures/infrastructure_single_yellow_line_corner.png and /dev/null differ diff --git a/infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png b/infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png deleted file mode 100644 index 09a3719..0000000 Binary files a/infrastructure/textures/infrastructure_solid_double_yellow_line_corner.png and /dev/null differ diff --git a/infrastructure/textures/infrastructure_solid_yellow_line_one_side.png b/infrastructure/textures/infrastructure_solid_yellow_line_one_side.png deleted file mode 100644 index 0cff2e9..0000000 Binary files a/infrastructure/textures/infrastructure_solid_yellow_line_one_side.png and /dev/null differ 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/labels/textures/infrastructure_double_yellow_line.png b/labels/textures/infrastructure_double_yellow_line.png new file mode 100644 index 0000000..3f21c45 Binary files /dev/null and b/labels/textures/infrastructure_double_yellow_line.png differ diff --git a/labels/textures/infrastructure_single_yellow_line.png b/labels/textures/infrastructure_single_yellow_line.png new file mode 100644 index 0000000..a9ca74b Binary files /dev/null and b/labels/textures/infrastructure_single_yellow_line.png differ diff --git a/labels/textures/infrastructure_single_yellow_line_corner.png b/labels/textures/infrastructure_single_yellow_line_corner.png new file mode 100644 index 0000000..a41d06a Binary files /dev/null and b/labels/textures/infrastructure_single_yellow_line_corner.png differ diff --git a/labels/textures/infrastructure_solid_double_yellow_line_corner.png b/labels/textures/infrastructure_solid_double_yellow_line_corner.png new file mode 100644 index 0000000..09a3719 Binary files /dev/null and b/labels/textures/infrastructure_solid_double_yellow_line_corner.png differ diff --git a/labels/textures/infrastructure_solid_yellow_line_one_side.png b/labels/textures/infrastructure_solid_yellow_line_one_side.png new file mode 100644 index 0000000..0cff2e9 Binary files /dev/null and b/labels/textures/infrastructure_solid_yellow_line_one_side.png differ diff --git a/labels/textures/streets_arrow_alldirs.png b/labels/textures/streets_arrow_alldirs.png new file mode 100644 index 0000000..c31eeaa Binary files /dev/null and b/labels/textures/streets_arrow_alldirs.png differ diff --git a/labels/textures/streets_arrow_left.png b/labels/textures/streets_arrow_left.png new file mode 100644 index 0000000..d33a5eb Binary files /dev/null and b/labels/textures/streets_arrow_left.png differ diff --git a/labels/textures/streets_arrow_right.png b/labels/textures/streets_arrow_right.png new file mode 100644 index 0000000..ae6450d Binary files /dev/null and b/labels/textures/streets_arrow_right.png differ diff --git a/labels/textures/streets_arrow_straight.png b/labels/textures/streets_arrow_straight.png new file mode 100644 index 0000000..d4899b9 Binary files /dev/null and b/labels/textures/streets_arrow_straight.png differ diff --git a/labels/textures/streets_arrow_straight_left.png b/labels/textures/streets_arrow_straight_left.png new file mode 100644 index 0000000..2f5ddce Binary files /dev/null and b/labels/textures/streets_arrow_straight_left.png differ diff --git a/labels/textures/streets_arrow_straight_right.png b/labels/textures/streets_arrow_straight_right.png new file mode 100644 index 0000000..661d4bf Binary files /dev/null and b/labels/textures/streets_arrow_straight_right.png differ diff --git a/labels/textures/streets_asphalt_dashed_line.png b/labels/textures/streets_asphalt_dashed_line.png new file mode 100644 index 0000000..5a13fac Binary files /dev/null and b/labels/textures/streets_asphalt_dashed_line.png differ diff --git a/labels/textures/streets_asphalt_outer_edge.png b/labels/textures/streets_asphalt_outer_edge.png new file mode 100644 index 0000000..53c1489 Binary files /dev/null and b/labels/textures/streets_asphalt_outer_edge.png differ diff --git a/labels/textures/streets_asphalt_side.png b/labels/textures/streets_asphalt_side.png new file mode 100644 index 0000000..9edce81 Binary files /dev/null and b/labels/textures/streets_asphalt_side.png differ diff --git a/labels/textures/streets_asphalt_side_r.png b/labels/textures/streets_asphalt_side_r.png new file mode 100644 index 0000000..a067fda Binary files /dev/null and b/labels/textures/streets_asphalt_side_r.png differ diff --git a/labels/textures/streets_asphalt_solid_line.png b/labels/textures/streets_asphalt_solid_line.png new file mode 100644 index 0000000..0353aed Binary files /dev/null and b/labels/textures/streets_asphalt_solid_line.png differ diff --git a/labels/textures/streets_parking.png b/labels/textures/streets_parking.png new file mode 100644 index 0000000..a091ef5 Binary files /dev/null and b/labels/textures/streets_parking.png differ diff --git a/labels/textures/streets_rw_arrow_left.png b/labels/textures/streets_rw_arrow_left.png new file mode 100644 index 0000000..6a51a51 Binary files /dev/null and b/labels/textures/streets_rw_arrow_left.png differ diff --git a/labels/textures/streets_rw_arrow_right.png b/labels/textures/streets_rw_arrow_right.png new file mode 100644 index 0000000..05f503f Binary files /dev/null and b/labels/textures/streets_rw_arrow_right.png differ diff --git a/labels/textures/streets_rw_arrow_straight.png b/labels/textures/streets_rw_arrow_straight.png new file mode 100644 index 0000000..0c9e613 Binary files /dev/null and b/labels/textures/streets_rw_arrow_straight.png differ diff --git a/labels/textures/streets_rw_arrow_straight_left.png b/labels/textures/streets_rw_arrow_straight_left.png new file mode 100644 index 0000000..0429c81 Binary files /dev/null and b/labels/textures/streets_rw_arrow_straight_left.png differ diff --git a/labels/textures/streets_rw_arrow_straight_right.png b/labels/textures/streets_rw_arrow_straight_right.png new file mode 100644 index 0000000..02367d7 Binary files /dev/null and b/labels/textures/streets_rw_arrow_straight_right.png differ diff --git a/labels/textures/streets_rw_asphalt_side.png b/labels/textures/streets_rw_asphalt_side.png new file mode 100644 index 0000000..83c8a6e Binary files /dev/null and b/labels/textures/streets_rw_asphalt_side.png differ diff --git a/labels/textures/streets_rw_cross.png b/labels/textures/streets_rw_cross.png new file mode 100644 index 0000000..a1f34b0 Binary files /dev/null and b/labels/textures/streets_rw_cross.png differ diff --git a/labels/textures/streets_rw_dashed_line.png b/labels/textures/streets_rw_dashed_line.png new file mode 100644 index 0000000..4eb211e Binary files /dev/null and b/labels/textures/streets_rw_dashed_line.png differ diff --git a/labels/textures/streets_rw_dashed_line_crossing.png b/labels/textures/streets_rw_dashed_line_crossing.png new file mode 100644 index 0000000..bebe4c5 Binary files /dev/null and b/labels/textures/streets_rw_dashed_line_crossing.png differ diff --git a/labels/textures/streets_rw_dashed_line_curve.png b/labels/textures/streets_rw_dashed_line_curve.png new file mode 100644 index 0000000..4a59805 Binary files /dev/null and b/labels/textures/streets_rw_dashed_line_curve.png differ diff --git a/labels/textures/streets_rw_dashed_line_tjunction.png b/labels/textures/streets_rw_dashed_line_tjunction.png new file mode 100644 index 0000000..144480b Binary files /dev/null and b/labels/textures/streets_rw_dashed_line_tjunction.png differ diff --git a/labels/textures/streets_rw_outer_edge.png b/labels/textures/streets_rw_outer_edge.png new file mode 100644 index 0000000..54f16ea Binary files /dev/null and b/labels/textures/streets_rw_outer_edge.png differ diff --git a/labels/textures/streets_rw_parking.png b/labels/textures/streets_rw_parking.png new file mode 100644 index 0000000..aea7fb5 Binary files /dev/null and b/labels/textures/streets_rw_parking.png differ diff --git a/labels/textures/streets_rw_solid_line.png b/labels/textures/streets_rw_solid_line.png new file mode 100644 index 0000000..3396d63 Binary files /dev/null and b/labels/textures/streets_rw_solid_line.png differ diff --git a/labels/textures/streets_rw_solid_line_crossing.png b/labels/textures/streets_rw_solid_line_crossing.png new file mode 100644 index 0000000..4f911ed Binary files /dev/null and b/labels/textures/streets_rw_solid_line_crossing.png differ diff --git a/labels/textures/streets_rw_solid_line_curve.png b/labels/textures/streets_rw_solid_line_curve.png new file mode 100644 index 0000000..596983c Binary files /dev/null and b/labels/textures/streets_rw_solid_line_curve.png differ diff --git a/labels/textures/streets_rw_solid_line_tjunction.png b/labels/textures/streets_rw_solid_line_tjunction.png new file mode 100644 index 0000000..e6d11e7 Binary files /dev/null and b/labels/textures/streets_rw_solid_line_tjunction.png differ diff --git a/labels/textures/streets_rw_transparent.png b/labels/textures/streets_rw_transparent.png new file mode 100644 index 0000000..9f466f4 Binary files /dev/null and b/labels/textures/streets_rw_transparent.png differ 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 diff --git a/streetsmod/textures/streets_arrow_alldirs.png b/streetsmod/textures/streets_arrow_alldirs.png deleted file mode 100644 index c31eeaa..0000000 Binary files a/streetsmod/textures/streets_arrow_alldirs.png and /dev/null differ diff --git a/streetsmod/textures/streets_arrow_left.png b/streetsmod/textures/streets_arrow_left.png deleted file mode 100644 index d33a5eb..0000000 Binary files a/streetsmod/textures/streets_arrow_left.png and /dev/null differ diff --git a/streetsmod/textures/streets_arrow_right.png b/streetsmod/textures/streets_arrow_right.png deleted file mode 100644 index ae6450d..0000000 Binary files a/streetsmod/textures/streets_arrow_right.png and /dev/null differ diff --git a/streetsmod/textures/streets_arrow_straight.png b/streetsmod/textures/streets_arrow_straight.png deleted file mode 100644 index d4899b9..0000000 Binary files a/streetsmod/textures/streets_arrow_straight.png and /dev/null differ diff --git a/streetsmod/textures/streets_arrow_straight_left.png b/streetsmod/textures/streets_arrow_straight_left.png deleted file mode 100644 index 2f5ddce..0000000 Binary files a/streetsmod/textures/streets_arrow_straight_left.png and /dev/null differ diff --git a/streetsmod/textures/streets_arrow_straight_right.png b/streetsmod/textures/streets_arrow_straight_right.png deleted file mode 100644 index 661d4bf..0000000 Binary files a/streetsmod/textures/streets_arrow_straight_right.png and /dev/null differ diff --git a/streetsmod/textures/streets_asphalt_dashed_line.png b/streetsmod/textures/streets_asphalt_dashed_line.png deleted file mode 100644 index 5a13fac..0000000 Binary files a/streetsmod/textures/streets_asphalt_dashed_line.png and /dev/null differ diff --git a/streetsmod/textures/streets_asphalt_outer_edge.png b/streetsmod/textures/streets_asphalt_outer_edge.png deleted file mode 100644 index 53c1489..0000000 Binary files a/streetsmod/textures/streets_asphalt_outer_edge.png and /dev/null differ diff --git a/streetsmod/textures/streets_asphalt_side.png b/streetsmod/textures/streets_asphalt_side.png deleted file mode 100644 index 9edce81..0000000 Binary files a/streetsmod/textures/streets_asphalt_side.png and /dev/null differ diff --git a/streetsmod/textures/streets_asphalt_side_r.png b/streetsmod/textures/streets_asphalt_side_r.png deleted file mode 100644 index a067fda..0000000 Binary files a/streetsmod/textures/streets_asphalt_side_r.png and /dev/null differ diff --git a/streetsmod/textures/streets_asphalt_solid_line.png b/streetsmod/textures/streets_asphalt_solid_line.png deleted file mode 100644 index 0353aed..0000000 Binary files a/streetsmod/textures/streets_asphalt_solid_line.png and /dev/null differ diff --git a/streetsmod/textures/streets_parking.png b/streetsmod/textures/streets_parking.png deleted file mode 100644 index a091ef5..0000000 Binary files a/streetsmod/textures/streets_parking.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_arrow_left.png b/streetsmod/textures/streets_rw_arrow_left.png deleted file mode 100644 index 6a51a51..0000000 Binary files a/streetsmod/textures/streets_rw_arrow_left.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_arrow_right.png b/streetsmod/textures/streets_rw_arrow_right.png deleted file mode 100644 index 05f503f..0000000 Binary files a/streetsmod/textures/streets_rw_arrow_right.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_arrow_straight.png b/streetsmod/textures/streets_rw_arrow_straight.png deleted file mode 100644 index 0c9e613..0000000 Binary files a/streetsmod/textures/streets_rw_arrow_straight.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_arrow_straight_left.png b/streetsmod/textures/streets_rw_arrow_straight_left.png deleted file mode 100644 index 0429c81..0000000 Binary files a/streetsmod/textures/streets_rw_arrow_straight_left.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_arrow_straight_right.png b/streetsmod/textures/streets_rw_arrow_straight_right.png deleted file mode 100644 index 02367d7..0000000 Binary files a/streetsmod/textures/streets_rw_arrow_straight_right.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_asphalt_side.png b/streetsmod/textures/streets_rw_asphalt_side.png deleted file mode 100644 index 83c8a6e..0000000 Binary files a/streetsmod/textures/streets_rw_asphalt_side.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_cross.png b/streetsmod/textures/streets_rw_cross.png deleted file mode 100644 index a1f34b0..0000000 Binary files a/streetsmod/textures/streets_rw_cross.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_dashed_line.png b/streetsmod/textures/streets_rw_dashed_line.png deleted file mode 100644 index 4eb211e..0000000 Binary files a/streetsmod/textures/streets_rw_dashed_line.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_dashed_line_crossing.png b/streetsmod/textures/streets_rw_dashed_line_crossing.png deleted file mode 100644 index bebe4c5..0000000 Binary files a/streetsmod/textures/streets_rw_dashed_line_crossing.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_dashed_line_curve.png b/streetsmod/textures/streets_rw_dashed_line_curve.png deleted file mode 100644 index 4a59805..0000000 Binary files a/streetsmod/textures/streets_rw_dashed_line_curve.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_dashed_line_tjunction.png b/streetsmod/textures/streets_rw_dashed_line_tjunction.png deleted file mode 100644 index 144480b..0000000 Binary files a/streetsmod/textures/streets_rw_dashed_line_tjunction.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_outer_edge.png b/streetsmod/textures/streets_rw_outer_edge.png deleted file mode 100644 index 54f16ea..0000000 Binary files a/streetsmod/textures/streets_rw_outer_edge.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_parking.png b/streetsmod/textures/streets_rw_parking.png deleted file mode 100644 index aea7fb5..0000000 Binary files a/streetsmod/textures/streets_rw_parking.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_solid_line.png b/streetsmod/textures/streets_rw_solid_line.png deleted file mode 100644 index 3396d63..0000000 Binary files a/streetsmod/textures/streets_rw_solid_line.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_solid_line_crossing.png b/streetsmod/textures/streets_rw_solid_line_crossing.png deleted file mode 100644 index 4f911ed..0000000 Binary files a/streetsmod/textures/streets_rw_solid_line_crossing.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_solid_line_curve.png b/streetsmod/textures/streets_rw_solid_line_curve.png deleted file mode 100644 index 596983c..0000000 Binary files a/streetsmod/textures/streets_rw_solid_line_curve.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_solid_line_tjunction.png b/streetsmod/textures/streets_rw_solid_line_tjunction.png deleted file mode 100644 index e6d11e7..0000000 Binary files a/streetsmod/textures/streets_rw_solid_line_tjunction.png and /dev/null differ diff --git a/streetsmod/textures/streets_rw_transparent.png b/streetsmod/textures/streets_rw_transparent.png deleted file mode 100644 index 9f466f4..0000000 Binary files a/streetsmod/textures/streets_rw_transparent.png and /dev/null differ -- cgit v1.2.3