scoreboard players add @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=1] HowToAnimation 1
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=2,score_HowToAnimation=2] ~ ~ ~ setblock 481 81 499 minecraft:stained_hardened_clay 14
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=2,score_HowToAnimation=2] ~ ~ ~ blockdata 481 81 500 {Text1:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Animation\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"started\",\"bold\":true,\"color\":\"dark_aqua\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=2,score_HowToAnimation=2] ~ ~ ~ fill 481 81 498 481 84 498 air
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=4,score_HowToAnimation=4] ~ ~ ~ fill 480 81 498 482 83 498 air
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=6,score_HowToAnimation=6] ~ ~ ~ fill 479 81 498 483 83 498 air
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=8,score_HowToAnimation=8] ~ ~ ~ fill 478 81 498 484 83 498 air
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=10,score_HowToAnimation=10] ~ ~ ~ fill 477 81 498 485 83 498 air

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ setblock 478 84 496 minecraft:sea_lantern
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ summon minecraft:villager 478 81 496 {Rotation:[-90f,0.0f],Silent:1b,NoAI:1b,Offers:{},CustomName:"HowToUnfreezeInnocent"}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ summon minecraft:armor_stand 478 80.8 496 {CustomName:"§a§lInnocent",CustomNameVisible:1b,NoGravity:1b,Tags:["HowToUnreezeInnocentFreezed"],Invisible:1b}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ execute @e[name=HowToUnfreezeInnocent,type=villager] ~ ~ ~ summon area_effect_cloud ~ ~1.5 ~ {CustomName:"✻ §b§lFrozen§r ✻",CustomNameVisible:1b,Duration:160,Tags:["KillFreezed"]}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ execute @e[name=HowToUnfreezeInnocent,type=villager] ~ ~ ~ summon falling_block ~ ~-0.9 ~ {CustomName:"HowToUnfreezeIce",NoGravity:1b,Block:ice,Data:0,Time:1,DropItem:0}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=180] ~ ~ ~ tp @e[type=falling_block,name=HowToUnfreezeIce] ~ ~0.0031 ~
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=180] ~ ~ ~ execute @e[name=HowToUnfreezeInnocent,type=villager] ~ ~ ~ particle fallingdust ~ ~1.2 ~ 0.2 0.5 0.2 1 5 normal @a 80
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=180] ~ ~ ~ execute @e[name=HowToUnfreezeInnocent,type=villager] ~ ~ ~ particle fallingdust ~ ~1.2 ~ 0.2 0.5 0.2 1 1 normal @a 79

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=30,score_HowToAnimation=30] ~ ~ ~ setblock 484 84 496 minecraft:sea_lantern
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=30,score_HowToAnimation=30] ~ ~ ~ summon minecraft:villager 484 81 496 {Rotation:[90f,0.0f],Silent:1b,NoAI:1b,Offers:{},CustomName:"HowToUnfreezeNotFreezed"}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=30,score_HowToAnimation=30] ~ ~ ~ summon minecraft:armor_stand 484 80.8 496 {CustomName:"§a§lInnocent",CustomNameVisible:1b,NoGravity:1b,Tags:["HowToUnfreezeNotFreezed"],Invisible:1b}

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=35,score_HowToAnimation=35] ~ ~ ~ summon minecraft:area_effect_cloud 481 81.6 496 {CustomName:"§bTo §3unfreeze §ba frozen Innocent,",CustomNameVisible:1b,Duration:65}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=35,score_HowToAnimation=35] ~ ~ ~ summon minecraft:area_effect_cloud 481 81.35 496 {CustomName:"§3get close §bto them.",CustomNameVisible:1b,Duration:65}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=35,score_HowToAnimation=35] ~ ~ ~ summon minecraft:area_effect_cloud 481 81.1 496 {CustomName:"§b§o(minimum 1 block)",CustomNameVisible:1b,Duration:65}

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=100,score_HowToAnimation=125] ~ ~ ~ tp @e[name=HowToUnfreezeNotFreezed,type=villager] ~-0.20 ~ ~
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=100,score_HowToAnimation=125] ~ ~ ~ tp @e[tag=HowToUnfreezeNotFreezed,type=armor_stand] ~-0.20 ~ ~

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=130,score_HowToAnimation=130] ~ ~ ~ summon minecraft:area_effect_cloud 482 81.6 496 {CustomName:"§bNow §3wait §b3 seconds,",CustomNameVisible:1b,Duration:60}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=130,score_HowToAnimation=130] ~ ~ ~ summon minecraft:area_effect_cloud 482 81.35 496 {CustomName:"§buntil the §c❤❤❤❤❤ §bare §3all green",CustomNameVisible:1b,Duration:60,Tags:["HowToUnfreezeHeart"]}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=140,score_HowToAnimation=140] ~ ~ ~ entitydata @e[tag=HowToUnfreezeHeart,type=area_effect_cloud] {CustomName:"§buntil the §a❤§c❤❤❤❤ §bare §3all green"}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=150,score_HowToAnimation=150] ~ ~ ~ entitydata @e[tag=HowToUnfreezeHeart,type=area_effect_cloud] {CustomName:"§buntil the §a❤❤§c❤❤❤ §bare §3all green"}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=160,score_HowToAnimation=160] ~ ~ ~ entitydata @e[tag=HowToUnfreezeHeart,type=area_effect_cloud] {CustomName:"§buntil the §a❤❤❤§c❤❤ §bare §3all green"}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=170,score_HowToAnimation=170] ~ ~ ~ entitydata @e[tag=HowToUnfreezeHeart,type=area_effect_cloud] {CustomName:"§buntil the §a❤❤❤❤§c❤ §bare §3all green"}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=180,score_HowToAnimation=180] ~ ~ ~ entitydata @e[tag=HowToUnfreezeHeart,type=area_effect_cloud] {CustomName:"§buntil the §a❤❤❤❤❤ §bare §3all green"}

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=180,score_HowToAnimation=180] ~ ~ ~ kill @e[type=falling_block,name=HowToUnfreezeIce]
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=180,score_HowToAnimation=180] ~ ~ ~ execute @e[name=HowToUnfreezeInnocent,type=villager] ~ ~ ~ particle happyVillager ~ ~ ~ 0.4 1 0.4 1 50 1 @a

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=195,score_HowToAnimation=195] ~ ~ ~ summon minecraft:area_effect_cloud 482 81.6 496 {CustomName:"§bThere you go, this Innocent",CustomNameVisible:1b,Duration:75}
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=195,score_HowToAnimation=195] ~ ~ ~ summon minecraft:area_effect_cloud 482 81.35 496 {CustomName:"§bis now §3unfrozen§b.",CustomNameVisible:1b,Duration:75}

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=255,score_HowToAnimation=255] ~ ~ ~ setblock 484 84 496 air
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=260,score_HowToAnimation=260] ~ ~ ~ setblock 478 84 496 air

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=265,score_HowToAnimation=265] ~ ~ ~ fill 485 81 498 485 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=265,score_HowToAnimation=265] ~ ~ ~ fill 477 81 498 477 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=267,score_HowToAnimation=267] ~ ~ ~ fill 484 81 498 484 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=267,score_HowToAnimation=267] ~ ~ ~ fill 478 81 498 478 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=269,score_HowToAnimation=269] ~ ~ ~ fill 483 81 498 483 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=269,score_HowToAnimation=269] ~ ~ ~ fill 479 81 498 479 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=271,score_HowToAnimation=271] ~ ~ ~ fill 482 81 498 482 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=271,score_HowToAnimation=271] ~ ~ ~ fill 480 81 498 480 83 498 minecraft:concrete 15
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=273,score_HowToAnimation=273] ~ ~ ~ fill 481 81 498 481 84 498 minecraft:concrete 15

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=274,score_HowToAnimation=274] ~ ~ ~ tp @e[name=HowToUnfreezeInnocent,type=villager] ~ ~-256 ~
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=274,score_HowToAnimation=274] ~ ~ ~ tp @e[name=HowToUnfreezeNotFreezed,type=villager] ~ ~-256 ~
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=274,score_HowToAnimation=274] ~ ~ ~ kill @e[name=HowToUnfreezeInnocent,type=villager]
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=274,score_HowToAnimation=274] ~ ~ ~ kill @e[name=HowToUnfreezeNotFreezed,type=villager]
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=274,score_HowToAnimation=274] ~ ~ ~ kill @e[tag=HowToUnreezeInnocentFreezed,type=armor_stand]
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=274,score_HowToAnimation=274] ~ ~ ~ kill @e[tag=HowToUnfreezeNotFreezed,type=armor_stand]

execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=275,score_HowToAnimation=275] ~ ~ ~ setblock 481 81 499 minecraft:stained_hardened_clay 5
execute @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=275,score_HowToAnimation=275] ~ ~ ~ blockdata 481 81 500 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players set @e[name=HowToUnfreeze] HowToAnimation 1\"},\"color\":\"dark_gray\"}",Text2:"[\"\",{\"text\":\"How to\",\"color\":\"aqua\"},{\"text\":\" \",\"color\":\"dark_gray\"},{\"text\":\"Unfreeze\",\"bold\":false,\"color\":\"dark_aqua\"}]",Text3:"[\"\",{\"text\":\"(\",\"color\":\"gold\"},{\"text\":\"Click to start\",\"color\":\"dark_gray\"},{\"text\":\")\",\"color\":\"gold\"}]",Text4:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"playsound minecraft:ui.button.click master @p ~ ~ ~\"},\"color\":\"dark_gray\"}"}

scoreboard players set @e[name=HowToUnfreeze,type=armor_stand,score_HowToAnimation_min=275] HowToAnimation 0