Add poles and traffic lights/beacons, with some improvements

REDYELLOW and FLASHGREEN commands added
WARN command removed (use FLASHYELLOW instead)
Aside from that, basically just copy/pasted from roads
fork-master
Carter Kolwey 2016-05-25 16:52:29 -05:00
parent 92b7d80162
commit c9348fd222
60 changed files with 1405 additions and 0 deletions

View File

@ -3,3 +3,4 @@ stairs
walls
stairsplus?
moreblocks?
digilines?

View File

@ -34,6 +34,11 @@ streets.load_submod("streets_asphaltworkshop")
streets.load_submod("streets_installations")
streets.load_submod("streets_accessories")
streets.load_submod("streets_concrete")
streets.load_submod("streets_poles")
if minetest.get_modpath("digilines") then
streets.load_submod("streets_trafficlight")
end
-- Let the API register everything and finish the setup
dofile(streets.conf.modpath .. "/api_register_all.lua")

125
streets_poles/init.lua Normal file
View File

@ -0,0 +1,125 @@
--[[
## StreetsMod 2.0 ##
Submod: poles
Optional: true
]]
minetest.register_node(":streets:bigpole", {
description = "Pole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
sunlight_propagates = true,
groups = {cracky = 1, level = 2, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
}
},
on_place = minetest.rotate_node,
digiline = {
wire = {
rules = {
{x= 0, y= 0, z=-1},
{x= 0, y= 0, z= 1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0},
{x= 0, y=-2, z= 0}
}
}
}
})
minetest.register_node(":streets:bigpole_edge", {
description = "Pole",
drop = "streets:bigpole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
sunlight_propagates = true,
groups = {cracky = 1, level = 2, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15,-0.5,-0.15,0.15,0.15,0.15},
{-0.15,-0.15,-0.15,0.15,0.15,-0.5}
}
},
digiline = {
wire = {
rules = {
{x= 0, y= 0, z=-1},
{x= 0, y= 0, z= 1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0},
}
}
}
})
minetest.register_node(":streets:bigpole_tjunction", {
description = "Pole",
drop = "streets:bigpole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
sunlight_propagates = true,
groups = {cracky = 1, level = 2, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15, -0.5, -0.15, 0.15, 0.15, 0.15},
{-0.15, -0.15, -0.5, 0.15, 0.15, 0.5}
}
},
digiline = {
wire = {
rules = {
{x= 0, y= 0, z=-1},
{x= 0, y= 0, z= 1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0},
}
}
}
})
minetest.register_craft({
output = "streets:bigpole 3",
recipe = {
{"","",""},
{"","default:steel_ingot",""},
{"","default:steel_ingot",""}
}
})
minetest.register_craft({
output = "streets:bigpole_edge 3",
recipe = {
{"","",""},
{"streets:bigpole","streets:bigpole",""},
{"streets:bigpole","",""}
}
})
minetest.register_craft({
output = "streets:bigpole_edge 3",
recipe = {
{"","",""},
{"streets:bigpole","streets:bigpole",""},
{"","streets:bigpole",""}
}
})
minetest.register_craft({
output = "streets:bigpole_tjunction 2",
recipe = {
{"","",""},
{"streets:bigpole_edge","streets:bigpole",""},
{"","",""}
}
})

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
textures/streets_hb_off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

BIN
textures/streets_hb_red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

BIN
textures/streets_pl_off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

BIN
textures/streets_pole.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

BIN
textures/streets_tl_bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

BIN
textures/streets_tl_off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

BIN
textures/streets_tl_red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1003 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B