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

Empty coordinates in commands are allowed, and will be interpreted as 0 0 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 1.16.3, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b
    • None
    • Community Consensus
    • Commands
    • Normal
    • Platform

      Empty coordinates in commands are allowed, and will be interpreted as 0 0 0. Do note that this does not work if the commands are executed via chat, because it also trims spaces in between values. No error is thrown if you just paste the command, though.

      particle barrier       1 1 force
      teleport @a    facing ~ ~ ~
      clone          replace force
      

      This does not seem to happen if you do not include any additional values. The following commands are marked as incorrect: (This will not work in functions, because spaces get trimmed at the end of commands. See MC-198110)

      particle barrier       
      teleport @a    
      clone          
      

            Unassigned Unassigned
            ErrorCraft ErrorCraft
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: