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

Cannot Detect Item using /testfor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 17w16a
    • None
    • Unconfirmed

      The command...

      /testfor @e[type=Item] {Item:{id:minecraft:nether_star}}

      ...would ordinarily work, but with the new NBT tag parsing, now I get:

      Data tag parsing failed: Expected '}' but got ':' at {Item:{id:minecraft:<--[HERE]

      The minecraft: part IS required, since running...

      /testfor @e[type=Item] {Item:{id:nether_star}}

      ...with a nether star item floating nearby fails with...

      item.item.netherStar did not match the required data structure

      The same goes for other items.

      Aaaaand, unfortunately, this breaks a LOT of stuff on my map.

            Unassigned Unassigned
            CodeMouse92 Jason C. McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: