Entity Effect - TheComputerGeek2/MagicSpells GitHub Wiki
effect: entity
Description:
This effect only works on the projectile
effect position. The effect spawns an entity and teleports along the projectile's path.
Configuration:
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 |
Example:
effects:
eff1:
position: projectile
effect: entity
entity:
entity: pig
silent: true