Im in need for a way to detect if a scoreboard is set to 0 ,1 ,2 ,3 ,or 4
And give the person that has that scoreboard certain items like, an enchanted diamond pickaxe or jump boost 2. Im playing MC 1.9.2. I also only want to use commands and redstone.
Minecraft – scoreboard specification
minecraft-commandsminecraft-java-edition
Best Answer
Create a scorboard: (replace testBoard with a name for the scoreboard)
Set a value:
Testfor players with values:
1. Effect (Replace the 1 with whatever score you want to test for)
PUT THIS INTO A REPEATING COMMAND BLOCK
For example:
2. Give items (Replace the 1 with whatever score you want to test for)
If you want to give the item only once:
Then reset the value of an player:
Hope it helped :)