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

name selector parameter does not work for children of text components

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 18w03b, Minecraft 18w06a, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, 1.14.4, 19w37a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When you use the name selector parameter you would expect that you select entities by the name you see in the chat or above their head (except if you use translations). However it looks like the parameter does not test nested text components.

      Note: This works correctly for the Lock tag of containers, see also MC-123932.

      How to reproduce

      1. Summon an armor stand with a nested custom name
        /summon armor_stand ~ ~ ~ {CustomName:"{\"text\":\"test\",\"extra\":[\"_test\"]}"}
        

        The armor stand is named "test_test"

      2. Try to select the armor stand by that name
        /say @e[type=armor_stand,name=test_test]
        

        It fails

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                5 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: