I tried naming a function test.txt
by forgetting to add the .mcfunction at the end, but the game still noticed the file. And because "txt" is 7 characters less than "mcfunction", the function name was cut off so it tried to load a function with a name length of less than 0 which caused an error.
Linked issues
is duplicated by 7
relates to 1
Attachments
Comments 8
Please update this to the correct versions- this still affects 17w45b, and prevents all mac users from using functions at all.
This seems to not apply to the new snapshot. Seems like they've indirectly fixed it. 🙂
EDIT: They only fixed this problem for functions. Loot tables, and advancements are still affected.
I still experience this bug in 17w47b with the filepath being data/(namespace)/functions/test.txt
If I use /reload it just comes up with the message String index out of range: -3
which is fine, but if I load up the map, the game crashes (Or rather it stops responding, which forces me to kill the process).
A proposed fix is to ignore files that don't have the necessary [a-z0-9/._-] format or correct file extension instead of stopping the entire datapack from being loaded or crashing the game.
Via MC-123516 appears to not be fixed for .DS_Store
Can confirm: