added changing criterion to scoreboard_add #624

This commit is contained in:
replaceitem committed 2020-12-16 20:35:28 +01:00
1 parent f9bce2b50e
commit 055c26d44a
5 files changed
+42 -3

No files matched your search

+3 -2
View File
@@ -10,8 +10,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 objective was added, returns true.
<pre>
scoreboard_add('counter')