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

/give and /clear behave differently when the component field ends with ",".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.5 Pre-Release 2
    • Confirmed
    • Commands

      /give and /clear behave differently when the component field ends with ",".

      These behaviors should be uniform.

       

      Example:

      /give @s minecraft:acacia_boat[minecraft:custom_data={bar:1},] 

      Result: You get the item.

       

      /clear @s minecraft:acacia_boat[minecraft:custom_data={bar:1},] 

      Result: Syntax error.

        1. clear.png
          clear.png
          591 kB
        2. give.png
          give.png
          594 kB

            Unassigned Unassigned
            KZK1945 KZK1945
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: