Mojira Archive
MC-118175

Dropped items can't be found when a data value is specified

I experimented a bit with this and here is what I've found:

Dropped items can be found when a data value is not specified.

/scoreboard players tag @e[type=item] add stone {Item:{id:"minecraft:stone"}}

works without issues.

When a data value is then specified, the command no longer works, and gives an error message saying the item did not have a matching data tag.

/scoreboard players tag @e[type=item] add stone {Item:{id:"minecraft:stone",Damage:0}}

does not work.

This holds true for all dropped item entities.

Invalid

Jason Kristol

2017-06-02, 03:47 PM

2017-06-02, 03:50 PM

2017-06-02, 03:49 PM

0

0

Unconfirmed

Minecraft 1.12 Pre-Release 7

-