|
|
===========================
|
|
|
|
|
|
*Added in version 2.3*
|
|
|
|
|
|
## Description
|
|
|
Modifies the a scoreboard-objective value of the specified targeter(s).
|
|
|
|
|
|
A list of possible operations for the action-syntax:
|
|
|
|
|
|
- SET
|
|
|
- ADD
|
|
|
- SUBTRACT
|
|
|
- MULTIPLY
|
|
|
- DIVIDE
|
|
|
- [1] MOD
|
|
|
- `SET`
|
|
|
- `ADD`
|
|
|
- `SUBTRACT`
|
|
|
- `MULTIPLY`
|
|
|
- `DIVIDE`
|
|
|
- `MOD` [^mod]
|
|
|
|
|
|
Attributes
|
|
|
----------
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|---------|----------------------------------------------------------------------------------------------------------------------------------|---------|
|
|
|
| objective | obj, o | Specifies the scoreboard objectiv to be changed. If the objective doesn't exist it will automatically be created by the mechanic | |
|
|
|
| action | a | The operation to perform | ADD |
|
|
|
| value | v | The value to perform the operation with | |
|
|
|
## Attributes
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| objective | obj, o | Specifies the scoreboard objectiv to be changed. If the objective doesn't exist it will automatically be created by the mechanic | |
|
|
|
| action | a | The operation to perform | ADD |
|
|
|
| value | v | The value to perform the operation with | |
|
|
|
|
|
|
|
|
|
Examples
|
|
|
----
|
|
|
|
|
|
## Examples
|
|
|
This example will track how often and whom damaged
|
|
|
the casting mob in battle.
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- modifytargetscore{objective=damagescore;action=add;value=1} @trigger ~onDamaged
|
|
|
```
|
|
|
[1] shorthand for "Modular Division" |
|
|
\ No newline at end of file |
|
|
|
|
|
[^mod]: shorthand for "Modular Division" |
|
|
\ No newline at end of file |