Solved Playing Custom Sound Effects

Discussion in 'Plugin Development' started by Declan5486, Dec 16, 2015.

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

    Declan5486

    Hey,
    I have made a resource pack and made custom sounds in it.
    Im wondering how i would play this sound called "test.bounce" any ideas ?

    Thanks,
     
  2. Offline

    DoggyCode™

  3. Offline

    Declan5486

    Its not any sound i have changed. It added a new sound in a Resource Pack
     
    Last edited: Dec 16, 2015
  4. Offline

    GamerzKing

    You can't "add" new sounds to a resource pack, you must modify already existent sounds, so you can't play "test.sound", you must play an already existent sound that you've modified. So if you have modified a door open sound, you must play that sound to the player, and if they have your resource pack installed, they will then hear your custom sounds.
     
  5. Offline

    Gorbit99

    You can only do things in bukkit, that you can do in vanilla minecraft (let's not talk about packets, that's a different story), so if you want to fly, well, you can fly in vanilla, you want to run faster/jump higher? You can, it's in vanilla too. You want to play a normally non-existent sound? You can't, it isn't in vanilla
     
  6. Offline

    Zombie_Striker

    @GamerzKing @DoggyCode™ @Gorbit99
    I like how you are all are living in the past. 1.7 brought us this
    Code:
    player/world.playSound(Location location, String path-to-sound,float pitch, float volume)
                                                                     /*  These might be switched   */
    So you would use
    Code:
    player/world.playSound(location, "test.bounce",10F, 1F);
     
  7. Offline

    Gorbit99

    @Zombie_Striker Sorry, I forgot, that you can now play custom sounds in-game now.
     
Thread Status:
Not open for further replies.

Share This Page