stopsound @s master minecraft:block.anvil.destroy
stopsound @s master minecraft:block.anvil.land
execute at @s run playsound minecraft:block.anvil.destroy master @s ~ ~ ~ 0.3 0.9
execute if score @s weight.holdfor < @s weight.needholdmin run tellraw @s {"translate":"gym.weight.squat.toolittle","color":"red"}
execute if score @s weight.holdfor > @s weight.needholdmax run tellraw @s {"translate":"gym.weight.squat.toomuch","color":"red"}
scoreboard players set @s weight.holdfor 0
function ws:misc/gym/weightgenerate