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

testfor player-NBT-Tag Inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 14w05a, Minecraft 14w05b
    • None
    • Unconfirmed

      I just figured out that it isn't possible to test for a players inventory...
      It works if i test for an empty inventory like so:

      /testfor @e[type=Player] {Inventory:[]}

      But as soon as i add something like this:

      /testfor @e[type=Player] {Inventory:[{id:"minecraft:torch"}]}

      it will always output false.
      I wanted this to test for an item with a specific name in a specific slot.

            Unassigned Unassigned
            RobinSteiner Robin Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: