Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-120962

Functions don't work if UTF-8 file is encoded with a BOM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12.2
    • None
    • Unconfirmed

      How To Fix This Bug:
      If you are experiencing this bug, it might be because your UTF-8 encoded file is encoded with a BOM. To fix this, I downloaded Notepad++, and from the top bar, clicked Encoding > Encode in UTF-8.

      Special thanks to jirauser71590 and violine1101 for their help.

      Original Bug Report:
      So I was playing on one of my worlds that uses a lot of chain command blocks, when I heard about functions. Naturally, I wanted to try them out. I was able to get one of my chain commands to work, but for some reason, others don't the game seems to arbitrarily decide which functions to recognize. I always used /reload to load any changes I made, I always used UTF-8 encoding, and like I said earlier, I got one of my chain commands to work. However, some of my commands don't work, and I have no clue why. I have included the functions I have tried to use and screenshots of them working (or not) to help aid in this bug fixing. Thanks!

      Edit:
      After looking at the log file (thanks jirauser71590), the error appeared to be that the mcfunction reader didn't believe that "execute" or "tellraw" were valid commands.

        1. Removing BOM's from UTF-8 mcfunctions.png
          73 kB
          Andrew H
        2. launcher_log.txt
          555 kB
          Andrew H
        3. image-2017-10-03-15-33-01-689.png
          199 kB
          Andrew H
        4. mobOneBackup.mcfunction
          0.4 kB
          Andrew H
        5. mobone.mcfunction
          0.0 kB
          Andrew H
        6. mobone.mcfunction
          0.4 kB
          Andrew H
        7. rocketboy_next location.png
          9 kB
          Andrew H
        8. rocketboy_spawn location.png
          6 kB
          Andrew H
        9. 2017-10-03_14.21.36.png
          284 kB
          Andrew H
        10. 2017-10-03_14.11.39.png
          234 kB
          Andrew H
        11. 2017-10-03_14.10.58.png
          252 kB
          Andrew H

            Unassigned Unassigned
            Rocketboy314 Andrew H
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: