... | @@ -188,7 +188,6 @@ The following are only some of the placeholders that can have a `trigger` scope, |
... | @@ -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 |
|
|
| <trigger.item.model> | Returns the model of the item the trigger is holding |
|
|
|
|
|
|
## Misc Placeholders
|
|
## Misc Placeholders
|
|
|
|
|
|
| **Placeholder** | **Function** |
|
|
| **Placeholder** | **Function** |
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
| <drop.amount> | Returns the amount dropped while used in specific drop types |
|
|
| <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, |
... | @@ -199,7 +198,6 @@ The following are only some of the placeholders that can have a `trigger` scope, |
|
|
|
|
|
|
|
|
|
## Item Placeholders
|
|
## Item Placeholders
|
|
|
|
|
|
| **Placeholder** | **Function** |
|
|
| **Placeholder** | **Function** |
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
| <item.amount> | Returns the amount of the item that triggered the skill |
|
|
| <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, |
... | @@ -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 |
|
|
| <mythicitem.[item].display> | Returns the display name of the specified mythic item |
|
|
|
|
|
|
## Score Placeholders
|
|
## Score Placeholders
|
|
|
|
|
|
| **Placeholder** | **Function** |
|
|
| **Placeholder** | **Function** |
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
|-----------------------------|-------------------------------------------------------------------------|
|
|
| <caster.score.objective> | Returns the score of the caster from "objective" |
|
|
| <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, |
... | @@ -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" |
|
|
| <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
|
|
# 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.
|
|
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** |
|
|
| **PAPI Placeholder** | **Function** |
|
... | @@ -259,6 +269,7 @@ TestRandomPlaceholder: |
... | @@ -259,6 +269,7 @@ TestRandomPlaceholder: |
|
- blue
|
|
- blue
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
# Examples
|
|
# 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.**
|
|
**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.**
|
|
|
|
|
... | | ... | |