scoreboard trigger event then reset (visual studio) (1.20.1)
i want to code a scoreboard that tracks players damage and then resets the score after a range, this is what i got so far
scoreboard objectives add damage_dealt minecraft.custom:damage_dealt scoreboard objectives setdisplay sidebar damage_dealt
execute if score @s damage_dealt matches 1..10000 run execute at @e run particle firework ^ ^ ^2 ^ ^ ^ 1 100 force execute if score @s damage_dealt matches 1..10000 run scoreboard players set @e damage_dealt 0
for some reason though it wont reset or spawn the particles so im not sure where i went wrong, any help will be greatly appreciated thanks