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

Whitespace in command in function not allowed

XMLWordPrintable

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

      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)

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

              Created:
              Updated:
              Resolved: