Bukkit-OtherBlocks icon indicating copy to clipboard operation
Bukkit-OtherBlocks copied to clipboard

sound parameters don't work in shorthand bracket groups

Open israelcurtis opened this issue 11 years ago • 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%

israelcurtis avatar Mar 25 '13 22:03 israelcurtis

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.

Zarius avatar Mar 26 '13 08:03 Zarius

yes, range would be great :)

israelcurtis avatar Mar 26 '13 09:03 israelcurtis

Um, is range really what you want here? Using a range certainly wouldn't produce the same effect as the config you actually have.

CelticMinstrel avatar Mar 27 '13 01:03 CelticMinstrel

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.

Zarius avatar Mar 27 '13 02:03 Zarius

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.

israelcurtis avatar Mar 27 '13 06:03 israelcurtis

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.

Zarius avatar Apr 10 '13 16:04 Zarius