scoreboard players set @s gym_cancel 0
scoreboard players set @s weight.holdfor 0
scoreboard players set @s weight.pushes 0
scoreboard players operation @s weight.squats = @s weight.level
scoreboard players add @s weight.squats 1
execute at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 1 1
tellraw @s [{"translate":"gym.weight.do","color":"white"},{"score":{"name":"*","objective":"weight.squats"},"color":"green"},{"translate":"gym.weight.squat","color":"white"}]
function ws:misc/gym/weightgenerate
attribute @s minecraft:generic.movement_speed modifier add weight -1 add_multiplied_total