How can you get a specific item in Minecraft?

Ba
3

I'm looking for the command that I will add a score to an item (for example: stone) with a certain name (for example: grenade). My command looks like this:

/ scoreboard player add @e [type = Item] grenade 1 {Item: {id: minecraft: stone}}

But I still want to test for the name.

On the version 1.8.8

Vu

Which version?

Ba

1.8 version

Vu

Try it with:

/ scoreboard player add @e [type = Item] minecraft: stone {display: {name: "{\" text \ ": \" name \ "}"}} 1