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

execute as @s[scores={CurrentForce=!1..},m=!creative] run scoreboard players set @s ReqForceAmnt 1
execute as @s[scores={CurrentForce=!1..},m=!creative] run event entity @s set_beam_state_to_0
execute as @s[scores={CurrentForce=!1..},m=!creative] run event entity @s set_cancel_activated_to_true
execute as @s[scores={CurrentForce=1..},m=!creative] run tag @s[scores={CurrentForce=1..}] add LordBeam
execute as @s[m=creative] run tag @s add LordBeam
execute as @s[scores={CurrentForce=1..},m=!creative] run scoreboard players remove @s CurrentForce 1
# uses the cost system to keep the beam running if the player can afford it