execute if entity @e[type=spider,tag=!spider_queen,distance=..4,limit=1] run effect give @s instant_health 1 2

kill @e[type=spider,tag=!spider_queen,distance=..4,limit=1]

tag @s remove attacking
tag @s remove eat_spider
