execute unless score @s treadmill.level matches 4.. run return run function ws:item/return_balaclava
execute at @s run playsound minecraft:entity.player.levelup player @s ~ ~ ~ 0.5 1.5
tellraw @s {"translate":"unishop.item.balaclava.levelup","color":"dark_green"}
scoreboard players remove @s stat.base_move_speed 3
scoreboard players remove @s treadmill.level 3
execute store result storage ws:temp stats.amount float 0.01 run scoreboard players get @s stat.base_move_speed
data modify storage ws:temp stats.attribute_type set value 'generic.movement_speed'
data modify storage ws:temp stats.operation set value 'add_value'
function ws:misc/stats/update with storage ws:temp stats
scoreboard players add @s stat.balaclava 1
execute store result storage ws:temp stats.amount float 0.15 run scoreboard players get @s stat.balaclava
data modify storage ws:temp stats.attribute_type set value 'player.sneaking_speed'
data modify storage ws:temp stats.operation set value 'add_value'
function ws:misc/stats/update with storage ws:temp stats