1. Effects | Skript Syntax - HenryRenYz/Creatiolib GitHub Wiki

Generate Particle

1. World Particle

(spawn|show|gen|generate) [%-number%] %string% (world|public|server) particle[s] at %location% offset by %number%,%number%,%number% (with|and) (speed|extra) %number% [with data %-object% [and size %-number%]]

Generate a world/public particle, which everyone can see.

The string is the Bukkit name of the particle, check it Here.

The data object is optional, it's for some special particles with extra data:

  • ITEM_CRACK, input ItemStack.
  • BLOCK_CRACK, BLOCK_DUST and FALLING_DUST, input BlockData(Skript's one).
  • REDSTONE, input Bukkit Color.

The size is for REDSTONE particle, can be set from 0 to 4, leaving a blank value will set size to 1 instead.

2. Player Particle

(spawn|show|gen|generate) [%-number%] %string% (player|private|client) particle[s] at %location% for %players% offset by %number%,%number%,%number% (with|and) (speed|extra) %number% [with data %-object% [and size %-number%]]

Generate a player/client-side particle, which only visible for players on the list.

The arguments are exactly the same as World Particle, except for the additional players: define the player who can see the particle, can be a list.

3. Packet Particle

(spawn|show|gen|generate) [%-number%] %string% packet particle[s] at %location% for %players% offset by %number%,%number%,%number% (with|and) (speed|extra) %number% force %boolean% [with data %-object%]

Send a PlayServerWorldParticles packet to players, this is different from Player Particle, see below.

World and Player Particle command generate particle using methods provide by Bukkit API, Packet Particle generate particle by sending packets to players directly, which gives you more options, especially when it comes to REDSTONE(dust) particle.

In Bukkit API, the color of REDSTONE particle is defined using Color(Bukkit Color), which contains three value from 0 to 255, represents R, G, B, corresponding to vanilla /particle command, is something like /particle dust 0~1 0~1 0~1 1 ~ ~ ~, the RGB value was compressed to between 0 to 1, and here's the point where /particle command allows you to set R, G, B to a number greater than 1 or smaller than 0, gives you a weird color(For example /particle dust -0.01 -0.01 -0.01 1 ~ ~ ~ gives you extremely white particle), thus you can make particle effects pretty unique as this technique is barely used in Minecraft server before.

The arguments are basically the same as the two syntaxes above, except for the REDSTONE particle:

Set the name of particle to the format like REDSTONE,1,1,1,1 but not to input Bukkit Color to the data object. These 4 values represent R, G, B, and Size.

PS. The reason why I select gen/generate as the first word of syntax is that using play in front can take extremely long to load the script(seem to be Skript parser's problem).

PS. The packet particle name can also use the vanilla form, for example, minecraft:dust is REDSTONE.