title @a[scores={weight.holdfor=0}] actionbar {"translate":"gym.weight.jumptocancel"}
execute at @a[scores={weight.holdfor=1}] run playsound minecraft:block.chain.fall player @a ~ ~ ~ 0.5 1
execute as @a[scores={weight.holdfor=1..}] if score @s weight.holdfor >= @s weight.needholdmin if score @s weight.holdfor <= @s weight.needholdmax run title @s actionbar {"score":{"name":"*","objective":"weight.holdfor"},"color":"dark_green"}
execute as @a[scores={weight.holdfor=1..}] if score @s weight.holdfor > @s weight.needholdmax run title @s actionbar {"score":{"name":"*","objective":"weight.holdfor"},"color":"dark_red"}
execute as @a[scores={weight.holdfor=1..}] if score @s weight.holdfor < @s weight.needholdmin run title @s actionbar {"score":{"name":"*","objective":"weight.holdfor"},"color":"white"}
