Solved Playing Villager idle sound

Discussion in 'Development' started by Primus, Oct 11, 2018.

  1. Primus

    Primus Zombie Verified

    Messages:
    290
    I was trying to play the iconic villager "Hmmm" when player comes near the villager, however I realized that it did not work. I tried playing all sound id starting from 0 - 10,000. Which was useless. I found out that Villager idle sound id was 113, but unfortunately it didn't work either. So how should I add this sound and is it even possible?
     
    Last edited: Oct 11, 2018
  2. DaPigGuy

    DaPigGuy Slime

    Messages:
    93
    GitHub:
    DaPigGuy
    The PlaySoundPacket with soundName mob.villager.idle should work. You can directly use this, or create a new sound class, and change the encode function to use it.
     
    XenialDan, SleepSpace9 and Primus like this.
  3. Primus

    Primus Zombie Verified

    Messages:
    290
    Thanks :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.