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

"carried" tag of Enderman reads value as string and short

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w47a
    • Minecraft 15w49b, Minecraft 15w50a, Minecraft 15w51a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w05b, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 16w20a, Minecraft 1.10, Minecraft 1.11, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45b, Minecraft 17w46a
    • Confirmed

      If I summon an enderman with this command:

      /summon enderman ~ ~ ~ {carried:"minecraft:stone"}
      

      The enderman is summoned with the carried block as it should be

      But if I try to detect this same enderman with this command:

      /execute as @e[type=enderman,nbt={carried:"minecraft:stone"}] run say enderman with stone
      

      The chat gives me this error:

      Enderman did not match the required data structured

      If I try the same command with numeric ids the command works:

      /execute as @e[type=enderman,nbt={carried:1s}] run say enderman with stone
      

      The expected behavior is that reading the carried tag as short will be removed with MC-75430 getting fixed

            Unassigned Unassigned
            Autopoietico Autopoietico
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: