Skip to main content

Particle and Decoration Configuration

The particle option stores reusable effects for a structure.

These effects are used by crafting, animations, crates, and other options. A decoration can be a particle, a sound, a flame effect, a box area, or a group of decorations.

Basic structure

options:
particle:
consume:
type: particle
particle: SOUL_FIRE_FLAME
amount: 10
result:
type: sound
sound: ENTITY_PLAYER_LEVELUP
volume: 1
pitch: 1

Common crafting keys:

KeyWhen used
insertAn item is dropped into the structure and accepted into a recipe slot.
placeA player places an item into a recipe slot.
takeA player removes an item from a recipe slot.
consumeAn ingredient is consumed.
resultA recipe finishes.
primaryGeneral reusable helper effect.
secondaryGeneral reusable helper effect.

Sound decoration

type: sound
sound: BLOCK_AMETHYST_BLOCK_CHIME
volume: 1
pitch: 1
FieldDescription
soundBukkit sound name.
volumeSound volume.
pitchSound pitch.

Particle decoration

type: particle
particle: SOUL_FIRE_FLAME
amount: 5
speed: 0.05
FieldDescription
particleBukkit particle name.
amountNumber of particles.
speedParticle speed.

Box-sized particle decoration

Use boxsized for an area effect.

type: boxsized
amount: 20
center-offset: "0 1 0"
start-point-offset: "-2 -1 -2"
end-point-offset: "2 1 2"
particle:
type: particle
particle: PORTAL
amount: 1
speed: 0.1
FieldDescription
amountNumber of positions sampled inside the box.
center-offsetCenter of the box relative to the structure.
start-point-offsetFirst corner relative to the center.
end-point-offsetOpposite corner relative to the center.
particleDecoration used for each sampled position.

Flame decoration

type: flame
center-offset: "0 1 0"
amount: 20
particle:
type: particle
particle: FLAME
amount: 1
speed: 0.01

Use this for ritual-like ambient effects.

Grouped decorations

Use decorations to play several effects together.

type: decorations
sound:
type: sound
sound: ENTITY_BLAZE_SHOOT
volume: 1
pitch: 1
particles:
type: particle
particle: SOUL_FIRE_FLAME
amount: 5
speed: 0.05

Referencing another decoration

Use instance to reuse a decoration defined in the same structure.

options:
particle:
primary:
type: particle
particle: SOUL_FIRE_FLAME
amount: 1
consume:
type: instance
key: primary

This is useful for animations that repeat the same effect in multiple places.

Scheduled effects

Some decorations can be scheduled to run repeatedly by adding schedule: true.

options:
particle:
ambient:
schedule: true
type: boxsized
amount: 10
center-offset: "0 1 0"
start-point-offset: "-1 0 -1"
end-point-offset: "1 1 1"
particle:
type: particle
particle: END_ROD
amount: 1

Use scheduled effects carefully. A high amount on many structures can create performance issues.

options:
particle:
insert:
type: sound
sound: BLOCK_BREWING_STAND_BREW
volume: 1
pitch: 1
place:
type: sound
sound: ENTITY_ITEM_FRAME_PLACE
volume: 1
pitch: 1
take:
type: sound
sound: ENTITY_ITEM_FRAME_REMOVE_ITEM
volume: 1
pitch: 1
consume:
type: particle
particle: SOUL_FIRE_FLAME
amount: 8
speed: 0.02
result:
type: decorations
sound:
type: sound
sound: ENTITY_PLAYER_LEVELUP
volume: 1
pitch: 1
particles:
type: particle
particle: END_ROD
amount: 12
speed: 0.05

Tips

  • Use low particle amounts for structures that stay active for a long time.
  • Use sounds for important actions such as crafting completion.
  • Avoid heavy scheduled particles on servers with many structure instances.
  • Put crafting visual effects in particle, not directly inside crafting.