Particle Animations

This page holds information regarding how to set up and customize particles for stationary crates.

The plugin currently has 4 particle animations which can be customized by speed, location and particle type. A crate can have multiple particle animations at the same time.

An example of all available particle animations as well as how a properly set up configuration looks like can be found in the default RoundCrateParticles.yml file inside of the Crates folder.

Currently you can only set up particles for stationary crates in individual crate .YML files. Examples of configuration code can be found below.

The example above is of a TILTED_RINGS animation lowered by -1 y block and particle type chosen to be FLAME, an example of the code used to achieve this is found below.

ParticleAnimations:
  Rings:
    type: FLAME
    range-x: 1.0
    range-y: -1.0
    range-z: 0.0
    speed: 0.0
    amount: 1
    animation: TILTED_RINGS
    center-x: 0
    center-y: 0
    center-z: 0

The example above is of a OFFSET_TILTED_RINGS animation with particle type chosen to be CRIT_MAGIC, an example of the code used to achieve this is found below.

ParticleAnimations:
  Spiral:
    type: CRIT
    range-x: 1.0
    range-y: 0.0
    range-z: 0.0
    speed: 1.0
    amount: 1
    animation: OFFSET_TILTED_RINGS
    center-x: 0
    center-y: 0
    center-z: 0

The example above is of a DOUBLE_SPIRAL animation with particle type chosen to be FLAME, an example of the code used to achieve this is found below.

ParticleAnimations:
  FlameRing:
    type: FLAME
    range-x: 1.0
    range-y: 0.0
    range-z: 0.0
    speed: 1.0
    amount: 1
    animation: OFFSET_TILTED_RINGS
    center-x: 0
    center-y: 0
    center-z: 0

The example above is of a CIRCLE animation with particle type chosen to be ENCHANTMENT_TABLE, speed set to 20 and particle amount to 16, an example of the code used to achieve this is found below.

ParticleAnimations:
  EnchantmentAnimation:
    type: ENCHANTMENT_TABLE
    range-x: 1.0
    range-y: 1.0
    range-z: 1.0
    center-x: 0.0
    center-y: 0.0
    center-z: 0.0
    speed: 20.0
    amount: 16
    animation: CIRCLE

How to rotate an animation sideways?

If you want to put the particle animation to go at a slight angle or for example a 90-degree angle (sideways), you need to edit the `range-z` configuration to the degree amount. In the mentioned example, you would set `range-z: 90`

ParticleAnimations:
  Rings:
    type: FLAME
    range-x: 1.0
    range-y: -1.0
    range-z: 90.0
    speed: 0.0
    amount: 1
    animation: TILTED_RINGS
    center-x: 0
    center-y: 0
    center-z: 0

Last updated