execute at @e[tag=gatedoor] run playsound minecraft:block.beacon.power_select master @a ~ ~ ~ 2 0
execute at @e[tag=gatedoor] run playsound minecraft:block.beacon.deactivate master @a ~ ~ ~ 2 .5
execute at @e[tag=gatedoor] run fill ^-3 ^-4 ^ ^3 ^6 ^ air destroy
#execute at @e[tag=gatedoor] run fill ~-3 ~-4 ~ ~3 ~6 ~ air destroy
tag @e[type=item,nbt={Item:{id:"minecraft:polished_blackstone_wall"},Age:0s}] add delgate
tag @e[type=item,nbt={Item:{id:"minecraft:iron_bars"},Age:0s}] add delgate
kill @e[tag=delgate]
execute at @e[tag=ng+portal] run setblock ~ ~ ~ white_stained_glass
execute as @e[tag=gatedoor] run kill @s