## Activated ability for beast. Adjust animation length (cooldown) in endmo-bp/animations/player.json > animation.player.morph_beast_activated

tag @e[family=mob] add ValidTarget
tag @e[family=goat] add ValidTarget
tag @e[family=fish] add ValidTarget
tag @e[family=panda] add ValidTarget
tag @e[family=piglin] add ValidTarget
tag @e[family=monster] add ValidTarget
tag @e[family=ender] add ValidTarget
execute positioned ^ ^ ^1 run tag @e[tag=ValidTarget,r=2,c=1] add PotentialTarget
execute positioned ^ ^ ^2 run tag @e[tag=ValidTarget,r=2,c=1] add PotentialTarget
execute positioned ^ ^ ^3 run tag @e[tag=ValidTarget,r=2,c=1] add PotentialTarget
execute positioned ^ ^ ^4 run tag @e[tag=ValidTarget,r=2,c=1] add PotentialTarget
tag @e[tag=PotentialTarget,c=1] add BeastKnockback
summon ldz:ender_beast_attack ~ ~ ~ ~ ~ add_player_attack
tag @e remove ValidTarget
tag @e remove PotentialTarget
# spawns the projectile on the player if they have enough end force