However, withdrawal from caffeine is seldom dangerous, though it can make one uncomfortable for a few days. The most frequent symptom associated with this withdrawal is a moderate to severe headache. This can occur between 12 and 24 hours after last intake of caffeine.
Okay, for step one you need to get the command blocks in your inventory. Make sure you have cheats ON and say /give (player name) command_block. After you get in in your inventory place 5 in a row.
Also worth learning is that the code you write in the command console (when you press the t key), is the same code that is used by a command block. So you can right click a command block and type: /give @p diamond 64. Then, add any random block directly next to the command block and add a button.