mojira.dev
MC-165061

Command blocks ignore trailing spaces when checking syntax

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

Linked issues

Comments 0

No comments.

marcono1234

slicedlime

Confirmed

Normal

Commands

command_block

19w44a, 19w45b

19w46a

Retrieved