execute on attacker at @s run particle block{block_state:"minecraft:ice"} ~ ~1 ~ 0.5 0.5 0.5 1 3 normal
execute on attacker at @s run particle block{block_state:"minecraft:snow"} ~ ~1 ~ 0.5 0.5 0.5 1 3 normal
execute on attacker run effect give @s minecraft:slowness 2 1 true
scoreboard players add @s freezing 1
execute at @s[scores={freezing=1}] run particle minecraft:snowflake ~ ~1 ~1 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=5}] run particle minecraft:snowflake ~0.5 ~1 ~0.5 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=9}] run particle minecraft:snowflake ~1 ~1 ~ 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=13}] run particle minecraft:snowflake ~0.5 ~1 ~-0.5 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=17}] run particle minecraft:snowflake ~ ~1 ~-1 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=21}] run particle minecraft:snowflake ~-0.5 ~1 ~-0.5 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=27}] run particle minecraft:snowflake ~-1 ~1 ~ 0.1 0.1 0.1 0 10
execute at @s[scores={freezing=31}] run particle minecraft:snowflake ~-0.5 ~1 ~0.5 0.1 0.1 0.1 0 10
scoreboard players set @s[scores={freezing=32..}] freezing 0
