execute at @e[tag=gatedoor] run function survivalplus:finale/gateunlocking_particles

playsound minecraft:block.grindstone.use block @a ~ ~-.4 ~ 2 0
scoreboard players reset keys
scoreboard players add doortimer timer 1
execute if score doortimer timer matches 70 as @e[tag=gatedoor] at @s run schedule function survivalplus:finale/gateunlock 2s
execute if score doortimer timer matches 70 run tag @e[tag=gatedoor] remove gateunlock
execute if score doortimer timer matches 70 run scoreboard players reset doortimer