Here Get a Command Block By doing in the chat do /give (Username) minecraft:command_block
now place it down copy the command below and paste it in the command block now place any redstone like a button and LSHIFT on the keyboard
and hold it and RCLICK the button Pass The Button Your Done Thats It for now