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

custom_name= are not detected in the execute if command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.5 Pre-Release 1
    • None
    • Unconfirmed
    • (Unassigned)

      can detect other NBTS, but the names, descriptions do not
      The commands used are

      /give @p book[custom_name='{"text":"hello"}'] 1
      /execute if entity @p[nbt={SelectedItem:{id:"minecraft:book",count:1,components:{"minecraft:custom_name":'{"text":"hello"}'}}}]
      

            Unassigned Unassigned
            doggasaurio doggasaurio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: