Topic category: Help with modding (Java Edition)
I created custom mob and added sounds to it: living, hurt and death. But in the game I noticed that sounds don't play from the mob's position, they play like global sounds (like game music or menu clicks).
To describe this better I recorded 50 second video. Please use headphones to understand this issue. In the video I spawn vanilla pigs and my mobs, so you can compare how they sound. Pig's souds change volume depending on player's position. They also have this "3D effect", you can say that pig is behind your back just by it's sound. But my custom mob does not sound like this, it has the same volume and does not have 3D effect, it feels like it sound happens just in between my ears. Sound volume and "source" is the same if mob is in front or behind, close or away.
I really would like to fix this because this makes mob interaction weird. Any idea how to make custom mob sounds work like vanilla mob sounds? Thanks in advance! :)