Changes
Page history
Create skills/conditions/SpawnReason
authored
Sep 14, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
skills/conditions/SpawnReason.md
0 → 100644
View page @
9e141fb9
## Description
Checks against the spawn reason of the target(s)
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| reason | r | The reason to check for. Can be any of the
[
Bukkit
][]
ones | |
## Examples
In this example, the skill will apply a glow effect to the target entity if it has been spawned because of a raid
```
yaml
ExampleSkill
:
TargetConditions
:
-
spawnReason{reason=RAID}
true
Skills
:
-
potion{t=GLOWING;d=100;l=0}
```
[
Bukkit
]:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
\ No newline at end of file