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

Partial NBT data cannot test for specific empty slots in containers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.3
    • None
    • Unconfirmed

      When testing for stone in a dropper slot 0, the command would be

      /testforblock ~ ~ ~ dropper -1 {Items:[{Slot:0b,id:minecraft:stone,Count:1b}]}

      However because of partial nbt data, it ignores the other slots, and there does not seem to be a way to check if there is nothing in the other slots rather than ignoring them.

      Thus if you wanted to test for a dropper with a stone item in slot 1 and empty slots in the other slots, it would be impossible.

      If testforblocks is able to compare a dropper where one has stone in slot 1, to another that has stone in slot 1 plus additional items in other slots and show that they don't match, testforblock then should also have a way and be able to test if one dropper has stone in slot 1 and other items in other slots and see that it doesn't match with the nbt data of a dropper with only stone in slot 1.

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: