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