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

execute @e[type=dragon:world_pedestal_offering,x=530,y=66,z=234,r=5,c=1] ~ ~ ~ function sequencing/chap4/reset/entities/reset_pedestal
execute @e[type=dragon:stone_door,x=528,y=67,z=247,r=5,c=1] ~ ~ ~ function sequencing/chap4/reset/entities/reset_door
execute @e[type=dragon:npc_character_gold_boss,x=528,y=68,z=284,r=5] ~ ~ ~ function sequencing/chap4/reset/entities/reset_npc

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

function sequencing/chap4/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_4_event -1