Security Machine

A security machine is a 3x3x3 box located outside of many stations and sporadically found in the wilderness. They house a repeating, always active command block which tests for a scoreboard value of 0 for Security, which is triggered by not having the AccessGranted tag that lets you into the main world. If the value for a player in the radius of the box has a value of 0, the box will teleport the player to a special room which takes them to another room to get the AccessGranted tag. The AccessGranted tag lets players into the main world, but can only be given to a player that is in the special room and an admin gives them the tag using a machine in an undisclosed area.