From ae90cbe3efbdb675e296cb5a9a9f4527b65142ff Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 3 Nov 2022 19:00:17 +0100 Subject: [PATCH] Set raiders on path to village after spawn --- mods/ENVIRONMENT/mcl_raids/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/mcl_raids/init.lua b/mods/ENVIRONMENT/mcl_raids/init.lua index 23f3d34d1..1d57034c9 100644 --- a/mods/ENVIRONMENT/mcl_raids/init.lua +++ b/mods/ENVIRONMENT/mcl_raids/init.lua @@ -62,11 +62,13 @@ function mcl_raids.spawn_raid(event) end for m,c in pairs(w) do for i=1,c do - local mob = mcl_mobs.spawn(spawn_pos,m) + local p = vector.offset(spawn_pos,0,1,0) + local mob = mcl_mobs.spawn(p,m) local l = mob:get_luaentity() if l then event.health_max = event.health_max + l.health table.insert(event.mobs,mob) + mcl_mobs:gopath(l,pos) end end end