scoreboard players set gate gate 0

fill 131 8 442 127 8 442 minecraft:iron_bars
execute as @a at @s run playsound minecraft:block.fence_gate.close ambient @s 129 6 442

schedule function mi:gate/gate5 1s