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

commands in functions can have preceding and trailing spaces and tabs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 20w51a, 21w03a, 1.16.5, 21w05b
    • None
    • Confirmed
    • Commands

      Commands in functions can have preceding and trailing spaces and tabs.

            xp add @s 1 levels         
      			tellraw @s {"text":"hello"}				
      clear @s cobblestone 1                 
      

      This can be conflicting in commands like /say, because it trims these characters.

      say Look! I'm not displaying the trailing spaces and tabs!!    		
      

      Preceding tabs and spaces may be intentional, because it then allows comments to be indented.

            Unassigned Unassigned
            ErrorCraft ErrorCraft
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: