forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
Entity Effect
JasperLorelai edited this page May 19, 2024
·
10 revisions
effect: entity
This effect only works on the projectile
effect position. The effect spawns an entity and teleports along the projectile's path.
You must specify an entity
configuration section holding Entity Data, which can include the options below. Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
duration |
Since 4.0 Beta 13. Determine how long after the entity should be removed in server ticks. 0 means until the spell controlling the effect ends. | Integer | 0 |
silent |
Defines the entity's silent state. | Boolean | false |
gravity |
Defines the entity's gravity state. | Boolean | false |
ai |
Defines the entity's AI state. | Boolean | true |
effects:
eff1:
position: projectile
effect: entity
entity:
entity: pig
silent: true