Check for maximum in /scoreboard?

Check for maximum in /scoreboard? - Young troubled woman using laptop at home

This command: ...

/scoreboard players remove @p[score_Gold_min=1] Gold 1

Says to remove a Gold from whoever has at least 1, but is there a way to reverse that to be like

/scoreboard players add @p[score_Gold_max=1] Gold 1

Or something like that... I just want to know if there is a maximum value to go with the minimum value.






Pictures about "Check for maximum in /scoreboard?"

Check for maximum in /scoreboard? - Multiethnic businesswomen checking information in documents
Check for maximum in /scoreboard? - Serious ethnic young woman using laptop at home
Check for maximum in /scoreboard? - Multiethnic cheerful colleagues talking about job and working with documents



How do you check your scoreboard in Minecraft?

Via the /scoreboard objectives setdisplay command (see command reference), players' scores in specific objectives can be displayed in certain 'slots' in-game. Each 'display slot' can show one objective at a time, and multiple 'display slots' may be used for the same or different objectives.

How do you test scoreboard?

The correct syntax for score selectors is /testfor (player)[scores={objective=number}] . However that command only selects one number. To select a minimum number you need to use a scoreboard test.

How do you add scoreboard objectives?

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 Operation Tutorial [1.16/1.17/1.18/1.19] How to Count Entities




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Andrea Piacquadio, Alexander Suhorucov, Andrea Piacquadio, Alexander Suhorucov