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

execute @e[type=dragon:world_pedestal_offering,x=-191,y=93,z=705,r=5,c=1] ~ ~ ~ function sequencing/chap3/reset/entities/reset_pedestal
execute @e[type=dragon:stone_door,x=-191,y=95,z=717,r=5,c=1] ~ ~ ~ function sequencing/chap3/reset/entities/reset_door
execute @e[type=dragon:npc_character_green_boss,x=-160,y=88,z=805,r=5] ~ ~ ~ function sequencing/chap3/reset/entities/reset_npc

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

function sequencing/chap3/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_3_event -1