How can I make a scoreboard variable not go over a certain number?

How can I make a scoreboard variable not go over a certain number? - Black Boss Can on Top Beside White Mug

I need to have a scoreboard variable that can count up to 9 and add one whenever a player kills a player. How can I set a limit to the scoreboard variable?






Pictures about "How can I make a scoreboard variable not go over a certain number?"

How can I make a scoreboard variable not go over a certain number? - Crop barista pouring milk froth in cappuccino for client
How can I make a scoreboard variable not go over a certain number? - Free stock photo of alphabet, be a self starter, blur
How can I make a scoreboard variable not go over a certain number? - Person Holding Can With Blue and White Knit Sweater



How do you change a scoreboard?

Scoreboard Command
  • To add an objective: /scoreboard objectives add <objective> <criteria> [displayName]
  • To remove an objective: /scoreboard objectives remove <objective>
  • To list all objectives: /scoreboard objectives list.
  • To set how the objectives are displayed: /scoreboard objectives setdisplay <slot> [objective]




  • 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: Bagus Pangestu, Ketut Subiyanto, Brett Jordan, Anna Shvets