Can't change the damage anymore after the event has already passed
(weapons.sk, line 102: set damage to damage + damage / 100 * 50')
(weapons.sk, line 114: set damage to damage + damage / 100 * 65')
(weapons.sk, line 126: set damage to damage + damage / 100 * 90')
(weapons.sk, line 142: set damage to damage + damage / 100 * 110')
Idk how to solve this x-x pls help
(weapons.sk, line 102: set damage to damage + damage / 100 * 50')
(weapons.sk, line 114: set damage to damage + damage / 100 * 65')
(weapons.sk, line 126: set damage to damage + damage / 100 * 90')
(weapons.sk, line 142: set damage to damage + damage / 100 * 110')
Idk how to solve this x-x pls help
Code:
on damage:
if "%lore of attacker's tool%" contains "Critical Strike 1":
chance of 15%
set damage to damage + damage / 100 * 25
send action bar "&7Critical Damage!" to attacker
play sound "entity.player.attack.crit" with volume 1 and pitch 1.5 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
stop
if "%lore of attacker's tool%" contains "Critical Strike 2":
chance of 20%
set damage to damage + damage / 100 * 50
send action bar "&3Wow, Critical Damage!" to attacker
play sound "entity.firework_rocket.blast" with volume 1 and pitch 0.55 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
stop
if "%lore of attacker's tool%" contains "Critical Strike 3":
chance of 25%
set damage to damage + damage / 100 * 65
send action bar "&aGood &bCritical Damage!" to attacker
play sound "entity.firework_rocket.blast" with volume 1 and pitch 0.5 at victim
wait 2 tick
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
stop
if "%lore of attacker's tool%" contains "Critical Strike 4":
chance of 30%
set damage to damage + damage / 100 * 90
send action bar "&eSMASH &bCritical Damage!" to attacker
play sound "entity.firework_rocket.blast" with volume 1 and pitch 0.5 at victim
play sound "entity.firework_rocket.blast" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
stop
if "%lore of attacker's tool%" contains "Critical Strike 5":
chance of 32%
set damage to damage + damage / 100 * 110
send action bar "&bSUPER &lCritical Damage!" to attacker
play sound "entity.firework_rocket.blast" with volume 1 and pitch 0.4 at victim
play sound "entity.firework_rocket.blast" with volume 1 and pitch 0.4 at victim
play sound "entity.firework_rocket.blast" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
wait 2 tick
play sound "entity.player.attack.crit" with volume 1 and pitch 2 at victim
play sound "entity.firework_rocket.twinkle_far" with volume 1 and pitch 2 at victim
stop