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

Entities can be summoned with selector tags that cannot be selected for

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.13, Minecraft 1.13.1, 20w10a, 1.16.2
    • None
    • Confirmed
    • Commands

      The bug

      Entities can be summoned with Tags entries containing spaces. However, neither the tag argument selector nor the /tag command support them.

      How to reproduce

      1. /summon minecraft:creeper ~ ~ ~ {Tags:["hi there"]}
        
      2. Try the following
        /execute if entity @e[type=creeper,tag=hi there]
        /execute if entity @e[type=creeper,tag="hi there"]
        
        /tag @e[type=creeper] remove hi there
        /tag @e[type=creeper] remove "hi there"
        

        Note: The first /tag variant is even suggested by the command syntax help
        None of these commands is considered valid

            Unassigned Unassigned
            getfugu Baker Fugu
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: