Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / Dust

Function: Dust() โ€‹

Dust(color, scale?): ParticleOptionsValue

Defined in: core/values/particle.ts:54

Coloured dust particle, any colour and size.

ctx.particle(Dust(0xff3b00, 1.5), Pos.here(), Pos(0, 0, 0), 0, 1); // 1.21.4: particle minecraft:dust{color:[1.0f,0.23f,0.0f],scale:1.5f} ... // 1.20.4: particle minecraft:dust 1.0 0.23 0.0 1.5 ...

scale is clamped by vanilla to 0.01..4.

Parameters โ€‹

color โ€‹

number

scale? โ€‹

number = 1

Returns โ€‹

ParticleOptionsValue

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.