spawnParticle
fun spawnParticle(particle: String, x: Double, y: Double, z: Double, xSpeed: Double, ySpeed: Double, zSpeed: Double): Particle
Content copied to clipboard
Spawns a particle into the world with the given attributes, which can be configured further with the returned Particle
Return
the newly spawned particle for further configuration
Parameters
particle
the name of the particle to spawn, see getParticleNames
x
the x coordinate to spawn the particle at
y
the y coordinate to spawn the particle at
z
the z coordinate to spawn the particle at
xSpeed
the motion the particle should have in the x direction
ySpeed
the motion the particle should have in the y direction
zSpeed
the motion the particle should have in the z direction