How to start with it:
1: Put cheats on.
2: /give @p command_block
3: Chop a tree and craft a button.
4: Go to Creative: /gamemode 1
5: Place the command block and paste the command inside its GUI.
6: Place the button on it and press it.
7: Break the command block (Don't break the button. Break the command block to get it)
8: /gamemode 0, turn of cheats, and your done!