Be aware that using this tool requires JavaScript

Input Output
Remove afterwards:
Nothing
Minecarts
Minecarts and command block
This tool helps to execute several commands in a single command block
Just write the list of commands in the textarea on the left seperated by new lines.
Press "Generate" and copy the output on the right side into an command block.

Lines starting with #, // and -- will be ignored as well as empty lines.

Lines starting with anything other than letters or / will be added to the previous line with no white space in between.
Note that this also goes for lines starting with whitespace.