spawn Particle
Spawn a particle effect at a position you choose.
mobs.spawnParticle(EXPLOSION_HUGE, pos(0, 0, 0))
Particles are various effects that spawn at a position you choose. There are many particle effects and they are listed in the particle parameter in the code block.
Parameters
- particle: the particle effect to spawn at position.
- position: the postition to spawn the particle effect at.
Example
Make a shallow pool of water. Show some of the water evaporating with a particle effect.
blocks.fill(
WATER,
pos(10, 0, 5),
pos(5, -2, 0),
FillOperation.Replace
)
mobs.spawnParticle(WATER_EVAPORATION_ACTOR, pos(7, 1, 2))