Mojira Archive
MC-46902

testfor player-NBT-Tag Inventory

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.

Works As Intended

Robin Steiner

2014-02-01, 03:52 PM

2014-03-02, 05:40 PM

2014-02-01, 08:59 PM

0

1

Unconfirmed

Minecraft 14w02c - Minecraft 14w05bMinecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 14w05a, Minecraft 14w05b

-