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

execute @e[type=dragon:world_pedestal_offering,x=216,y=96,z=-451,r=5,c=1] ~ ~ ~ function sequencing/chap6/reset/entities/reset_pedestal
execute @e[type=dragon:stone_door,x=203,y=96,z=-451,r=5,c=1] ~ ~ ~ function sequencing/chap6/reset/entities/reset_door
execute @e[type=dragon:npc_character_red_boss,x=134,y=94,z=-454,r=5] ~ ~ ~ function sequencing/chap6/reset/entities/reset_npc

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

function sequencing/chap6/reset/world/reset_blocks

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

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