Hey everyone, I made my first command machine ( well, you only see one of the command blocks ). It does as the title says.
If you'd like to make this multiplayer compatible, replace all @p with your username.
This is the first version to the command. If there are any problems or suggestions, put them in the comments!