Minecraft:Commands/particle
More actions
Template:Infobox command Creates particles.
Syntax
- Java Edition
particle <name> [<pos>]particle <name> <pos> <delta> <speed> <count> [force|normal] [<viewers>]
- Bedrock Edition
particle <effect: string> [position: x y z]
Arguments
Template:El: <name>: particle
Template:El: effect: string: basic_string
- Specifies the particle type to create.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|particle}}{{#vardefine:be-arg|string}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Template:El: <pos>: vec3
Template:El: position: x y z: CommandPositionFloat
- Specifies the position at which to create particle. If not specified, defaults to the position of the commmand execution.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|vec3}}{{#vardefine:be-arg|vec3}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: <count>: integer
- Specifies the number of particle effects to create. If 0, see below for what it results in.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|integer}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: <delta>: vec3 — {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|vec3}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: <speed>: float — {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|float}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Code
Template:Redr and
- REDIRECT Template:Code
Template:Redr parameters determine where the particles are created and the parameters to pass into the particles (see the table Extra parameters of particle types below). Based on whether
- REDIRECT Template:Code
Template:Redr is 0 or not, the two parameters have different meanings.
- if
- REDIRECT Template:Code
Template:Redr is 0, creates a single particle at the
- REDIRECT Template:Code
Template:Redr. Multiplies each of the three values in
- REDIRECT Template:Code
- REDIRECT Template:Code
Template:Redr value, then passes them into the particles as three parameters.
- This means that for most particles that receive parameters, if
- REDIRECT Template:Code
Template:Redr is 0, the <delta> acts as motion values for the particle, with <speed> acting as a multiplier, so the particle move in the direction of <delta>.
- If
- REDIRECT Template:Code
Template:Redr is not 0, the specified count of particles are created at random positions. The positions obey normal distributions in each of the X, Y, and Z directions. Each normal distribution has a mean value of each value in
- REDIRECT Template:Code
Template:Redr, meaning that particles are more likely to be created closer to the
- REDIRECT Template:Code
Template:Redr. Each normal distribution has a standard deviation of each value in
- REDIRECT Template:Code
Template:Redr (e.g. 1 1 1 means that the coordinates on X, Y, and Z axes obey three standard normal distributions, meaning that there is a 99.7% probability that the particle is created in a 6×6×6 cuboid region centered at the
- REDIRECT Template:Code
Template:Redr; 2 2 2 means that the particle has a 99.7% probability of being created in a 12×12×12 cuboid region centered at the
- REDIRECT Template:Code
Template:Redr). Negative values are accepted in
- REDIRECT Template:Code
Template:Redr, but have the same effect as their positive counterparts (e.g. -1 -1 -1 has the same effect as 1 1 1). Each of the extra parameters to be passed into the particles also follows a normal distribution, with a mean of 0 and a standard deviation of each value in
- REDIRECT Template:Code
- REDIRECT Template:Code
Template:Redr accepts relative coordinates and local coordinates, which are converted to absolute coordinates, so relative coordinates and local coordinates are generally useless here.
- If not specified,
- REDIRECT Template:Code
Template:Redr defaults to 0 0 0;
- REDIRECT Template:Code
Template:Redr defaults to 0.
- REDIRECT Template:Edition
- Specifies the display mode:
normalorforce.normal: The particle(s) are sent to players within 32.0 blocks (exclusive), may not be shown if the "Particles" option in Video Settings is "Minimal" (depending on the particle type, some particle types still displays when it is "Minimal")force: Allows the particle(s) to be sent to players within 512.0 blocks (exclusive). Always shown even if the "Particles" option in Video Settings is "Minimal".- Defaults to the
normalmode.
- REDIRECT Template:Edition
Template:Rcat: <viewers>: entity
- Allows control of which player should view this particle instead of everyone in the viewing range of the particle.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Extra parameters of particle types
{{#vardefine:params|0 }}Template:Hatnote Template:Message boxTemplate:Article other
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of players who can see the particle(s)}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
Examples
To create a stationary huge explosion particle 10 blocks to the east:
- Java Edition:
/particle minecraft:explosion_emitter ~10 ~ ~ - Bedrock Edition:
/particle minecraft:huge_explosion_emitter ~10 ~ ~
Using the particle format arguments in
- REDIRECT Template:Edition
Template:Rcat to create purple dust with large particles:
/particle minecraft:dust{color:[1, 0, 1], scale:4} ~ ~ ~ 1 1 1 1 10
Using the <delta> and <speed> arguments to pass parameters to the command and make a single particle move downward (note that count must be zero):
/particle minecraft:white_smoke ^ ^1 ^2 0 -1 0 0.1 0
The same command with <count> nonzero instead uses <delta> to determine particle distribution, producing a vertical cloud of particles:
/particle minecraft:white_smoke ^ ^1 ^2 0 -1 0 0.1 10
History
Java Edition
Bedrock Edition
References
<references group="">
</references>
External links
| Java Edition | |
|---|---|
| Bedrock Edition | |
| JE & BE | |
| Legends |
de:Befehl/particle es:Comandos/particle ja:コマンド/particle ko:명령어/particle pt:Comandos/particle ru:Команды консоли/particle uk:Команди консолі/particle zh:命令/particle