scoreboard players tag @e[tag=Ressurect] remove Freezed
scoreboard players reset @e[tag=Ressurect] FreezedSince
execute @e[tag=Ressurect] ~ ~ ~ scoreboard players tag @s[tag=SpawnAI] remove SpawnAI

execute @e[tag=Ressurect] ~ ~ ~ kill @e[type=area_effect_cloud,c=1,r=2,tag=KillFreezed]
execute @e[tag=Ressurect] ~ ~ ~ kill @e[type=area_effect_cloud,c=1,r=1,name=Pos]
execute @e[tag=Ressurect] ~ ~ ~ scoreboard players operation TempMemory IceNumber = @e[tag=Ressurect] IceNumber
execute @e[tag=Ressurect] ~ ~ ~ scoreboard players reset @e[tag=Ressurect] IceNumber
execute @e[tag=Ressurect] ~ ~ ~ scoreboard players operation @e[name=IcePlacer,type=area_effect_cloud] IceNumber -= TempMemory IceNumber
execute @e[tag=Ressurect] ~ ~ ~ kill @e[type=area_effect_cloud,score_IceNumber_min=0,score_IceNumber=0]
execute @e[tag=Ressurect] ~ ~ ~ scoreboard players operation @e[name=IcePlacer,type=area_effect_cloud] IceNumber += TempMemory IceNumber
scoreboard players reset TempMemory IceNumber

execute @e[tag=Ressurect,c=1] ~ ~ ~ tellraw @a[tag=InGame] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"selector":"@e[tag=Ressurect]","color":"dark_aqua"},{"text":" ","color":"dark_aqua"},{"text":"has been saved.","color":"green"}]

execute @e[tag=Ressurect] ~ ~ ~ particle blockcrack ~ ~1.2 ~ 0.2 0.5 0.2 1 100 normal @a 79
execute @e[tag=Ressurect] ~ ~ ~ playsound minecraft:block.glass.break ambient @a[r=50] ~ ~ ~ 1
execute @e[tag=Ressurect] ~ ~ ~ playsound minecraft:block.glass.break ambient @a[r=50] ~ ~ ~ 1
execute @e[tag=Ressurect] ~ ~ ~ playsound minecraft:block.glass.break ambient @a[r=50] ~ ~ ~ 1
execute @e[tag=Ressurect,type=villager] ~ ~ ~ entitydata @s {NoAI:0b}
execute @e[tag=Ressurect] ~ ~ ~ scoreboard players tag @e[tag=Follower,r=10] remove Follower
execute @e[tag=Ressurect] ~ ~ ~ tp @e[type=zombie,tag=InnocentAI,r=10,c=1] ~ ~-256 ~
scoreboard teams join Innocent @e[tag=Ressurect]
scoreboard players tag @e[tag=Ressurect] add Innocent
function main:scoreboard/game if @e[tag=Ressurect]
scoreboard players tag @e[tag=Ressurect] remove Ressurect