execute @e[name=main] ~ ~ ~ function sequencing/chap5/reset/local_reset

execute @e[type=dragon:world_pedestal_offering,x=-801,y=205,z=-489,r=5,c=1] ~ ~ ~ function sequencing/chap5/reset/entities/reset_pedestal
execute @e[type=dragon:npc_character_blue_boss,x=-786,y=205,z=-489,r=5] ~ ~ ~ function sequencing/chap5/reset/entities/reset_npc

tag @e[type=dragon:ancient_blue] add despawn

scoreboard players reset @e[name=main] reset_counter
scoreboard players reset @s reset_counter

scoreboard players set @e[name=main] chap_5_event -1