Skip to content

Using particles with extra data

Nassim edited this page Sep 8, 2019 · 1 revision

If you want to use particles that require extra data (REDSTONE, FALLING_DUST, BLOCK_DUST, BLOCK_CRACK, ITEM_CRACK), you also need to put that extra data in the config.

All of the below are examples - the important bits are what follows the X-particle-data key!

REDSTONE

Let's say you want to set the normal selection particle to REDSTONE; Then your config should look similar to this:

[...]
particle: REDSTONE
particle-data:
  # RGB color data - numbers from 0 to 255
  r: 0 # red
  g: 0 # green
  b: 0 # blue
  # Relative particle size
  size: 0.9
[...]

FALLING_DUST, BLOCK_DUST, and BLOCK_CRACK

Now you want to set the clipboard particle to FALLING_DUST (works the same for BLOCK_DUST and BLOCK_CRACK):

[...]
clipboard-particle: FALLING_DUST
clipboard-particle-data:
  # Block material
  material: DIAMOND_BLOCK
[...]

ITEM_CRACK

Finally, you want to set the others-particle field in send-particles-to-all to ITEM_CRACK:

[...]
send-particles-to-all:
  others-particle: ITEM_CRACK
  others-particle-data:
    material: STICK
[...]

1.12 servers or lower

IMPORTANT: If you are running a server on 1.12 or lower, you need to note the following when using either BLOCK_CRACK, BLOCK_DUST, or FALLING_DUST:

  • after the material, you might also need the extra data/durability. E.g. brown wool is just YELLOW_WOOL in 1.13+, but in 1.12- it is WOOL with data 4, so you would write it as in the following example:
particle: FALLING_DUST
particle-data:
  material: WOOL
  data: 4

You can obviously put any of the particles in any of the fields; I just used different ones to illustrate its structure.

Clone this wiki locally