data merge entity @n[tag=score] {interpolation_duration:0,text:[{"translate":"score","with":[{"score":{"name":"@a[tag=playing,limit=1]","objective":"score.animate"},"color":"gold","bold":true}]},{"text":"\n (+","color":"gold","bold":true},{"score":{"name":"@a[tag=playing,limit=1]","objective":"score.toadd"},"color":"gold","bold":true},{"text":"0)","color":"gold","bold":true}]}
execute unless score @s score.toadd matches 21.. run scoreboard players add @s score.animate 10
execute unless score @s score.toadd matches 21.. run scoreboard players remove @s score.toadd 1
execute if score @s score.toadd matches 21.. run scoreboard players add @s score.animate 100
execute if score @s score.toadd matches 21.. run scoreboard players remove @s score.toadd 10
