.playSound?

Discussion in 'Plugin Development' started by woutboy, May 27, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    woutboy

    Hello, I'm a noob at this but I'm started to make a plugin to play sounds.
    Im using this piece of code for the sounds:

    player.playSound(loc, Sound.Soundname, 1, 1);

    But i have a problem, the sound is too fast, I mean it is a hiperspeed sound.
    How can i fix this?
    Thx

    -woutboy
     
  2. Offline

    Shinxs

    i think its the last number. change it to something in the minus like -2.5f or so
     
  3. Offline

    woutboy

    lol that looks like a bit too slow... xD
     
  4. Offline

    Shinxs

    you can change it ;)
     
  5. Offline

    woutboy

    Yea, I know i can change it.
    But my question is how?
    I only want to change it to the normal sound speed.

    -wouboy
     
  6. Offline

    Zach_1919

    woutboy Probably 0 or -1. Just change it to a sound that you can play for real like breaking a block and test by comparing it to that.
     
  7. Offline

    woutboy

    Ok, I'm gonna try it.
    What sound do you prefer to use?

    Thx
    -woutboy
     
  8. Offline

    Shinxs

    just try some number and find one that you like you can also use .something numbers
     
  9. Offline

    woutboy

    Ok, gonna try it now.
    But what number does minecraft use for the speed?
     
  10. Offline

    lualzockt

    Minecraft uses a default ambient of 0f
     
  11. Offline

    Johnzeh

    player.playSound(loc, Sound.Soundname, 10,1); Plays at normal pitch.
     
    BDKing88 likes this.
Thread Status:
Not open for further replies.

Share This Page