I'm trying to make a bow and arrow system that grabs the attack damage of the bow and applies it to the arrow, but the damage doesn't apply to the arrow.
dind means if damage indicators are on or off and says how much hearts it does.
attacker is player
set {_at} to attacker's tool
set {_dmg} to {_at}'s attack damage attribute
if attacker's tool is bow:
set damage to 1
if damage cause is projectile:
set damage to {_dmg}
if {dind::%attacker's uuid%} is true:
set {_damage} to damage*2
send "&cDAMAGE&4: %{_damage}%" to attacker```