For fun, I'm making an arcade template thingy, and I want a shop where you can buy perks or costumes etc. by clicking on an emerald, like Hypixel. Ive tried "/scoreboard players test @p Shop 0 1" after clicking on the emerald which should increase the Shop score because I set the Criteria Type to "/scoreboard objectives add Test stat.useItem.minecraft.emerald" This is problably the wrong criteria, or "Using" an emerald is different then clicking on it 😛 Is this just an item without a use?
Minecraft Commands – Click-Emerald Reaction in Minecraft Java Edition
minecraft-commandsminecraft-java-edition
Best Answer
From the Minecraft Wiki (talking about
stat.useItem
):From reading this, it appears that emeralds cannot be 'used'. However, from the same page, I read about a
stat.drop
criteria, incremented when you press 'q' with an item in your hand. It appears as though this might work for what you're trying to do.