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

Whitespace in command in function not allowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.12.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      If whitespaces are inserted in a command in a function it does not execute. (fails silently)

      Example:
      Works:
      worldname/data/functions/test/test.mcfunction

      setblock ~-3 ~2 ~ minecraft:stonebrick
      setblock ~3 ~2 ~ minecraft:stonebrick
      setblock ~ ~2 ~-3 minecraft:stonebrick
      setblock ~ ~2 ~3 minecraft:stonebrick
      tellraw @p ["",{"text":"Test","color":"gold","bold":true}]
      

      Fails silently:
      worldname/data/functions/test/testfail.mcfunction

      setblock ~-3 ~2  ~   minecraft:stonebrick
      setblock ~3  ~2  ~   minecraft:stonebrick
      setblock ~   ~2  ~-3 minecraft:stonebrick
      setblock ~   ~2  ~3  minecraft:stonebrick
      tellraw @p ["",{"text":"Test","color":"gold","bold":true}]
      

      (The tellraw is printed)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              LB7IG Øystein Smith
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: