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

Command blocks ignore trailing spaces when checking syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 19w44a, 19w45b
    • Fix Version/s: 19w46a
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Normal

      Description

      The bug

      Command blocks trim spaces when checking syntax, but do not when running commands (which is hopefully intended). This leads to situations where no syntax error is shown, but the command will not be executed.

      Reproduction steps

      1. Paste the following in a command block (include the trailing spaces)
        setblock ~ ~1 ~ stone replace    
        

        No syntax error is shown

      2. Activate the command block
        It fails due to the trailing spaces

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slicedlime [Mojang] slicedlime
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: