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

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

              Created:
              Updated:
              Resolved: