execute @a[tag=Innocent,score_UseSnowball_min=1] ~ ~ ~ summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:"UnFreeze",Duration:200}
execute @a[tag=Murder,score_UseSnowball_min=1] ~ ~ ~ summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:"Freeze",Duration:200}

execute @a[tag=Innocent,score_UseSnowball_min=1] ~ ~ ~ scoreboard players tag @e[type=snowball,r=2,c=1] add UnFreeze
execute @a[tag=Murder,score_UseSnowball_min=1] ~ ~ ~ scoreboard players tag @e[type=snowball,r=2,c=1] add Freeze

scoreboard players reset @a[score_UseSnowball_min=1] UseSnowball

execute @e[tag=Freeze,type=snowball] ~ ~ ~ particle fallingdust ~ ~ ~ 0.1 0.1 0.1 1 1 1 @a 80
execute @e[tag=Freeze,type=snowball] ~ ~ ~ particle fallingdust ~ ~ ~ 0.1 0.1 0.1 1 10 1 @a 79
execute @e[tag=UnFreeze,type=snowball] ~ ~ ~ particle fallingdust ~ ~ ~ 0.1 0.1 0.1 1 1 1 @a 80
execute @e[tag=UnFreeze,type=snowball] ~ ~ ~ particle fallingdust ~ ~ ~ 0.1 0.1 0.1 1 10 1 @a 79
execute @e[tag=UnFreeze,type=snowball] ~ ~ ~ teleport @e[name=UnFreeze,type=area_effect_cloud,c=1] ~ ~ ~
execute @e[tag=Freeze,type=snowball] ~ ~ ~ teleport @e[name=Freeze,type=area_effect_cloud,c=1] ~ ~ ~

scoreboard players tag @e[name=UnFreeze,type=area_effect_cloud] add TestForSnowball
scoreboard players tag @e[name=Freeze,type=area_effect_cloud] add TestForSnowball

execute @e[tag=UnFreeze,type=snowball] ~ ~ ~ scoreboard players tag @e[name=UnFreeze,type=area_effect_cloud,c=1] remove TestForSnowball
execute @e[tag=Freeze,type=snowball] ~ ~ ~ scoreboard players tag @e[name=Freeze,type=area_effect_cloud,c=1] remove TestForSnowball

execute @e[tag=TestForSnowball,name=UnFreeze,type=area_effect_cloud] ~ ~ ~ execute @e[tag=Freezed,c=1,r=3] ~ ~ ~ particle fireworksSpark ~ ~1 ~ 0 0 0 0.2 100 0 @a
execute @e[tag=TestForSnowball,name=UnFreeze,type=area_effect_cloud] ~ ~ ~ scoreboard players tag @e[tag=Freezed,c=1,r=3] add Ressurect

execute @e[tag=TestForSnowball,name=UnFreeze,type=area_effect_cloud] ~ ~ ~ execute @e[tag=Murder,c=1,r=3] ~ ~ ~ particle fireworksSpark ~ ~1 ~ 0 0 0 0.2 100 0 @a
execute @e[tag=TestForSnowball,name=UnFreeze,type=area_effect_cloud] ~ ~ ~ scoreboard players tag @e[tag=Murder,c=1,r=3] add SlownessSnowball

effect @e[tag=SlownessSnowball] slowness 5 1 true
tellraw @a[tag=SlownessSnowball] {"text":"You get slowness"}
scoreboard players tag @e[tag=SlownessSnowball] remove SlownessSnowball

execute @e[tag=TestForSnowball,name=Freeze,type=area_effect_cloud] ~ ~ ~ execute @e[tag=Innocent,c=1,r=3] ~ ~ ~ particle fireworksSpark ~ ~1 ~ 0 0 0 0.2 100 0 @a
execute @e[tag=TestForSnowball,name=Freeze,type=area_effect_cloud] ~ ~ ~ scoreboard players tag @e[tag=Innocent,c=1,r=3] add FreezedInit


kill @e[tag=TestForSnowball,type=area_effect_cloud]