Skip to content

Particle Entry

fzzyhmstrs edited this page Nov 19, 2024 · 1 revision

Spawns particles around the loot drop location (generally the players position, or the location of the loot box perhaps)

This is a cosmetic entry; it does not add any standard descriptions or tiles, simply adding a splash of particles to rolling the pool.

JSON Definition

Key Type Value Example Note
"type" String
"lootables:particle"
"count" Integer or Object

Lootable Number

Optional, default 100

The number of particles to spawn. You probably need more than you think.
"radius" Integer or Object

Lootable Number

or

See Radius Definition below

Optional, default 1 block radius sphere

The shape of the particle splash. Can either be a single Lootable Number, or a complex Radius (see below)
"speed" Float or Object

Lootable Number

Optional, default 0.0

The velocity that the particles "explode" out from the center of the splash.
"child" Object

Lootable Entry Goes Here

Required

The nested entry that will actually be applied after the cosmetic effect goes off.

Radius Definition

Key Type Value Example Note
"x" String
4.5
The X radius of the particle cloud
"y" String
2.5
The Y (vertical) radius of the particle cloud
"z" String
4.5
The Z radius of the particle cloud

Examples

Spawns a clouds of hearts as well as healing the player.

{
  "type": "lootables:particle",
  "particle": "minecraft:heart",
  "count": 80,
  "radius": {
    "x": 3.5,
    "y": 2.0,
    "z": 3.5
  },
  "speed": 0.5,
  "child": {
    "type": "lootables:heal",
    "amount": {
      "n": 6,
      "p": 0.5
    }
  }
}

Clone this wiki locally