Minecraft – Help with /scoreboard objective score abuse!

minecraft-commandsminecraft-java-edition

I set up a scoreboard which is counting mined diamond ores. Score is displayed in the sidebar. The problem is that players are able to abuse the score with silk touch, they mine and place ores repeatedly.

How can I get the scoreboard to show the wanted value?

Best Answer

You add to the score whenever the player mines diamond ore and you remove from the score whenever the player places the diamond ore. This could still be slightly inaccurate when players give each other the diamond ore block, but in general, this won't cause an infinite score abuse.