Allow building below flag

This commit is contained in:
rubenwardy 2015-12-01 01:52:26 +00:00
parent eede6c7199
commit 66dd77cdbd
2 changed files with 9 additions and 7 deletions

@ -1 +1 @@
Subproject commit 622dcb8468df885e7111c8b7e1a52999df4058a4
Subproject commit 2c2ebfe437a4ed8a30e8251bb8e1a3c0878bcd3b

View file

@ -59,12 +59,14 @@ minetest.register_on_generated(function(minp, maxp, seed)
minp.y <= flag.y and maxp.y >= flag.y and
minp.z <= flag.z and maxp.z >= flag.z then
-- Spawn ind base
--for x = flag.x - 2, flag.x + 2 do
-- for z = flag.z - 2, flag.z + 2 do
for x = flag.x - 2, flag.x + 2 do
for z = flag.z - 2, flag.z + 2 do
minetest.set_node({ x = x, y = flag.y - 1, z = z},
{name = "default:stone"})
end
end
minetest.set_node({ x = flag.x, y = flag.y - 1, z = flag.z},
{name = "ctf_barrier:ind_stone"})
-- end
--end
-- Check for trees
for y = flag.y, flag.y + 2 do
@ -92,8 +94,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
}
minetest.set_node(pos, chest)
local inv = minetest.get_inventory({type = "node", pos=pos})
inv:add_item("main", ItemStack("default:stone 99"))
inv:add_item("main", ItemStack("default:stone 99"))
inv:add_item("main", ItemStack("default:cobble 99"))
inv:add_item("main", ItemStack("default:cobble 99"))
inv:add_item("main", ItemStack("default:glass 10"))
inv:add_item("main", ItemStack("default:torch 10"))
end