Minecraft / data: List items with a specific ID?

Pi
2

I want a box to put emeralds in and then swap them for slimeballs.

So far I've managed to change the items:

/ data modify block 60 71 -33 Items []. Id set value "minecraft: slime_ball"

Now at "Items []. Id" I'm looking for a way to replace emeralds only.

Here are my unsuccessful attempts to list the Emeralds:

/ data get block 60 71 -33 Items []. Id. []. "minecraft: emerald"
/ data get block 60 71 -33 Items []. Id. "minecraft: emerald"
/ data get block 60 71 -33 Items []. Id.minecraft.emerald
/ data get block 60 71 -33 Items []. Id.minecraft: emerald

Co

Which areas of your life are you not "coping with"?

Or how should I understand your question?

Gu

-1 OR 2+457-457-1=0+0+0+1 --

What is this message? St StephanieItchy