sound parameters don't work in shorthand bracket groups
israelcurtis opened this issue ยท 6 comments
wanting to have a collection of possible sounds that play, but obviously only one at a time (if i used [], they all play at once). tried the {} syntax, but it fails to play anything:
action: HIT
tool: ANY_SWORD
sound: {HURT,HURT/0.75p,HURT/0.85p,HURT/1.25p,HURT/1.5p}
which means i have to use a giant dropgroup to accomplish:
dropgroup: bloodshed
action: HIT
tool: ANY_SWORD
drops:
- sound: HURT
chance: 20%
- sound: HURT/0.75p
chance: 20%
- sound: HURT/0.85p
chance: 20%
- sound: HURT/1.25p
chance: 20%
- sound: HURT/1.5p
chance: 20%
Didn't think to add that, will look into it. Even better in your case though would be supporting a range for the pitch and volume.
actually i'd be happy with a random pitch between two values. it's the little variations between successive sounds that make it sound more realistic.
Um, is range really what you want here? Using a range certainly wouldn't produce the same effect as the config you actually have.
I figured the idea was to have the sound play with a random pitch between two values. You're right though, might not sound as good as a set of pre chosen pitch options as per the curly bracket format.
Commit a1be70f addresses this - now adds range for volume and pitch as well as a basic { } list (eg. sound: {anvilbreak/0.8~1p/0.9v, catmeow}) which has an equal chance of any sound in the list being chosen.