diff options
Diffstat (limited to 'roadworks')
21 files changed, 366 insertions, 0 deletions
diff --git a/roadworks/depends.txt b/roadworks/depends.txt new file mode 100644 index 0000000..f17a377 --- /dev/null +++ b/roadworks/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +wool?
\ No newline at end of file diff --git a/roadworks/init.lua b/roadworks/init.lua new file mode 100644 index 0000000..2ea69c5 --- /dev/null +++ b/roadworks/init.lua @@ -0,0 +1,363 @@ +--[[ + StreetsMod: Yellow labels for construction areas on roads, + which "override" the white ones. + Construction area fence. +]] +minetest.register_node(":streets:rw_asphalt_solid",{ + description = "Solid line (yellow)", + tiles = {"streets_rw_solid_line.png","streets_rw_solid_line_curve.png","streets_rw_solid_line_tjunction.png","streets_rw_solid_line_crossing.png"}, + drawtype = "raillike", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_solid_line.png", + wield_image = "streets_rw_solid_line.png", + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + } +}) + +minetest.register_node(":streets:rw_asphalt_dashed",{ + description = "Dashed line (yellow)", + tiles = {"streets_rw_dashed_line.png","streets_rw_dashed_line_curve.png","streets_rw_dashed_line_tjunction.png","streets_rw_dashed_line_crossing.png"}, + drawtype = "raillike", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_dashed_line.png", + wield_image = "streets_rw_dashed_line.png", + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + } +}) + +minetest.register_node(":streets:rw_cross",{ + description = "Cross (yellow)", + tiles = {"streets_rw_cross.png"}, + drawtype = "signlike", + paramtype = "light", + paramtype2 = "wallmounted", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_cross.png", + wield_image = "streets_rw_cross.png", + selection_box = { + type = "wallmounted" + } +}) + +minetest.register_node(":streets:rw_outer_edge",{ + description = "Outer edge (yellow)", + tiles = {"streets_rw_outer_edge.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_outer_edge.png", + wield_image = "streets_rw_outer_edge.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_parking",{ + description = "Parking (yellow)", + tiles = {"streets_rw_parking.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_parking.png", + wield_image = "streets_rw_parking.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_alldirs",{ + description = "Arrow (yellow)", + tiles = {"streets_rw_arrow_alldirs.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_arrow_alldirs.png", + wield_image = "streets_rw_arrow_alldirs.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_left",{ + description = "Arrow (yellow)", + tiles = {"streets_rw_arrow_left.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_arrow_left.png", + wield_image = "streets_rw_arrow_left.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_right",{ + description = "Arrow (yellow)", + tiles = {"streets_rw_arrow_right.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_arrow_right.png", + wield_image = "streets_rw_arrow_right.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_straight_right",{ + description = "Arrow (yellow)", + tiles = {"streets_rw_arrow_straight_right.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_arrow_straight_right.png", + wield_image = "streets_rw_arrow_straight_right.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_straight_left",{ + description = "Arrow (yellow)", + tiles = {"streets_rw_arrow_straight_left.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_arrow_straight_left.png", + wield_image = "streets_rw_arrow_straight_left.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_straight",{ + description = "Arrow (yellow)", + tiles = {"streets_rw_arrow_straight.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_arrow_straight.png", + wield_image = "streets_rw_arrow_straight.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_node(":streets:rw_sideline",{ + description = "Sideline (yellow)", + tiles = {"streets_rw_asphalt_side.png","streets_rw_transparent.png"}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy = 3,attached_node = 1,oddly_breakable_by_hand = 1}, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + inventory_image = "streets_rw_asphalt_side.png", + wield_image = "streets_rw_asphalt_side.png", + node_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -0.495, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2} + } +}) + +minetest.register_craft({ + output = "streets:rw_asphalt_solid 3", + recipe = { + {"","wool:yellow",""}, + {"","wool:yellow",""}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_sideline 3", + recipe = { + {"wool:yellow","wool:yellow",""}, + {"wool:yellow","wool:yellow",""}, + {"wool:yellow","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_asphalt_dashed 3", + recipe = { + {"","wool:yellow",""}, + {"","",""}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_cross 3", + recipe = { + {"wool:yellow","","wool:yellow"}, + {"","wool:yellow",""}, + {"wool:yellow","","wool:yellow"} + } +}) + +minetest.register_craft({ + output = "streets:rw_outer_edge 3", + recipe = { + {"wool:yellow","wool:yellow","wool:yellow"}, + {"wool:yellow","",""}, + {"wool:yellow","",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_parking 3", + recipe = { + {"","wool:yellow","wool:yellow"}, + {"","wool:yellow","wool:yellow"}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_alldirs 3", + recipe = { + {"","wool:yellow",""}, + {"wool:yellow","wool:yellow","wool:yellow"}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_left 3", + recipe = { + {"","",""}, + {"wool:yellow","wool:yellow",""}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_right 3", + recipe = { + {"","",""}, + {"","wool:yellow","wool:yellow"}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_straight_left 3", + recipe = { + {"","wool:yellow",""}, + {"wool:yellow","wool:yellow",""}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_straight_right 3", + recipe = { + {"","wool:yellow",""}, + {"","wool:yellow","wool:yellow"}, + {"","wool:yellow",""} + } +}) + +minetest.register_craft({ + output = "streets:rw_straight 3", + recipe = { + {"","",""}, + {"","wool:yellow",""}, + {"","wool:yellow",""} + } +})
\ No newline at end of file diff --git a/roadworks/textures/streets_rw_arrow_alldirs.png b/roadworks/textures/streets_rw_arrow_alldirs.png Binary files differnew file mode 100644 index 0000000..532280e --- /dev/null +++ b/roadworks/textures/streets_rw_arrow_alldirs.png diff --git a/roadworks/textures/streets_rw_arrow_left.png b/roadworks/textures/streets_rw_arrow_left.png Binary files differnew file mode 100644 index 0000000..6a51a51 --- /dev/null +++ b/roadworks/textures/streets_rw_arrow_left.png diff --git a/roadworks/textures/streets_rw_arrow_right.png b/roadworks/textures/streets_rw_arrow_right.png Binary files differnew file mode 100644 index 0000000..05f503f --- /dev/null +++ b/roadworks/textures/streets_rw_arrow_right.png diff --git a/roadworks/textures/streets_rw_arrow_straight.png b/roadworks/textures/streets_rw_arrow_straight.png Binary files differnew file mode 100644 index 0000000..0c9e613 --- /dev/null +++ b/roadworks/textures/streets_rw_arrow_straight.png diff --git a/roadworks/textures/streets_rw_arrow_straight_left.png b/roadworks/textures/streets_rw_arrow_straight_left.png Binary files differnew file mode 100644 index 0000000..0429c81 --- /dev/null +++ b/roadworks/textures/streets_rw_arrow_straight_left.png diff --git a/roadworks/textures/streets_rw_arrow_straight_right.png b/roadworks/textures/streets_rw_arrow_straight_right.png Binary files differnew file mode 100644 index 0000000..02367d7 --- /dev/null +++ b/roadworks/textures/streets_rw_arrow_straight_right.png diff --git a/roadworks/textures/streets_rw_asphalt_side.png b/roadworks/textures/streets_rw_asphalt_side.png Binary files differnew file mode 100644 index 0000000..83c8a6e --- /dev/null +++ b/roadworks/textures/streets_rw_asphalt_side.png diff --git a/roadworks/textures/streets_rw_cross.png b/roadworks/textures/streets_rw_cross.png Binary files differnew file mode 100644 index 0000000..a1f34b0 --- /dev/null +++ b/roadworks/textures/streets_rw_cross.png diff --git a/roadworks/textures/streets_rw_dashed_line.png b/roadworks/textures/streets_rw_dashed_line.png Binary files differnew file mode 100644 index 0000000..4eb211e --- /dev/null +++ b/roadworks/textures/streets_rw_dashed_line.png diff --git a/roadworks/textures/streets_rw_dashed_line_crossing.png b/roadworks/textures/streets_rw_dashed_line_crossing.png Binary files differnew file mode 100644 index 0000000..bebe4c5 --- /dev/null +++ b/roadworks/textures/streets_rw_dashed_line_crossing.png diff --git a/roadworks/textures/streets_rw_dashed_line_curve.png b/roadworks/textures/streets_rw_dashed_line_curve.png Binary files differnew file mode 100644 index 0000000..4a59805 --- /dev/null +++ b/roadworks/textures/streets_rw_dashed_line_curve.png diff --git a/roadworks/textures/streets_rw_dashed_line_tjunction.png b/roadworks/textures/streets_rw_dashed_line_tjunction.png Binary files differnew file mode 100644 index 0000000..144480b --- /dev/null +++ b/roadworks/textures/streets_rw_dashed_line_tjunction.png diff --git a/roadworks/textures/streets_rw_outer_edge.png b/roadworks/textures/streets_rw_outer_edge.png Binary files differnew file mode 100644 index 0000000..54f16ea --- /dev/null +++ b/roadworks/textures/streets_rw_outer_edge.png diff --git a/roadworks/textures/streets_rw_parking.png b/roadworks/textures/streets_rw_parking.png Binary files differnew file mode 100644 index 0000000..aea7fb5 --- /dev/null +++ b/roadworks/textures/streets_rw_parking.png diff --git a/roadworks/textures/streets_rw_solid_line.png b/roadworks/textures/streets_rw_solid_line.png Binary files differnew file mode 100644 index 0000000..3396d63 --- /dev/null +++ b/roadworks/textures/streets_rw_solid_line.png diff --git a/roadworks/textures/streets_rw_solid_line_crossing.png b/roadworks/textures/streets_rw_solid_line_crossing.png Binary files differnew file mode 100644 index 0000000..4f911ed --- /dev/null +++ b/roadworks/textures/streets_rw_solid_line_crossing.png diff --git a/roadworks/textures/streets_rw_solid_line_curve.png b/roadworks/textures/streets_rw_solid_line_curve.png Binary files differnew file mode 100644 index 0000000..596983c --- /dev/null +++ b/roadworks/textures/streets_rw_solid_line_curve.png diff --git a/roadworks/textures/streets_rw_solid_line_tjunction.png b/roadworks/textures/streets_rw_solid_line_tjunction.png Binary files differnew file mode 100644 index 0000000..e6d11e7 --- /dev/null +++ b/roadworks/textures/streets_rw_solid_line_tjunction.png diff --git a/roadworks/textures/streets_rw_transparent.png b/roadworks/textures/streets_rw_transparent.png Binary files differnew file mode 100644 index 0000000..9f466f4 --- /dev/null +++ b/roadworks/textures/streets_rw_transparent.png |