How to use the scoreboard command in Minecraft 1.8.1
I was trying to give a score to an arrow as it hits the ground, so I can have a lightning bolt hit it when it hits the ground.
How does one use the scoreboard command? All help appreciated.
Best Answer
Ok, so first create a quick clock, however you like.
next attach a command block onto the clock and within said command block type the command:
/scoreboard players set @e[type=Arrow,c=-1] Arrow 1 {inGround:1b}.
Place a comparator coming out of it, and into another command block. In that command block type the command:execute @e[score_Arrow_min=1,type=Arrow,c=-1] ~ ~ ~ /summon LightningBolt ~ ~ ~.
Place a repeater coming out of that command block then finally one more command block after that, with the command:/kill @e[type=Arrow,score_Arrow_min=1,c=-1].
It should look something like this: Clock > Command Block > Comparator > Command Block > Repeater > Command Block.
Pictures about "How to use the scoreboard command in Minecraft 1.8.1"



How do you use a scoreboard in Minecraft?
The syntax for the scoreboard would be "/scoreboard objectives add Money dummy" without parenthesis. To place this scoreboard to the sidebar, Minecraft players can then use the command "/scoreboard objectives setdisplay sidebar Money" which should display the scoreboard to the right of the screen.Minecraft Scoreboard Command Tutorial [1.18]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anete Lusina, Sora Shimazaki, Vanessa Loring, Andrea Piacquadio
