scoreboard players add @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=1] HowToAnimation 1
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=2,score_HowToAnimation=2] ~ ~ ~ setblock 481 81 503 minecraft:stained_hardened_clay 14
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=2,score_HowToAnimation=2] ~ ~ ~ blockdata 481 81 502 {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=HowToFreeze,type=armor_stand,score_HowToAnimation_min=2,score_HowToAnimation=2] ~ ~ ~ fill 481 81 504 481 84 504 air
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=4,score_HowToAnimation=4] ~ ~ ~ fill 482 81 504 480 84 504 air
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=6,score_HowToAnimation=6] ~ ~ ~ fill 483 81 504 479 83 504 air
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=8,score_HowToAnimation=8] ~ ~ ~ fill 484 81 504 478 84 504 air
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=10,score_HowToAnimation=10] ~ ~ ~ fill 485 81 504 477 83 504 air

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ setblock 478 84 506 minecraft:sea_lantern
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ summon minecraft:villager 478 81 506 {Rotation:[-90f,0.0f],Silent:1b,NoAI:1b,Offers:{},CustomName:"HowToFreezeInnocent"}
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=20,score_HowToAnimation=20] ~ ~ ~ summon minecraft:armor_stand 478 80.8 506 {CustomName:"§a§lInnocent",CustomNameVisible:1b,NoGravity:1b,Tags:["HowToFreezeInnocent"],Invisible:1b}

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

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=35,score_HowToAnimation=35] ~ ~ ~ summon minecraft:area_effect_cloud 481 81.8 506 {CustomName:"§bTo §3freeze §ban innocent,",CustomNameVisible:1b,Duration:65}
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=35,score_HowToAnimation=35] ~ ~ ~ summon minecraft:area_effect_cloud 481 81.55 506 {CustomName:"§3get close §bto them.",CustomNameVisible:1b,Duration:65}
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=35,score_HowToAnimation=35] ~ ~ ~ summon minecraft:area_effect_cloud 481 81.3 506 {CustomName:"§b§o(minimum 2 blocks)",CustomNameVisible:1b,Duration:65}

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=100,score_HowToAnimation=123] ~ ~ ~ tp @e[name=HowToFreezeMurder,type=villager] ~-0.20 ~ ~
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=100,score_HowToAnimation=123] ~ ~ ~ tp @e[tag=HowToFreezeMurder,type=armor_stand] ~-0.20 ~ ~

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=123,score_HowToAnimation=123] ~ ~ ~ execute @e[name=HowToFreezeInnocent,type=villager] ~ ~ ~ summon area_effect_cloud ~ ~1.5 ~ {CustomName:"✻ §b§lFrozen§r ✻",CustomNameVisible:1b,Duration:100,Tags:["KillFreezed"]}
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=123,score_HowToAnimation=123] ~ ~ ~ execute @e[name=HowToFreezeInnocent,type=villager] ~ ~ ~ summon falling_block ~ ~-0.9 ~ {CustomName:"HowToFreezeIce",NoGravity:1b,Block:ice,Data:0,Time:1,DropItem:0}
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=123,score_HowToAnimation=210] ~ ~ ~ tp @e[type=falling_block,name=HowToFreezeIce] ~ ~0.0031 ~
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=123,score_HowToAnimation=210] ~ ~ ~ execute @e[name=HowToFreezeInnocent,type=villager] ~ ~ ~ particle fallingdust ~ ~1.2 ~ 0.2 0.5 0.2 1 5 normal @a 80
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=123,score_HowToAnimation=210] ~ ~ ~ execute @e[name=HowToFreezeInnocent,type=villager] ~ ~ ~ particle fallingdust ~ ~1.2 ~ 0.2 0.5 0.2 1 1 normal @a 79

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=140,score_HowToAnimation=140] ~ ~ ~ summon minecraft:area_effect_cloud 482 82 506 {CustomName:"§bThere you go, this Innocent",CustomNameVisible:1b,Duration:75}
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=140,score_HowToAnimation=140] ~ ~ ~ summon minecraft:area_effect_cloud 482 81.8 506 {CustomName:"§bis now §3frozen§b.",CustomNameVisible:1b,Duration:75}

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=200,score_HowToAnimation=200] ~ ~ ~ setblock 484 84 506 minecraft:air
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=205,score_HowToAnimation=205] ~ ~ ~ setblock 478 84 506 minecraft:air

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=210,score_HowToAnimation=210] ~ ~ ~ fill 485 81 504 485 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=210,score_HowToAnimation=210] ~ ~ ~ fill 477 81 504 477 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=212,score_HowToAnimation=212] ~ ~ ~ fill 484 81 504 485 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=212,score_HowToAnimation=212] ~ ~ ~ fill 478 81 504 477 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=214,score_HowToAnimation=214] ~ ~ ~ fill 483 81 504 485 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=214,score_HowToAnimation=214] ~ ~ ~ fill 479 81 504 477 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=216,score_HowToAnimation=216] ~ ~ ~ fill 482 81 504 485 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=216,score_HowToAnimation=216] ~ ~ ~ fill 480 81 504 477 83 504 minecraft:concrete 15
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=218,score_HowToAnimation=218] ~ ~ ~ fill 481 81 504 481 84 504 minecraft:concrete 15

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ tp @e[name=HowToFreezeInnocent,type=villager] ~ ~-256 ~
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ tp @e[name=HowToFreezeMurder,type=villager] ~ ~-256 ~
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ kill @e[name=HowToFreezeInnocent,type=villager]
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ kill @e[name=HowToFreezeMurder,type=villager]
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ kill @e[tag=HowToFreezeInnocent,type=armor_stand]
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ kill @e[tag=HowToFreezeMurder,type=armor_stand]
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=219,score_HowToAnimation=219] ~ ~ ~ kill @e[type=falling_block,name=HowToFreezeIce]

execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=220,score_HowToAnimation=220] ~ ~ ~ setblock 481 81 503 minecraft:stained_hardened_clay 5
execute @e[name=HowToFreeze,type=armor_stand,score_HowToAnimation_min=220,score_HowToAnimation=220] ~ ~ ~ blockdata 481 81 502 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players set @e[name=HowToFreeze] HowToAnimation 1\"},\"color\":\"dark_gray\"}",Text2:"[\"\",{\"text\":\"How to\",\"color\":\"aqua\"},{\"text\":\" \",\"color\":\"dark_gray\"},{\"text\":\"Freeze\",\"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=HowToFreeze,type=armor_stand,score_HowToAnimation_min=220] HowToAnimation 0