village beacon

This commit is contained in:
D00Med 2017-09-13 08:37:41 +10:00
parent d16d889f1a
commit 5fca6b9c3e

View File

@ -125,6 +125,7 @@ minetest.register_on_generated(function(minp, maxp)
if math.random(1, village_rarity*1000) == 1 then
local pos = {x=surface[n].x, y=surface[n].y, z=surface[n].z}
local positions = get_positions(pos)
minetest.set_node(pos, {name="mobs_npc:beacon"})
for _, position in ipairs(positions) do
local number = math.random(1,7)
local test_pos = position[1]