# Choose attack (+ attk cooldown)
scoreboard players set min rng 1
scoreboard players set max rng 3
function rng:interval
# eat_spider Needs a spider to be used
execute if entity @e[type=spider,tag=!spider_queen,distance=..23,limit=1] run scoreboard players set out rng 4

execute if score out rng matches 1 run tag @s add lay_egg
execute if score out rng matches 2 run tag @s add spit_cobweb
execute if score out rng matches 3 run tag @s add spit_lock
execute if score out rng matches 4 run tag @s add eat_spider

tag @s add attk_choosen
