# Choose attack (+ attk cooldown)
scoreboard players set min rng 2
scoreboard players set max rng 3
# Frog pond detection
execute if entity @e[tag=frog_pond,limit=1] run scoreboard players set min rng 1
# Frogs limit
# scoreboard players set n_frogs EB_generic 0
# execute as @e[tag=frog,tag=EB] run scoreboard players add n_frogs EB_generic 1
# execute if score n_frogs EB_generic matches 4.. run scoreboard players set min rng 2
function rng:interval

execute if score out rng matches 1 run tag @s add call_frogs
execute if score out rng matches 2 run tag @s add spit_spin
execute if score out rng matches 3 run tag @s add jump

tag @s add attk_choosen
