Particles.ParticleDescription
Index
Properties
optionalacceleration
Particle's acceleration, if it's spawned without this parameter.
optionaladdLifetimeAfterImpact
Particle will lose given number of ticks from it's maximum lifetime, when touching a block.
This value makes sense only if collision param is true.
optionalanimators
Animators allow to change some properties of the specific particle depending on the time, each animator is described as an object of definite format and can be not described, if it's not needed.
Type declaration
optionalalpha?: AnimatorDescription
Describes the particle's opacity, for the unit value the
alphain thecolorparameter from the type's description is taken.optionalcolor?: ColorAnimatorDescription
Describes the animated color value, if particle supports it. Accepts values in RGBA ranges, like
colorproperty in descriptor.optionalicon?: AnimatorDescription
Describes the animation frame, if particle supports it. Must have the value between 0 and 1.
optionalsize?: AnimatorDescription
Describes the behavior of particle's size, for the unit size the size from the type's description is taken.
optionaltexture?: AnimatorDescription
Describes the animation frame, if particle supports it. Must have the value between 0 and 1.
That feature is obsoleteUse
iconinstead.
optionalcollision
If true, particle won't go through blocks. It reduces performance if
there are lots of these particles.
optionalcolor
Four component color of the particle (RGBA).
optionalcolor2since: 2.0.4b38
optionalemitters
Sub-emitters (don't confuse with emitters) describe how specific particle can emit other particles, according to some events, that may happen to it. Each sub-emitter is described as an object of definite format and can be not described if it's not needed.
Type declaration
optionaldeath?: SubEmitterDescription
Called at the end of particle's life.
optionalidle?: SubEmitterDescription
Called every tick.
optionalimpact?: SubEmitterDescription
Called when touching a block, makes sense only if collision parameter is
true.
optionalframesXsince: 2.0.4b38
Animation frame grid size around width.
optionalframesYsince: 2.0.4b38
Animation frame grid size around height.
optionalfriction
Particle's speed modifier in the air and when touching a block. Usually it's a number between 0 and 1, close to 1, but in fact it can be any value. Both values are 1 by default.
Type declaration
optionalair?: number
optionalblock?: number
More about capabilitiesThis value makes sense only if collision param is
true.
optionalisUsingBlockLight
If true, the particle will be exposed to the world's lighting.
If false, the particle will always have maximum brightness.
Enabling this parameter may reduce the performance when having lots of particles.
optionalkeepVelocityAfterImpact
If false, particle's speed will be set to zero when touching a block.
If true, the speed will be saved.
This value makes sense only if collision param is true.
lifetime
Minimum and maximum particle's lifetime in ticks.
optionalrebuildDelaysince: 2.0.4b38
Time in ticks between particle mesh updates.
optionalrender
Particle's render type:
- 0 - additive
- 1 - without blending
- 2 - with blending
size
Minimum and maximum size of the particle.
texture
Particle's texture name from /particle-atlas resource directory.
optionalvelocity
Particle's initial velocity, if it's spawned without initial speed parameter.
Custom particle type params object.