Merge docs for 'Merge pull request #631 from replaceitem/scoreboard-criterion-mod

Added ability to change criterion with scoreboard_add Fixes #624'
This commit is contained in:
github-actions[bot] committed 2020-12-29 04:03:19 +00:00
1 parent a0507400ee
commit db0ef5fbe5
1 file changed
+3 -3
+3 -3
View File
@@ -4311,8 +4311,9 @@ With specified `objective` and
### `scoreboard_add(objective, criterion?)`
Adds a new objective to scoreboard. If `criterion` is not specified, assumes `'dummy'`. Returns `false` if objective
already existed, `true` otherwise.
Adds a new objective to scoreboard. If `criterion` is not specified, assumes `'dummy'`.
If the objective already exists, changes the criterion of that objective and returns `false`. If the criterion was not specified but the objective already exists, returns the current criterion.
If the objective was added, returns `true`. If nothing is affected, returns `null`
<pre>
scoreboard_add('counter')
@@ -4463,7 +4464,6 @@ for(bossbar(),bossbar(_,'remove')) -> remove all bossbars
# Auxiliary aspects
Collection of other methods that control smaller, yet still important aspects of the game