Entity Effect - TheComputerGeek2/MagicSpells GitHub Wiki
effect: entity
Description:
The effect spawns an entity and teleports along the projectile's path.
Before 4.0 Beta 13, this effect only works on the projectile effect position. Since, it can be played on any effect location.
Configuration:
- You must specify an
entityconfiguration 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. This option does nothing when the effect is being played by a position: projectile or in any case where a spell itself handles the entity's removal. |
Integer | 0 |
gravity |
Defines the entity's gravity state. | Boolean | false |
Example:
effects:
eff1:
position: projectile
effect: entity
entity:
entity: pig
silent: true