Commands with extra spaces between their arguments will not be executed by Minecraft via .mcfunction-files even though they will be executed just fine when triggered via the ingame CLI. Furthermore Minecraft wrongly reports that it executed those commands. This seems to apply to any command with multiple spaces between any of its arguments.
- Create a .mcfunction-file
into line 1
into line 2 (note the extra space between 0 and 64)
- save the file (duh!)
- /function example:file_you_just_saved
- See only the first armor stand being summoned and Minecraft wrongly reporting it executed two commands from the .mcfunction file
While I was made aware that commands with extra spaces don't work in Command Blocks either, I still consider this behaviour disfunctional. Almost every single compiler/interpreter out there doesn't care about tab stops or extra spaces (and neither do any other minecraft data files) because the alternative makes it almost impossible to write easy to read and properly aligned code. It's a usability issue.