execute at @s[tag=!NoSpiderMobMent] run execute at @e[tag=K,type=spider,tag=!MobMentDone,distance=..30] run scoreboard players add @e[distance=..7,type=spider,tag=!MobMentDone] MobMent 1
execute at @s[tag=!NoSpiderMobMent] run execute as @e[type=spider,scores={MobMent=3..},tag=!MobMentDone] run execute at @s run function zzzzdonotuse:mobment/spider



tag @s add NoSpiderMobMent
tag @a[distance=..10] add NoSpiderMobMent