addTrail
fun Entity.addTrail(plugin: Plugin, particle: Particle, count: Int = 1, offset: Double = 0.0, extra: Double = 0.0, onlyOnMove: Boolean = true): TaskHandle
Adds a particle trail to this entity.
Return
a TaskHandle to control the trail task
Parameters
plugin
the plugin to register the task
particle
the particle to spawn
count
the number of particles per tick
offset
the offset of the particle
extra
the extra data (e.g. speed)
onlyOnMove
if true, particles will only be spawned when the entity is moving