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?
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.