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("cottages") then
17 local cbox = table.copy(minetest.registered_items["cottages:table"].node_box)
18 minetest.override_item("cottages:table", {
19 check_for_pole = true,
24 if minetest.get_modpath("prefab_redo") then
25 minetest.override_item("prefab_redo:concrete_railing", {
26 check_for_pole = true,
29 connect_right = { -0.125, -0.5, -0.125, 0.5, 0.375, 0.125 },
30 connect_left = { -0.5, -0.5, -0.125, 0.125, 0.375, 0.125 },
31 connect_back = { -0.125, -0.5, -0.125, 0.125, 0.375, 0.5 },
32 connect_front = { -0.125, -0.5, -0.5, 0.125, 0.375, 0.125 },
33 disconnected = { -0.125, -0.5, -0.125, 0.125, 0.25, 0.125 },
39 if minetest.get_modpath("streetspoles") then
113 minetest.override_item("streets:bigpole", {
114 check_for_pole = function(pos, node, def, ppos, pnode, pdef)
116 or (pnode.param2 > 19 and pnode.param2 < 24)
117 and (pos.x ~= ppos.x or pos.z ~= ppos.z) then
122 check_for_horiz_pole = function(pos, node, def, ppos, pnode, pdef)
123 if pnode.param2 > 3 and pnode.param2 < 12 then
124 if def.paramtype2 == "wallmounted" then
125 if node.param2 == 2 or node.param2 == 3 -- E/W
129 if node.param2 == 1 or node.param2 == 3 -- E/W
133 elseif pnode.param2 > 11 and pnode.param2 < 20 then
134 if def.paramtype2 == "wallmounted" then
135 if node.param2 == 4 or node.param2 == 5 then
139 if node.param2 == 0 or node.param2 == 2 then
147 minetest.override_item("streets:bigpole_tjunction", {
148 check_for_pole = function(pos, node, def, ppos, pnode, pdef)
149 if def.paramtype2 == "wallmounted" then
150 if (node.param2 == 4 and vtj_north[pnode.param2])
151 or (node.param2 == 2 and vtj_east[pnode.param2])
152 or (node.param2 == 5 and vtj_south[pnode.param2])
153 or (node.param2 == 3 and vtj_west[pnode.param2]) then
157 if (node.param2 == 0 and vtj_north[pnode.param2])
158 or (node.param2 == 1 and vtj_east[pnode.param2])
159 or (node.param2 == 2 and vtj_south[pnode.param2])
160 or (node.param2 == 3 and vtj_west[pnode.param2]) then
166 check_for_horiz_pole = function(pos, node, def, ppos, pnode, pdef)
167 if def.paramtype2 == "wallmounted" then
168 if (node.param2 == 4 and htj_north[pnode.param2])
169 or (node.param2 == 2 and htj_east[pnode.param2])
170 or (node.param2 == 5 and htj_south[pnode.param2])
171 or (node.param2 == 3 and htj_west[pnode.param2]) then
175 if (node.param2 == 0 and htj_north[pnode.param2])
176 or (node.param2 == 1 and htj_east[pnode.param2])
177 or (node.param2 == 2 and htj_south[pnode.param2])
178 or (node.param2 == 3 and htj_west[pnode.param2]) then
187 if minetest.get_modpath("streetlamps") then
188 minetest.override_item("streets:streetlamp_basic_top_on", {
192 {-0.3,-0.4,-0.3,0.3,0.5,0.3},
193 {-0.15,-0.4,-0.15,0.15,-1.55,0.15},
194 {-0.18,-1.55,-0.18,0.18,-2.5,0.18},
197 check_for_pole = true