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 roadsfork-master
|
@ -3,3 +3,4 @@ stairs
|
|||
walls
|
||||
stairsplus?
|
||||
moreblocks?
|
||||
digilines?
|
||||
|
|
5
init.lua
|
@ -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")
|
||||
|
|
|
@ -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",""},
|
||||
{"","",""}
|
||||
}
|
||||
})
|
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 941 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 651 B |
After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 631 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 836 B |
After Width: | Height: | Size: 571 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 750 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 954 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 977 B |
After Width: | Height: | Size: 908 B |
After Width: | Height: | Size: 937 B |
After Width: | Height: | Size: 1005 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 985 B |
After Width: | Height: | Size: 843 B |
After Width: | Height: | Size: 942 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 963 B |
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 949 B |
After Width: | Height: | Size: 1001 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 978 B |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1003 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 950 B |
After Width: | Height: | Size: 953 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 930 B |
After Width: | Height: | Size: 980 B |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 320 B |