|
Mechanic: AddTag
|
|
|
|
================
|
|
================
|
|
|
|
|
|
Adds a scoreboard tag to the target.
|
|
## Description:
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
Adds a scoreboard tag to the target.
|
|
|-----------|---------|----------------------------|---------------|
|
|
|
|
| tag | t | The string-name of the tag | default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Special Notes
|
|
|
|
-------------
|
|
|
|
|
|
|
|
This is used in conjunction with the **hastag condition** (see
|
|
This is used in conjunction with the **hastag condition** (see
|
|
[Conditions](/conditions/start)). You can also use the vanilla command
|
|
[Conditions](/conditions/start)). You can also use the vanilla command
|
|
"/scoreboard players tag <player name> add [Tag Name] " to do
|
|
"/scoreboard players tag <player name> add [Tag Name] " to do
|
|
the same thing.
|
|
the same thing.
|
|
|
|
|
|
Examples
|
|
## Attributes:
|
|
--------
|
|
|
|
|
|
|
|
This skill would give the casting mob the tag "Test".
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|
|-----------|---------|----------------------------|---------------|
|
|
|
|
| tag | t | The string-name of the tag | default |
|
|
|
|
|
|
TagSkill
|
|
## Examples:
|
|
|
|
|
|
|
|
This skill would give the casting mob the tag "Test".
|
|
|
|
```yaml
|
|
|
|
TagSkill
|
|
Skills:
|
|
Skills:
|
|
- addtag{t=Test} @self
|
|
- addtag{t=Test} @self
|
|
|
|
```
|
|
This skill would only run on the mob if it had the tag, "Test".
|
|
This skill would only run on the mob if it had the tag, "Test".
|
|
|
|
```yaml
|
|
TagTest:
|
|
TagTest:
|
|
Conditions:
|
|
Conditions:
|
|
- hastag{t=Test}
|
|
- hastag{t=Test}
|
|
Skills:
|
|
Skills:
|
|
- suicide @self
|
|
- suicide @self
|
|
|
|
``` |
|
|
|
\ No newline at end of file |