execute as @e[type=!#survivalplus:xtraloot_blacklist,limit=1,sort=nearest,nbt={HurtTime:10s},tag=!poly_mage,tag=!swap_mage,tag=!boss] at @s run loot spawn ~ ~ ~ kill @s
advancement revoke @s only survivalplus:tools/xtraloot