Particle constructor
Particle(})
The particle command spawns particles in the world to enhance certain graphics.
constructor | |
---|---|
ParticleType | the type of the particle( ParticleType.particle_id ) |
location | where to show the particle(required) |
delta | the directions in which the particle expands(Location.glob, optional) |
speed | the speed of the expanding particle(optional, but delta required) |
count | the amount of particles(optional, but delta required) |
force | bool if the particle should be visible from far away(optional) |
texture | texture for block, falling_dust, item and dust particles(optional) |
Particle(
ParticleType.flame,
location: Location.here(),
)
⇒ particle minecraft:flame ~ ~ ~
Implementation
Particle(
this.particle, {
this.texture,
this.location,
this.delta,
this.speed = 0,
this.count = 1,
this.force = false,
this.player,
});