-
Notifications
You must be signed in to change notification settings - Fork 1
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.
| Key | Type | Value Example | Note |
|---|---|---|---|
"type" |
String |
"lootables:particle" |
|
"count" |
Integer or Object |
Optional, default 100 The number of particles to spawn. You probably need more than you think. |
|
"radius" |
Integer or Object |
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 |
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. |
| 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 |
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
}
}
}