summon illusioner ~ ~ ~ {CanJoinRaid:1b,Tags:["raiders_check"],HandItems:[{id:"minecraft:bow",count:1},{}]}
execute as @e[type=illusioner,tag=raiders_check,sort=nearest,limit=1] at @s run function illusioner_raid:spawn/set_illusioner