... | ... | @@ -188,7 +188,6 @@ The following are only some of the placeholders that can have a `trigger` scope, |
|
|
| <trigger.item.model> | Returns the model of the item the trigger is holding |
|
|
|
|
|
|
## Misc Placeholders
|
|
|
|
|
|
| **Placeholder** | **Function** |
|
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
|
| <drop.amount> | Returns the amount dropped while used in specific drop types |
|
... | ... | @@ -199,7 +198,6 @@ The following are only some of the placeholders that can have a `trigger` scope, |
|
|
|
|
|
|
|
|
## Item Placeholders
|
|
|
|
|
|
| **Placeholder** | **Function** |
|
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
|
| <item.amount> | Returns the amount of the item that triggered the skill |
|
... | ... | @@ -208,7 +206,6 @@ The following are only some of the placeholders that can have a `trigger` scope, |
|
|
| <mythicitem.[item].display> | Returns the display name of the specified mythic item |
|
|
|
|
|
|
## Score Placeholders
|
|
|
|
|
|
| **Placeholder** | **Function** |
|
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
|
| <caster.score.objective> | Returns the score of the caster from "objective" |
|
... | ... | @@ -219,6 +216,19 @@ The following are only some of the placeholders that can have a `trigger` scope, |
|
|
| <score.objective.dummyname> | Returns the score of "dummyname" (fake player) from "objective" |
|
|
|
|
|
|
|
|
|
# Placeholder Attributes
|
|
|
Some placeholders can use a set of attributes to further define the output they will give
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| rounding | round, r | The rounding of the returned float value | 2 |
|
|
|
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- message{m="<target.hp{round=2}>"} @self
|
|
|
```
|
|
|
|
|
|
|
|
|
# PlaceholderAPI Integration
|
|
|
Other than being able to use PlaceholderAPI placeholders anywhere placeholder support is in place, MythicMobs introduces some new PAPI placeholders that can be used by third parties to fetch MythicMobs-related values.
|
|
|
| **PAPI Placeholder** | **Function** |
|
... | ... | @@ -259,6 +269,7 @@ TestRandomPlaceholder: |
|
|
- blue
|
|
|
```
|
|
|
|
|
|
|
|
|
# Examples
|
|
|
**This will make a mob send a teal message to all players in a radius of 20 blocks around in itself, stating what entity killed it in green.**
|
|
|
|
... | ... | |