-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 1.12
-
Java: 1.8.0_25 64bit
-
Unconfirmed
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.
Steps to reproduce:
- Create a .mcfunction-file
- put
summon minecraft:armor_stand -1 64 0
into line 1
- put
summon minecraft:armor_stand 0 64 0
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
Appendum
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.