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

carried tag of enderman is not saved to NBT when value is 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w46a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      When you summon an enderman with carried:0s, it is treated as if the enderman is holding nothing, however if the enderman is holding nothing the carried tag is not written to the NBT data.
      This is pretty inconsistent because if 0s is treated as holding nothing, you would expect it to be saved to NBT if the enderman is holding nothing as well.

      From MC-94027:

      In 1.8 versions is possible to test if a enderman don't carries a block

      How to reproduce

      1. Summon an enderman holding nothing
        /summon enderman ~ ~ ~ {carried:0s}
        
      2. Try to test for carried:0s
        /testfor @e[type=enderman] {carried:0s}
        

        1.13:

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

        → The command fails

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                CHK: