execute store result storage screenshake strength float 0.0001 run scoreboard players get @s screenshake_strength
execute store result storage screenshake strength_mid float 0.00005 run scoreboard players get @s screenshake_strength

execute if score @s screenshake_duration matches 1.. at @s run function main:mechanics/effects/screenshake/particle with storage screenshake
execute if score @s screenshake_duration matches -30..0 at @s run function main:mechanics/effects/screenshake/end
execute if score @s screenshake_duration matches -30.. run scoreboard players remove @s screenshake_duration 1