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

Neither numerical, nor string identifiers seem to work in /testfor NBT criteria

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 14w03a, Minecraft 14w03b
    • None
    • OS: Windows 7 Ultimate SP1 64-Bit
      Java Version: Java 7u51 64-Bit
    • Confirmed
    • Creative

      In the 14w02c Snapshot, I was able to use this command to test for am Item Frame with a Book & Quill inside:

      /testfor @e[type=ItemFrame] {Item:{id:386s,Count:1b,Damage:0s}}
       

      However, in the 14w03a/14w03b Snapshots, I was unable to do so using a numerical or string identifier. I'm not sure if I'm just making a mistake in the command, but I tried this command (as well as a few other variants with minor tweaks):

      /testfor @e[type=ItemFrame,r=4] {Item:{id:writable_book,Count:1b,Damage:0s}}
       

      Steps to reproduce:
      1.Place a Command Block and paste either of the above commands.
      2.Put an Item Frame anywhere.
      3.Place Book and Quill (or desired item), in said Item Frame.
      4.Activate the Command Block.
      5. In the "Previous Output" part, it should come up with an error message similar to this:
      "entity.ItemFrame.name did not match the required data structure"
      Even though the criteria should be met, it doesn't seem to work.

      I would appreciate it if I could get any help on this matter, thank you!

            Unassigned Unassigned
            Krypsis Jerrin Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: