Optional
accelerationParticle's acceleration, if it's spawned without this parameter.
Optional
addParticle will lose given number of ticks from it's maximum lifetime, when touching a block.
Optional
animatorsAnimators 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.
Optional
alpha?: AnimatorDescriptionDescribes the particle's opacity, for the unit value
the alpha
in the color
parameter from the type's description is taken.
Optional
color?: ColorAnimatorDescriptionDescribes the animated color value, if particle supports it.
Accepts values in RGBA ranges, like color
property in descriptor.
Optional
icon?: AnimatorDescriptionDescribes the animation frame, if particle supports it. Must have the value between 0 and 1.
Optional
size?: AnimatorDescriptionDescribes the behavior of particle's size, for the unit size the size from the type's description is taken.
Optional
texture?: AnimatorDescriptionDescribes the animation frame, if particle supports it. Must have the value between 0 and 1.
Optional
collisionIf true
, particle won't go through blocks. It reduces performance if
there are lots of these particles.
Optional
colorFour component color of the particle (RGBA).
Optional
color2Optional
emittersSub-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.
Optional
death?: SubEmitterDescriptionCalled at the end of particle's life.
Optional
idle?: SubEmitterDescriptionCalled every tick.
Optional
impact?: SubEmitterDescriptionCalled when touching a block, makes sense only if collision parameter is true
.
Optional
framesXAnimation frame grid size around width.
Optional
framesYAnimation frame grid size around height.
Optional
frictionParticle'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.
Optional
isIf 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.
Optional
keepIf false
, particle's speed will be set to zero when touching a block.
If true
, the speed will be saved.
Minimum and maximum particle's lifetime in ticks.
Optional
rebuildTime in ticks between particle mesh updates.
Optional
renderParticle's render type:
Minimum and maximum size of the particle.
Particle's texture name from /particle-atlas resource directory.
Optional
velocityParticle's initial velocity, if it's spawned without initial speed parameter.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Custom particle type params object.