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

Enderman held block not fully updated from old block id system

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.8, Minecraft 15w49b, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w45b, Minecraft 17w46a
    • Fix Version/s: Minecraft 17w47a
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      An Enderman holding a dirt block can be summoned using the command

      summon enderman ~ ~ ~ {carried:"minecraft:dirt"}
      

      As you would expect, this summons an Enderman holding a dirt block (see also MC-94027). However if you try this command:

      /testfor @e {carried:"minecraft:dirt"}
      

      the enderman will not be found by the command.

      This is because the block type is stored using the old id system (dirt is stored as 3) and because the tag is a short you have to append s:

      /testfor @e {carried:3s}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                sparks Sparks
              • Votes:
                22 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: