2 local default_fences = {
4 "default:fence_acacia_wood",
5 "default:fence_aspen_wood",
6 "default:fence_junglewood",
7 "default:fence_pine_wood"
10 for _, n in ipairs(default_fences) do
11 minetest.override_item(n, {
16 if minetest.get_modpath("streetspoles") then
90 minetest.override_item("streets:bigpole", {
91 check_for_pole = function(pos, node, def, ppos, pnode, pdef)
93 or (pnode.param2 > 19 and pnode.param2 < 24)
94 and (pos.x ~= ppos.x or pos.z ~= ppos.z) then
99 check_for_horiz_pole = function(pos, node, def, ppos, pnode, pdef)
100 if pnode.param2 > 3 and pnode.param2 < 12 then
101 if def.paramtype2 == "wallmounted" then
102 if node.param2 == 2 or node.param2 == 3 -- E/W
106 if node.param2 == 1 or node.param2 == 3 -- E/W
110 elseif pnode.param2 > 11 and pnode.param2 < 20 then
111 if def.paramtype2 == "wallmounted" then
112 if node.param2 == 4 or node.param2 == 5 then
116 if node.param2 == 0 or node.param2 == 2 then
124 minetest.override_item("streets:bigpole_tjunction", {
125 check_for_pole = function(pos, node, def, ppos, pnode, pdef)
126 if def.paramtype2 == "wallmounted" then
127 if (node.param2 == 4 and vtj_north[pnode.param2])
128 or (node.param2 == 2 and vtj_east[pnode.param2])
129 or (node.param2 == 5 and vtj_south[pnode.param2])
130 or (node.param2 == 3 and vtj_west[pnode.param2]) then
134 if (node.param2 == 0 and vtj_north[pnode.param2])
135 or (node.param2 == 1 and vtj_east[pnode.param2])
136 or (node.param2 == 2 and vtj_south[pnode.param2])
137 or (node.param2 == 3 and vtj_west[pnode.param2]) then
143 check_for_horiz_pole = function(pos, node, def, ppos, pnode, pdef)
144 if def.paramtype2 == "wallmounted" then
145 if (node.param2 == 4 and htj_north[pnode.param2])
146 or (node.param2 == 2 and htj_east[pnode.param2])
147 or (node.param2 == 5 and htj_south[pnode.param2])
148 or (node.param2 == 3 and htj_west[pnode.param2]) then
152 if (node.param2 == 0 and htj_north[pnode.param2])
153 or (node.param2 == 1 and htj_east[pnode.param2])
154 or (node.param2 == 2 and htj_south[pnode.param2])
155 or (node.param2 == 3 and htj_west[pnode.param2]) then
164 if minetest.get_modpath("streetlamps") then
165 minetest.override_item("streets:streetlamp_basic_top_on", {
169 {-0.3,-0.4,-0.3,0.3,0.5,0.3},
170 {-0.15,-0.4,-0.15,0.15,-1.55,0.15},
171 {-0.18,-1.55,-0.18,0.18,-2.5,0.18},
174 check_for_pole = true