## Runs when a the Ender Lord walks into the center of the portal, on to the custom ldz:portal_platform blocks
## Runs from on_exit out of intro _version in controller.animation.fares_portal.morph_check
## @s = ldz:fares_portal

event entity @s set_intro_version_to_1

event entity @e[type=ldz:tutorial_ender_lord] despawn

fill 103 166 66 105 166 68 lava

event entity @e[type=ldz:fares_portal] set_portal_swirl_to_false
event entity @e[type=ldz:fares_portal] set_beast_to_false
event entity @e[type=ldz:fares_portal] set_charger_to_false
event entity @e[type=ldz:fares_portal] set_chef_to_false
event entity @e[type=ldz:fares_portal] set_chiller_to_false
event entity @e[type=ldz:fares_portal] set_gardener_to_false
event entity @e[type=ldz:fares_portal] set_hydro_to_false
event entity @e[type=ldz:fares_portal] set_mystic_to_false
event entity @e[type=ldz:fares_portal] set_scorcher_to_false
event entity @e[type=ldz:fares_portal] set_scourge_to_false
event entity @e[type=ldz:fares_portal] set_troll_to_false
event entity @e[type=ldz:fares_portal] set_vanilla_to_false
event entity @e[type=ldz:fares_portal] set_wraith_to_false

event entity @e[type=ldz:fares_portal_dummy] despawn

scoreboard objectives add FaresPortal dummy

summon ldz:fares_portal_dummy 109.0 168 74 0 0 beast
summon ldz:fares_portal_dummy 97 168 63 0 0 charger
summon ldz:fares_portal_dummy 97 168 72 0 0 chef
summon ldz:fares_portal_dummy 111 168 69 0 0 chiller
summon ldz:fares_portal_dummy 97 168 69 0 0 gardener
summon ldz:fares_portal_dummy 97 168 66 0 0 hydro
summon ldz:fares_portal_dummy 106.0 168 74 0 0 mystic
summon ldz:fares_portal_dummy 111 168 66 0 0 scorcher
summon ldz:fares_portal_dummy 100.0 168 74 0 0 scourge
summon ldz:fares_portal_dummy 111 168 72 0 0 troll
summon ldz:fares_portal_dummy 111 168 63 0 0 vanilla
summon ldz:fares_portal_dummy 103.0 168 74 0 0 wraith

scoreboard players add @e[type=ldz:fares_portal_dummy] FaresPortal 1


playsound entity.fares_portal.power_down @a ~ ~ ~ 1 3
# summon lightning_bolt 104 167 67
#say portal setup