From 7bda846ea7f8c3ad127b167e6c7a797bfd46f73f Mon Sep 17 00:00:00 2001 From: Christian Danscheid Date: Sat, 10 Aug 2013 19:23:52 +0200 Subject: Initial commit --- asphalt/depends.txt | 2 + asphalt/init.lua | 15 + asphalt/textures/streets_asphalt.png | Bin 0 -> 7120 bytes asphaltstairs/depends.txt | 2 + asphaltstairs/function.lua | 56 ++++ asphaltstairs/init.lua | 15 + concretestairs/depends.txt | 3 + concretestairs/init.lua | 6 + constructionarea/depends.txt | 3 + constructionarea/init.lua | 70 ++++ constructionarea/textures/streets_fence_bottom.png | Bin 0 -> 433 bytes .../textures/streets_fence_fromtop.png | Bin 0 -> 215 bytes constructionarea/textures/streets_fence_inv.png | Bin 0 -> 895 bytes constructionarea/textures/streets_fence_top.png | Bin 0 -> 441 bytes delineator/depends.txt | 2 + delineator/init.lua | 27 ++ delineator/textures/default_n.png | Bin 0 -> 119 bytes delineator/textures/streets_delineator.png | Bin 0 -> 1021 bytes delineator/textures/streets_delineator_top.png | Bin 0 -> 184 bytes emergencyphone/depends.txt | 3 + emergencyphone/init.lua | 27 ++ emergencyphone/textures/streets_sos_bottom.png | Bin 0 -> 1961 bytes emergencyphone/textures/streets_sos_front.png | Bin 0 -> 2990 bytes emergencyphone/textures/streets_sos_side.png | Bin 0 -> 2529 bytes emergencyphone/textures/streets_sos_top.png | Bin 0 -> 8219 bytes labels/depends.txt | 3 + labels/init.lua | 180 ++++++++++ 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_solid_line.png | Bin 0 -> 8003 bytes labels/textures/streets_parking.png | Bin 0 -> 6911 bytes license.txt | 60 ++++ manholes/depends.txt | 2 + manholes/init.lua | 88 +++++ manholes/textures/streets_manhole.png | Bin 0 -> 6225 bytes manholes/textures/streets_manhole_advanced.png | Bin 0 -> 9205 bytes modpack.txt | 1 + readme.txt | 5 + roadsigns/depends.txt | 1 + roadsigns/init.lua | 5 + roadsigns/pole.lua | 69 ++++ roadsigns/signs.lua | 81 +++++ roadsigns/textures/streets_pole.png | Bin 0 -> 2317 bytes roadsigns/textures/streets_pole_inv.png | Bin 0 -> 767 bytes roadsigns/textures/streets_sign_back.png | Bin 0 -> 1584 bytes roadsigns/textures/streets_sign_construction.png | Bin 0 -> 2989 bytes roadsigns/textures/streets_sign_lava.png | Bin 0 -> 3095 bytes roadsigns/textures/streets_sign_water.png | Bin 0 -> 2525 bytes 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 steelsupport/depends.txt | 2 + steelsupport/init.lua | 20 ++ steelsupport/textures/streets_support.png | Bin 0 -> 2793 bytes streetsconcrete/depends.txt | 2 + streetsconcrete/init.lua | 109 +++++++ streetsconcrete/textures/streets_concrete.png | Bin 0 -> 1977 bytes streetsmod/depends.txt | 1 + streetsmod/init.lua | 47 +++ streetsmod/readme.txt | 1 + 85 files changed, 1274 insertions(+) create mode 100644 asphalt/depends.txt create mode 100644 asphalt/init.lua create mode 100644 asphalt/textures/streets_asphalt.png create mode 100644 asphaltstairs/depends.txt create mode 100644 asphaltstairs/function.lua create mode 100644 asphaltstairs/init.lua create mode 100644 concretestairs/depends.txt create mode 100644 concretestairs/init.lua create mode 100644 constructionarea/depends.txt create mode 100644 constructionarea/init.lua create mode 100644 constructionarea/textures/streets_fence_bottom.png create mode 100644 constructionarea/textures/streets_fence_fromtop.png create mode 100644 constructionarea/textures/streets_fence_inv.png create mode 100644 constructionarea/textures/streets_fence_top.png create mode 100644 delineator/depends.txt create mode 100644 delineator/init.lua create mode 100644 delineator/textures/default_n.png create mode 100644 delineator/textures/streets_delineator.png create mode 100644 delineator/textures/streets_delineator_top.png create mode 100644 emergencyphone/depends.txt create mode 100644 emergencyphone/init.lua create mode 100644 emergencyphone/textures/streets_sos_bottom.png create mode 100644 emergencyphone/textures/streets_sos_front.png create mode 100644 emergencyphone/textures/streets_sos_side.png create mode 100644 emergencyphone/textures/streets_sos_top.png create mode 100644 labels/depends.txt create mode 100644 labels/init.lua 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_solid_line.png create mode 100644 labels/textures/streets_parking.png create mode 100644 license.txt create mode 100644 manholes/depends.txt create mode 100644 manholes/init.lua create mode 100644 manholes/textures/streets_manhole.png create mode 100644 manholes/textures/streets_manhole_advanced.png create mode 100644 modpack.txt create mode 100644 readme.txt create mode 100644 roadsigns/depends.txt create mode 100644 roadsigns/init.lua create mode 100644 roadsigns/pole.lua create mode 100644 roadsigns/signs.lua create mode 100644 roadsigns/textures/streets_pole.png create mode 100644 roadsigns/textures/streets_pole_inv.png create mode 100644 roadsigns/textures/streets_sign_back.png create mode 100644 roadsigns/textures/streets_sign_construction.png create mode 100644 roadsigns/textures/streets_sign_lava.png create mode 100644 roadsigns/textures/streets_sign_water.png 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 create mode 100644 steelsupport/depends.txt create mode 100644 steelsupport/init.lua create mode 100644 steelsupport/textures/streets_support.png create mode 100644 streetsconcrete/depends.txt create mode 100644 streetsconcrete/init.lua create mode 100644 streetsconcrete/textures/streets_concrete.png create mode 100644 streetsmod/depends.txt create mode 100644 streetsmod/init.lua create mode 100644 streetsmod/readme.txt diff --git a/asphalt/depends.txt b/asphalt/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/asphalt/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod \ No newline at end of file diff --git a/asphalt/init.lua b/asphalt/init.lua new file mode 100644 index 0000000..8c1c1a3 --- /dev/null +++ b/asphalt/init.lua @@ -0,0 +1,15 @@ +--[[ + Streets Mod: All kinds of asphalt +]] +minetest.register_node(":streets:asphalt",{ + description = "Asphalt", + tiles = {"streets_asphalt.png"}, + groups = {cracky=3} +}) + +minetest.register_craft({ + type = "cooking", + output = "streets:asphalt", + recipe = "default:gravel", + cooktime = 2 +}) \ No newline at end of file diff --git a/asphalt/textures/streets_asphalt.png b/asphalt/textures/streets_asphalt.png new file mode 100644 index 0000000..3740905 Binary files /dev/null and b/asphalt/textures/streets_asphalt.png differ diff --git a/asphaltstairs/depends.txt b/asphaltstairs/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/asphaltstairs/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod \ No newline at end of file diff --git a/asphaltstairs/function.lua b/asphaltstairs/function.lua new file mode 100644 index 0000000..9879d4c --- /dev/null +++ b/asphaltstairs/function.lua @@ -0,0 +1,56 @@ +-- StreetsMod needs a special slab definition, so it needs its own register_stair_and_slab +streets.register_stair_and_slab = function(node,desc,tile,item) + minetest.register_node(":streets:"..node.."_stair",{ + description = desc.."stair", + groups = {cracky = 3}, + tiles = tile, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + {-0.5, 0, 0, 0.5, 0.5, 0.5} + } + } + }) + minetest.register_node(":streets:"..node.."_slab",{ + description = desc.." slab", + groups = {cracky = 3}, + tiles = tile, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + } + } + }) + minetest.register_craft({ + output = "streets:"..node.."_stair 4", + recipe = { + {"","",item}, + {"",item,item}, + {item,item,item} + } + }) + minetest.register_craft({ + output = "streets:"..node.."_stair 4", + recipe = { + {item,"",""}, + {item,item,""}, + {item,item,item} + } + }) + minetest.register_craft({ + output = "streets:"..node.."_slab 3", + recipe = { + {"","",""}, + {"","",""}, + {item,item,item} + } + }) +end \ No newline at end of file diff --git a/asphaltstairs/init.lua b/asphaltstairs/init.lua new file mode 100644 index 0000000..1e206ab --- /dev/null +++ b/asphaltstairs/init.lua @@ -0,0 +1,15 @@ +--[[ + StreetsMod: These stairs are just a workaround until stairs/stairs+ and circular_saw + can work together without problems. This definetly needs an API! +]] +if streets.extendedBy.stairs == false then return end +-- +dofile(minetest.get_modpath(minetest.get_current_modname()).."/function.lua") + +-- Asphalt +streets.register_stair_and_slab("asphalt","Asphalt",{"streets_asphalt.png"},"streets:asphalt") +minetest.register_alias("streets:asphalt_stairs","streets:asphalt_stair") +-- Asphalt with solid line: +streets.register_stair_and_slab("asphalt_solid_line","Asphalt with solid line",{"streets_asphalt.png^streets_asphalt_solid_line.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png^streets_asphalt_solid_line.png"},"streets:asphalt_solid_line") +-- Asphalt with dashed line: +streets.register_stair_and_slab("asphalt_dashed_line","Asphalt with dashed line",{"streets_asphalt.png^streets_asphalt_dashed_line.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png","streets_asphalt.png^streets_asphalt_dashed_line.png"},"streets:asphalt_dashed_line") diff --git a/concretestairs/depends.txt b/concretestairs/depends.txt new file mode 100644 index 0000000..b210b30 --- /dev/null +++ b/concretestairs/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +stairs? \ No newline at end of file diff --git a/concretestairs/init.lua b/concretestairs/init.lua new file mode 100644 index 0000000..7de66f5 --- /dev/null +++ b/concretestairs/init.lua @@ -0,0 +1,6 @@ +--[[ + StreetsMod: Concrete stairs (not compatible to circular_saw +]] +if streets.extendedBy.stairs == true then + stairs.register_stair_and_slab("concrete", "streets:concrete", {cracky = 2, level = 2}, {"streets_concrete.png"}, "Concrete stair", "Concrete slab", nil) +end \ No newline at end of file diff --git a/constructionarea/depends.txt b/constructionarea/depends.txt new file mode 100644 index 0000000..f17a377 --- /dev/null +++ b/constructionarea/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +wool? \ No newline at end of file diff --git a/constructionarea/init.lua b/constructionarea/init.lua new file mode 100644 index 0000000..d9e328b --- /dev/null +++ b/constructionarea/init.lua @@ -0,0 +1,70 @@ +minetest.register_node(":streets:constructionfence_bottom",{ + description = "Construction fence", + tiles = {"streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_bottom.png","streets_fence_bottom.png"}, + groups = {cracky = 2,}, + paramtype = "light", + inventory_image = "streets_fence_inv.png", + wield_image = "streets_fence_inv.png", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.1,0.5,0.0,0.1}, -- lower part + {-0.2,-0.0,-0.1,0.2,0.5,0.1} -- thing in the middle + } + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.1,0.5,1.0,0.1} + } + }, + after_dig_node = function(pos,node,digger) + pos.y = pos.y + 1 + minetest.remove_node(pos) + end, + after_place_node = function(pos,placer,itemstack) + pos.y = pos.y + 1 + if minetest.get_node(pos).name == "air" then + minetest.add_node(pos,{name = "streets:constructionfence_top", param2 = minetest.dir_to_facedir(placer:get_look_dir())}) + else + minetest.chat_send_player(placer:get_player_name("Not enough free space! A construction fence has a height of 2 blocks!")) + end + end +}) + +minetest.register_node(":streets:constructionfence_top",{ + description = "Construction fence", + tiles = {"streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_fromtop.png","streets_fence_top.png","streets_fence_top.png"}, + groups = {cracky = 2, not_in_creative_inventory = 1}, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + drop = "streets:constructionfence_bottom", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.1,0.5,0.0,0.1} -- upper part + } + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-1.5,-0.1,0.5,0.0,0.1} + } + }, + after_dig_node = function(pos,node,digger) + pos.y = pos.y - 1 + minetest.remove_node(pos) + end +}) + +minetest.register_craft({ + output = "streets:constructionfence_bottom 8", + recipe = { + {"","",""}, + {"","streets:sign_construction",""}, + {"wool:red","wool:white","wool:red"} + } +}) \ No newline at end of file diff --git a/constructionarea/textures/streets_fence_bottom.png b/constructionarea/textures/streets_fence_bottom.png new file mode 100644 index 0000000..d07d321 Binary files /dev/null and b/constructionarea/textures/streets_fence_bottom.png differ diff --git a/constructionarea/textures/streets_fence_fromtop.png b/constructionarea/textures/streets_fence_fromtop.png new file mode 100644 index 0000000..f4c0e23 Binary files /dev/null and b/constructionarea/textures/streets_fence_fromtop.png differ diff --git a/constructionarea/textures/streets_fence_inv.png b/constructionarea/textures/streets_fence_inv.png new file mode 100644 index 0000000..a73f300 Binary files /dev/null and b/constructionarea/textures/streets_fence_inv.png differ diff --git a/constructionarea/textures/streets_fence_top.png b/constructionarea/textures/streets_fence_top.png new file mode 100644 index 0000000..43a3613 Binary files /dev/null and b/constructionarea/textures/streets_fence_top.png differ diff --git a/delineator/depends.txt b/delineator/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/delineator/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod \ No newline at end of file diff --git a/delineator/init.lua b/delineator/init.lua new file mode 100644 index 0000000..4b69341 --- /dev/null +++ b/delineator/init.lua @@ -0,0 +1,27 @@ +--[[ + StreetsMod: Delineator +]] +minetest.register_node(":streets:delineator", { + description = "Delineator", + tiles = {"streets_delineator_top.png","streets_delineator.png"}, + drawtype = "nodebox", + paramtype = "light", + groups = {cracky=3, oddly_breakable_by_hand=2}, + light_source = 8, + sunlight_propagates = true, + node_box = { + type = "fixed", + fixed = { + {-0.1, -0.5, -0.1, 0.1, 0.5, 0.1}, + }, + } +}) + +minetest.register_craft({ + output = "streets:delineator 4", + recipe = { + {"","default:torch",""}, + {"","default:stick",""}, + {"","default:stick",""} + } +}) \ No newline at end of file diff --git a/delineator/textures/default_n.png b/delineator/textures/default_n.png new file mode 100644 index 0000000..4f28a36 Binary files /dev/null and b/delineator/textures/default_n.png differ diff --git a/delineator/textures/streets_delineator.png b/delineator/textures/streets_delineator.png new file mode 100644 index 0000000..51663e4 Binary files /dev/null and b/delineator/textures/streets_delineator.png differ diff --git a/delineator/textures/streets_delineator_top.png b/delineator/textures/streets_delineator_top.png new file mode 100644 index 0000000..3551ffe Binary files /dev/null and b/delineator/textures/streets_delineator_top.png differ diff --git a/emergencyphone/depends.txt b/emergencyphone/depends.txt new file mode 100644 index 0000000..f17a377 --- /dev/null +++ b/emergencyphone/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +wool? \ No newline at end of file diff --git a/emergencyphone/init.lua b/emergencyphone/init.lua new file mode 100644 index 0000000..90124a8 --- /dev/null +++ b/emergencyphone/init.lua @@ -0,0 +1,27 @@ +--[[ + StreetsMod: Emergency Phone +]] +if streets.extendedBy.wool == true then + minetest.register_node(":streets:emergencyphone",{ + description = "Emergency Phone", + tiles = {"streets_sos_top.png","streets_sos_bottom.png","streets_sos_side.png","streets_sos_side.png","streets_sos_side.png","streets_sos_front.png"}, + groups = {cracky = 3}, + paramtype2 = "facedir", + light_source = 5, + on_rightclick = function(pos,node,clicker) + if clicker:is_player() and clicker:get_hp() < 6 then + clicker:set_hp(6) + minetest.log("action",clicker:get_player_name() .. " healed by emergency phone at pos (" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ")") + end + end + }) + minetest.register_alias("streets:emergency_phone","streets:emergencyphone") + minetest.register_craft({ + output = "streets:emergencyphone", + recipe = { + {"wool:orange","default:torch","wool:orange"}, + {"wool:orange","default:apple","wool:orange"}, + {"default:steel_ingot","default:diamondblock","default:steel_ingot"} + } + }) +end \ No newline at end of file diff --git a/emergencyphone/textures/streets_sos_bottom.png b/emergencyphone/textures/streets_sos_bottom.png new file mode 100644 index 0000000..0437ef1 Binary files /dev/null and b/emergencyphone/textures/streets_sos_bottom.png differ diff --git a/emergencyphone/textures/streets_sos_front.png b/emergencyphone/textures/streets_sos_front.png new file mode 100644 index 0000000..80e2c25 Binary files /dev/null and b/emergencyphone/textures/streets_sos_front.png differ diff --git a/emergencyphone/textures/streets_sos_side.png b/emergencyphone/textures/streets_sos_side.png new file mode 100644 index 0000000..af83757 Binary files /dev/null and b/emergencyphone/textures/streets_sos_side.png differ diff --git a/emergencyphone/textures/streets_sos_top.png b/emergencyphone/textures/streets_sos_top.png new file mode 100644 index 0000000..2b5790f Binary files /dev/null and b/emergencyphone/textures/streets_sos_top.png differ diff --git a/labels/depends.txt b/labels/depends.txt new file mode 100644 index 0000000..f17a377 --- /dev/null +++ b/labels/depends.txt @@ -0,0 +1,3 @@ +default +streetsmod +wool? \ No newline at end of file diff --git a/labels/init.lua b/labels/init.lua new file mode 100644 index 0000000..82b960f --- /dev/null +++ b/labels/init.lua @@ -0,0 +1,180 @@ +--[[ + StreetsMod: All kinds of asphalt with labels +]] +if streets.extendedBy.wool == false then return end +-- +minetest.register_node(":streets:asphalt_sideline",{ + description = "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 = { + {"wool:white","streets:asphalt","streets:asphalt"}, + {"wool:white","streets:asphalt","streets:asphalt"}, + {"wool:shite","streets:asphalt","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_solid_line",{ + description = "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","wool:white","streets:asphalt"}, + {"streets:asphalt","wool:white","streets:asphalt"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_dashed_line",{ + description = "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","wool:white","streets:asphalt"}, + {"streets:asphalt","streets:asphalt","streets:asphalt"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_outer_edge",{ + description = "Asphalt with sideline (edge)", + groups = {cracky=3}, + tiles = {"streets_asphalt.png^streets_asphalt_outer_edge.png","streets_asphalt.png"}, + paramtype2 = "facedir" +}) +-- no minetest.register_alias() needed +minetest.register_craft({ + output = "streets:asphalt_outer_edge 4", + recipe = { + {"wool:white","wool:white","wool:white"}, + {"wool:white","streets:asphalt","streets:asphalt"}, + {"wool:white","streets:asphalt","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_parking",{ + description = "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_outer_edge 4", + recipe = { + {"streets:asphalt","wool:white","wool:white"}, + {"streets:asphalt","wool:white","wool:white"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_arrow_straight",{ + description = "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","wool:white","streets:asphalt"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_arrow_left",{ + description = "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"}, + {"wool:white","wool:white","streets:asphalt"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_arrow_right",{ + description = "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","wool:white","wool:white"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_arrow_straight_left",{ + description = "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","wool:white","streets:asphalt"}, + {"wool:white","wool:white","streets:asphalt"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_arrow_straight_right",{ + description = "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","wool:white","streets:asphalt"}, + {"streets:asphalt","wool:white","wool:white"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) + +minetest.register_node(":streets:asphalt_arrow_alldirs",{ + description = "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","wool:white","streets:asphalt"}, + {"wool:white","wool:white","wool:white"}, + {"streets:asphalt","wool:white","streets:asphalt"} + } +}) \ No newline at end of file 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_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/license.txt b/license.txt new file mode 100644 index 0000000..eaa9c05 --- /dev/null +++ b/license.txt @@ -0,0 +1,60 @@ + + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions + + "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. + "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(g) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. + "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. + "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, Noncommercial, ShareAlike. + "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. + "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. + "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. + "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. + "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. + "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: + + to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; + to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; + to Distribute and Publicly Perform the Work including as incorporated in Collections; and, + to Distribute and Publicly Perform Adaptations. + +The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved, including but not limited to the rights described in Section 4(e). + +4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: + + You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(d), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(d), as requested. + You may Distribute or Publicly Perform an Adaptation only under: (i) the terms of this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-NonCommercial-ShareAlike 3.0 US) ("Applicable License"). You must include a copy of, or the URI, for Applicable License with every copy of each Adaptation You Distribute or Publicly Perform. You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License. You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. + You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary compensation in con-nection with the exchange of copyrighted works. + If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and, (iv) consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(d) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. + + For the avoidance of doubt: + Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; + Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License if Your exercise of such rights is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(c) and otherwise waives the right to collect royalties through any statutory or compulsory licensing scheme; and, + Voluntary License Schemes. The Licensor reserves the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License that is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(c). + Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING AND TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THIS EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. + Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. + +8. Miscellaneous + + Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. + Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. + If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. + This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. + The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. diff --git a/manholes/depends.txt b/manholes/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/manholes/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod \ No newline at end of file diff --git a/manholes/init.lua b/manholes/init.lua new file mode 100644 index 0000000..aa95cce --- /dev/null +++ b/manholes/init.lua @@ -0,0 +1,88 @@ +--[[ + StreetsMod: Manholes in asphalt +]] +minetest.register_node(":streets:manhole",{ + description = "Simple manhole", + tiles = {"streets_asphalt.png^streets_manhole.png","streets_asphalt.png"}, + groups = {cracky=3} +}) + +minetest.register_node(":streets:manhole_adv_closed",{ + description = "Advanced manhole", + tiles = {"streets_asphalt.png^streets_manhole_advanced.png","streets_asphalt.png"}, + groups = {cracky=3}, + drawtype = "nodebox", + paramtype = "light", + sunlight_propagates = true, + node_box = { + type = "fixed", + fixed = { + --Walls + {-0.5,-0.5,-0.5,-0.3,0.5,0.5}, + {-0.5,-0.5,-0.5,0.5,0.5,-0.3}, + {0.3,-0.5,-0.5,0.5,0.5,0.5}, + {-0.5,-0.5,0.3,0.5,0.5,0.5}, + --Cover + {-0.5,0.4,-0.1,0.5,0.5,0.1}, + {-0.1,0.4,-0.5,0.1,0.5,0.5}, + {-0.2,0.4,-0.2,0.2,0.5,0.2} + } + }, + selection_box = { + type = "regular", + }, + on_rightclick = function(pos,node,clicker) + minetest.set_node(pos,{name="streets:manhole_adv_open"}) + end +}) +minetest.register_node(":streets:manhole_adv_open",{ + description = "Advanced manhole", + tiles = {"streets_asphalt.png^streets_manhole_advanced.png","streets_asphalt.png"}, + groups = {cracky=3,not_in_creative_inventory=1}, + drawtype = "nodebox", + paramtype = "light", + drop = "streets:manhole_adv_closed", + climbable = true, + walkable = false, + sunlight_propagates = true, + node_box = { + type = "fixed", + fixed = { + --Walls + {-0.5,-0.5,-0.5,-0.3,0.5,0.5}, + {-0.5,-0.5,-0.5,0.5,0.5,-0.3}, + {0.3,-0.5,-0.5,0.5,0.5,0.5}, + {-0.5,-0.5,0.3,0.5,0.5,0.5}, + } + }, + selection_box = { + type = "fixed", + fixed = { + --Walls + {-0.5,-0.5,-0.5,-0.3,0.5,0.5}, + {-0.5,-0.5,-0.5,0.5,0.5,-0.3}, + {0.3,-0.5,-0.5,0.5,0.5,0.5}, + {-0.5,-0.5,0.3,0.5,0.5,0.5}, + } + }, + on_rightclick = function(pos,node,clicker) + minetest.set_node(pos,{name="streets:manhole_adv_closed"}) + end +}) + +minetest.register_craft({ + output = "streets:manhole_adv_closed 2", + recipe = { + {"streets:asphalt", "default:steel_ingot", "streets:asphalt"}, + {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, + {"streets:asphalt", "default:steel_ingot", "streets:asphalt"} + } +}) +minetest.register_craft({ + output = "streets:manhole 3", + recipe = { + {"streets:asphalt", "streets:asphalt", "streets:asphalt"}, + {"streets:asphalt", "default:steel_ingot", "streets:asphalt"}, + {"streets:asphalt", "streets:asphalt", "streets:asphalt"} + } +}) \ No newline at end of file diff --git a/manholes/textures/streets_manhole.png b/manholes/textures/streets_manhole.png new file mode 100644 index 0000000..5014fe5 Binary files /dev/null and b/manholes/textures/streets_manhole.png differ diff --git a/manholes/textures/streets_manhole_advanced.png b/manholes/textures/streets_manhole_advanced.png new file mode 100644 index 0000000..a8f876d Binary files /dev/null and b/manholes/textures/streets_manhole_advanced.png differ diff --git a/modpack.txt b/modpack.txt new file mode 100644 index 0000000..48abf62 --- /dev/null +++ b/modpack.txt @@ -0,0 +1 @@ +This file indicates that the current folder is a modpack. Please also read readme.txt for more information. \ No newline at end of file diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..0101689 --- /dev/null +++ b/readme.txt @@ -0,0 +1,5 @@ +Streets is a mod for the free game "Minetest" and is released under CC-BY-NC: + +http://creativecommons.org/licenses/by-nc/3.0 + +For more information, see license.txt \ No newline at end of file diff --git a/roadsigns/depends.txt b/roadsigns/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/roadsigns/depends.txt @@ -0,0 +1 @@ +default diff --git a/roadsigns/init.lua b/roadsigns/init.lua new file mode 100644 index 0000000..4985694 --- /dev/null +++ b/roadsigns/init.lua @@ -0,0 +1,5 @@ +--[[ + StreetsMod: Poles and signs +]] +dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/pole.lua") +dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/signs.lua") \ No newline at end of file diff --git a/roadsigns/pole.lua b/roadsigns/pole.lua new file mode 100644 index 0000000..8f2f7ba --- /dev/null +++ b/roadsigns/pole.lua @@ -0,0 +1,69 @@ +--[[ + StreetsMod: Poles and signs +]] +minetest.register_node(":streets:pole_bottom",{ + description = "Pole", + tiles = {"streets_pole.png"}, + groups = {cracky=2}, + inventory_image = "streets_pole_inv.png", + wield_image = "streets_pole_inv.png", + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.1,-0.5,-0.5,0.1,0.5,-0.4}, + {-0.125,-0.5,-0.525,0.125,-0.3,-0.375} + } + }, + selection_box = { + type = "fixed", + fixed = { + {-0.1,-0.5,-0.5,0.1,0.5,-0.4} + } + }, + after_place_node = function(pos,placer,itemstack) + pos.y = pos.y +1 + if minetest.get_node(pos).name == "air" then + minetest.add_node(pos,{name = "streets:pole_top", param2 = minetest.dir_to_facedir(placer:get_look_dir())}) + else + minetest.chat_send_player(placer:get_player_name(),"Not enough free space! A pole has a height of 2 blocks!") + pos.y = pos.y -1 + minetest.remove_node(pos) + end + end, + after_dig_node = function(pos, oldnode, oldmetadata, digger) + pos.y = pos.y +1 + if minetest.get_node(pos).name == "streets:pole_top" then + minetest.remove_node(pos) + end + end +}) + +minetest.register_node(":streets:pole_top",{ + description = "Y u no play minetest without cheating?", + tiles = {"streets_pole.png"}, + groups = {cracky=2,not_in_creative_inventory=1}, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + can_dig = function(pos,player) + return false + end, + node_box = { + type = "fixed", + fixed = { + {-0.1,-0.5,-0.5,0.1,0.5,-0.4} + } + } +}) + +minetest.register_craft({ + output = "streets:pole_bottom 3", + recipe = { + {"","default:steel_ingot",""}, + {"","default:steel_ingot",""}, + {"","default:steel_ingot",""} + } +}) \ No newline at end of file diff --git a/roadsigns/signs.lua b/roadsigns/signs.lua new file mode 100644 index 0000000..a73b294 --- /dev/null +++ b/roadsigns/signs.lua @@ -0,0 +1,81 @@ +if streets.extendedBy.bucket == true and streets.extendedBy.wool then + minetest.register_node(":streets:sign_lava",{ + description = "Warning sign (lava)", + tiles = {"streets_sign_lava.png"}, + inventory_image = "streets_sign_lava.png", + wield_image = "streets_sign_lava.png", + groups = {snappy = 1,attached_node = 1}, + drawtype = "signlike", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "wallmounted" + } + }) + + minetest.register_craft({ + output = "streets:sign_lava 2", + recipe = { + {"wool:red","wool:red","wool:red"}, + {"wool:red","bucket:bucket_lava","wool:red"}, + {"wool:red","wool:red","wool:red"} + }, + replacements = { + {"bucket:bucket_lava", "bucket:bucket_empty"} + } + }) + + minetest.register_node(":streets:sign_water",{ + description = "Warning sign (water)", + tiles = {"streets_sign_water.png"}, + inventory_image = "streets_sign_water.png", + wield_image = "streets_sign_water.png", + groups = {snappy = 1,attached_node = 1}, + drawtype = "signlike", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "wallmounted" + } + }) + + minetest.register_craft({ + output = "streets:sign_water 2", + recipe = { + {"wool:red","wool:red","wool:red"}, + {"wool:red","bucket:bucket_water","wool:red"}, + {"wool:red","wool:red","wool:red"} + }, + replacements = { + {"bucket:bucket_water", "bucket:bucket_empty"} + } + }) + + minetest.register_node(":streets:sign_construction",{ + description = "Warning sign (Construction area)", + tiles = {"streets_sign_construction.png"}, + inventory_image = "streets_sign_construction.png", + wield_image = "streets_sign_construction.png", + groups = {snappy = 1,attached_node = 1}, + drawtype = "signlike", + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "wallmounted" + } + }) + minetest.register_craft({ + output = "streets:sign_construction 2", + recipe = { + {"wool:red","wool:red","wool:red"}, + {"wool:red","default:shovel_steel","wool:red"}, + {"wool:red","wool:red","wool:red"} + } + }) +end \ No newline at end of file diff --git a/roadsigns/textures/streets_pole.png b/roadsigns/textures/streets_pole.png new file mode 100644 index 0000000..3fbed28 Binary files /dev/null and b/roadsigns/textures/streets_pole.png differ diff --git a/roadsigns/textures/streets_pole_inv.png b/roadsigns/textures/streets_pole_inv.png new file mode 100644 index 0000000..fce2292 Binary files /dev/null and b/roadsigns/textures/streets_pole_inv.png differ diff --git a/roadsigns/textures/streets_sign_back.png b/roadsigns/textures/streets_sign_back.png new file mode 100644 index 0000000..fd7fd69 Binary files /dev/null and b/roadsigns/textures/streets_sign_back.png differ diff --git a/roadsigns/textures/streets_sign_construction.png b/roadsigns/textures/streets_sign_construction.png new file mode 100644 index 0000000..d4a42dd Binary files /dev/null and b/roadsigns/textures/streets_sign_construction.png differ diff --git a/roadsigns/textures/streets_sign_lava.png b/roadsigns/textures/streets_sign_lava.png new file mode 100644 index 0000000..c134aa2 Binary files /dev/null and b/roadsigns/textures/streets_sign_lava.png differ diff --git a/roadsigns/textures/streets_sign_water.png b/roadsigns/textures/streets_sign_water.png new file mode 100644 index 0000000..d2e7d04 Binary files /dev/null and b/roadsigns/textures/streets_sign_water.png differ 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 diff --git a/steelsupport/depends.txt b/steelsupport/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/steelsupport/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod \ No newline at end of file diff --git a/steelsupport/init.lua b/steelsupport/init.lua new file mode 100644 index 0000000..b6b6f10 --- /dev/null +++ b/steelsupport/init.lua @@ -0,0 +1,20 @@ +--[[ + StreetsMod: Steel support for hanging signs on highways etc. +]] +minetest.register_node(":streets:steel_support",{ + description = "Steel support", + tiles = {"streets_support.png"}, + groups = {cracky = 1}, + drawtype = "glasslike_framed", + climbable = true, + sunlight_propagates = true, + paramtype = "light", +}) +minetest.register_craft({ + output = "streets:steel_support 5", + recipe = { + {"default:steel_ingot","","default:steel_ingot"}, + {"","default:steel_ingot",""}, + {"default:steel_ingot","","default:steel_ingot"} + } +}) \ No newline at end of file diff --git a/steelsupport/textures/streets_support.png b/steelsupport/textures/streets_support.png new file mode 100644 index 0000000..e92a88d Binary files /dev/null and b/steelsupport/textures/streets_support.png differ diff --git a/streetsconcrete/depends.txt b/streetsconcrete/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/streetsconcrete/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod \ No newline at end of file diff --git a/streetsconcrete/init.lua b/streetsconcrete/init.lua new file mode 100644 index 0000000..ffb826a --- /dev/null +++ b/streetsconcrete/init.lua @@ -0,0 +1,109 @@ +--[[ + StreetsMod: Concrete, Concrete wall (flat), Concrete wall (full) +]] +minetest.register_alias("streets:concrete","technic:concrete") +if streets.extendedBy.technic == true then + -- Use technic's concrete block for the seperating wall + minetest.register_node(":streets:concrete_wall",{ + description = "Conrete wall", + tiles = {"technic_concrete_block.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.5, 0.4, -0.4, 0.5}, + {-0.1, -0.4, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall", + recipe = { + {"","technic:conrete",""}, + {"","technic:concrete",""}, + {"technic:concrete","technic:concrete","technic:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = "Conrete wall", + tiles = {"technic_concrete_block.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.1, -0.5, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall_flat 3", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"","",""} + } + }) +else + -- Register technic's concrete block with streets's texture and then the seperating wall + minetest.register_node(":technic:concrete",{ + description = "Concrete", + tiles = {"streets_concrete.png"}, + groups = {cracky=2} + }) + minetest.register_node(":streets:concrete_wall",{ + description = "Conrete wall", + tiles = {"streets_concrete.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.5, 0.4, -0.4, 0.5}, + {-0.1, -0.4, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall 5", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"technic:concrete","technic:concrete","technic:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = "Conrete wall", + tiles = {"streets_concrete.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.1, -0.5, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall_flat 3", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"","",""} + } + }) + minetest.register_craft({ + type = "shapeless", + output = "technic:concrete", + recipe = {"default:stone"} + }) +end \ No newline at end of file diff --git a/streetsconcrete/textures/streets_concrete.png b/streetsconcrete/textures/streets_concrete.png new file mode 100644 index 0000000..64fcb85 Binary files /dev/null and b/streetsconcrete/textures/streets_concrete.png differ diff --git a/streetsmod/depends.txt b/streetsmod/depends.txt new file mode 100644 index 0000000..331d858 --- /dev/null +++ b/streetsmod/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/streetsmod/init.lua b/streetsmod/init.lua new file mode 100644 index 0000000..f5649bc --- /dev/null +++ b/streetsmod/init.lua @@ -0,0 +1,47 @@ +--[[ + StreetsMod 1.1 by webdesigner97: + License : CC-BY-NC (see license.txt) + Readme : see readme.txt + Forum : http://bit.ly/12cPMeo + Depends : default +]] +-- Create variables and tables + print("Streets: Creating variables and tables...") + streets = {} + streets.version = 1.3 + streets.modpath = minetest.get_modpath("streets") + streets.extendedBy = {} + +-- Check for mods which change this mod's beahaviour + print("Streets: Checking installed mods...") + if minetest.get_modpath("wool") then + print("'Wool' is installed \n\t => You can craft labels for your asphalt blocks") + streets.extendedBy.wool = true + else + print("'Wool' not installed \n\t => You can't craft any labels") + streets.extendedBy.wool = false + end + if minetest.get_modpath("technic") then + print("'Technic' is installed \n\t => You can use its concrete also in this mod") + streets.extendedBy.technic = true + else + print("'Technic' not installed \n\t => StreetsMod will register its own concrete block") + streets.extendedBy.technic = false + end + if minetest.get_modpath("stairs") then + print("'Stairs' is installed \n\t => There will be stairs and slabs'") + streets.extendedBy.stairs = true + else + print("'Stairs' not installed \n\t => There won't be stairs and slabs'") + streets.extendedBy.stairs = false + end + if minetest.get_modpath("bucket") then + print("'Bucket' is installed \n\t => All signs are available") + streets.extendedBy.bucket = true + else + print("'Bucket' not installed \n\t => No signs available") + streets.extendedBy.bucket = false + end + +-- Done + print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!") \ No newline at end of file diff --git a/streetsmod/readme.txt b/streetsmod/readme.txt new file mode 100644 index 0000000..a2c9172 --- /dev/null +++ b/streetsmod/readme.txt @@ -0,0 +1 @@ +This is the first loaded mod in this modpack which prepares tables, variables etc. \ No newline at end of file -- cgit v1.2.3