This is a kind of trolling command block, which will be a great tool for making jokes on your friends. This contains dynamite blocks that are activated by hit; pigs that strike with lightning and many other things that confuse even professional players.
How to use Trolling Command Block
- Copy the command text from a file (Ctrl+A -> Ctrl+C)
- Launch the game and get a command block, to do this type in console /give @p command_block
- Put the command block on the ground
- Click on it right click and paste the command in the “Command console” (Ctrl+V)
- Activate the command block using the button or the lever