-
Notifications
You must be signed in to change notification settings - Fork 1
Play Sound Entry
fzzyhmstrs edited this page Nov 19, 2024
·
1 revision
Plays the specified sound and then applies its child entry.
This is a cosmetic entry; it does not add any standard descriptions or tiles, simply adding a sound to rolling the pool.
| Key | Type | Value Example | Note |
|---|---|---|---|
"type" |
String |
"lootables:play_sound" |
|
"sound" |
String |
"minecraft:entity.allay.item_given" |
Required The ID of the sound event to play. |
"volume" |
Float or Object |
Optional, default volume 1.0 The volume of the sound. Should generally be in the range 0.0-2.0. Volumes >1 do not increase actual volume, it increases the range the sound can be heard from. |
|
"pitch" |
Float or Object |
Optional, default pitch 1.0 The volume of the sound. Should generally be in the range 0.5-1.5. |
|
"child" |
Object |
Lootable Entry Goes Here |
Required The nested entry that will actually be applied after the cosmetic effect goes off. |
Plays the XP orb pickup sound when the experience entry is chosen.
{
"type": "lootables:play_sound",
"sound": "minecraft:entity.experience_orb.pickup",
"child": {
"type": "lootables:xp",
"xp": {
"min": 25.0,
"max": 50.0
},
"levels": false
}
}