Mojira Archive
MC-77843

Partial NBT data cannot test for specific empty slots in containers

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.

Invalid

Onnowhere

2015-02-20, 10:10 PM

2017-05-14, 12:52 AM

2015-02-23, 08:53 PM

0

4

Unconfirmed

Minecraft 1.8.3

-