Mechanic
modifyscore
Modifies a scoreboard value
Configuration Fields (4)
| Name | Type | Default | Description |
|---|---|---|---|
| entry e, name, n | PlaceholderString | dummy | The entry to modify in the scoreboard. |
| objective obj, o | PlaceholderString | — | The objective in the scoreboard to modify. |
| action a | ModifyScoreAction | SET | The action to perform for modifying the scoreboard value. |
| value v | PlaceholderString | 0 | The value to use for the modification. |
Examples & Notes
Examples
This example will add one to the score of a player
named “Bob” for the objective “TestScore”, even if that player doesn’t
exist on the server.
It will create the objective if it does not currently exist.
Skills:
- modifyscore{o=TestScore;e=Bob;a=add;v=1} ~onInteract

[^mod]: shorthand for “Modular Division”
Universal Mechanic Options
- Author:
- Ashijin
