How To Use Minecraft Particle Command
This post will contain information about how to use the particle command. The particle command is a command that is currently only available on java edition and can be executed in both command blocks and game chat. Both execution techniques are useful for different jobs. If you would like to execute the command once then you would use the game chat as there is no repeat functionality. This can be useful for pinging all entities in a game or just experimenting with the command. If you would like to repeat the command constantly or with red stone input or through options, command blocks are recommended. For further information on particles and how to use them here are two videos on particles. (videos and commands used in videos below)
/particle <name> [<pos>] [<delta>] <speed> <count> [<mode>] [<viewers>]
< Name >
The Minecraft particle command consists of 7 components that all change the way the command is executed. The <name> is what particle you would like to show. An example of a particle name would be minecraft:heart or minecraft:villager_angry.
< Position >
The next part of the command is where you would like to have the particles shown. If you have the specific coordinate you would place it here or if you would like to display the particle effect in a spot close to the command block you would use ~ ~ ~. Each tidal counts as x, y and z. If you type in ~1 ~3 ~ it means that the particle will be displayed 1 block away from the command block on the x-axis and 3 blocks above.
< Spread >
The <Delta> part of the command is the radius you want the particles to spawn in. If you leave it 0 0 0 it means that the particle will only spawn where you directed it to spawn. If you want to make the particle spawn within a 5 block radius for x, y and z axis you would replace the three zeros with 5 5 5.
The next part of the command is how fast you want the particle to be. I always leave it on 0 just because it makes the particles go crazy. If you increase the number and if the particle has movement it will increase the speed of how fast the moving particle moves.
The <count> is the amount of particles you want to show per game tick. If you set it to one it means that every time the command is executed it will produce one particle. If you increase it to five it will produce 5 particles every tick.
The <mode> has two options normal and force. Normal will execute the command like normal however when you move away from the particles they will disappear. Force, on the other hand, forces the particle to be shown and not disappear.
The last component of the command is <viewer> this is who you want to make see the particle. You can use @a, @e, @p and you can also have requirements like @a[name=(insert name)]
Examples Of Commands Shown In Videos
/particle minecraft:end_rod ~ ~2 ~
This particle command will execute the end_rod particle at ~ ~2 ~
/particle minecraft:heart ~ ~3 ~ 0 3 0
This particle command is like the previous one except it will make a long beam of hearts in the air
/particle minecraft:angry_villager ~ ~3 ~ 0 3 0 0 10 force @a
This command is just like the last one however the particles have a speed or zero. The command is also showing 10 particles every game tick and is forcing it so that @a players can see the particle.
Execution Particle Commands
If you have ever wanted to make a particle follow you or a mob you can simply do it with the execute command.
/execute at @a particle minecraft:heart ~ ~3 ~ 0 0 0 0 1 Force
This command will produce 1 particle every tick at every player on the world. It will summon the particle 3 blocks above the player. If you would like to execute the command at an entity that is not a player you can replace @a with @e[type=!player]
If You would like learn more about some prank execution commands you can visit the post provided