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

"tag" entity selector does not support colons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      Steps to reproduce:

      1. Drop a gunpowder item onto the ground
      2. Run:
        /data modify entity @n[type=item] Tags append from entity @n[type=item] Item.id

        The server should return the message Modified entity data of Gunpowder

      3. While near the same item, run:
        /tag @n[type=item] list

        The server should return The [X] entities have 1 total tags: minecraft:gunpowder

      4. Run:
        /tag @e remove minecraft:gunpowder

        or

        /execute if entity @n[type=item,tag=minecraft:gunpowder] run say hi

      Observed result:
      The server returns

      Expected whitespace to end one argument, but found trailing data
      ... minecraft:gunpowder<–[HERE]

      or

      Expected end of options
      ...=minecraft:gunpowder] run say hi<--[HERE]

      Expected result:
      The server returns

      Removed tag 'minecraft:gunpwoder' from [X] entities

            Unassigned Unassigned
            Firae Firae
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: