From 5fca6b9c3e7c34465c28de99c0e7aae479957d22 Mon Sep 17 00:00:00 2001 From: D00Med Date: Wed, 13 Sep 2017 08:37:41 +1000 Subject: [PATCH] village beacon --- mods/villages/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/villages/init.lua b/mods/villages/init.lua index fd18de6..d791db7 100644 --- a/mods/villages/init.lua +++ b/mods/villages/init.lua @@ -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]