How do you make an entity's sound volume change based on direction/distance

Started by RedRaspy156 on Tue, 04/12/2022 - 21:49

Topic category: Troubleshooting, bugs, and solutions

Last seen on 19:16, 28. Jun 2022
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do you make an entity's sound volume change based on direction/distance
Tue, 04/12/2022 - 21:51 (edited)

I'm currently making a mod that adds many different types of mobs, but I can never tell the direction or distance of the entity because the sound just plays over the player. How can I change this?

Example: I added a fly entity and set it's ambient sound as "hostile", but it's ambient sound sounds like it's right next to me at all times.

Edited by RedRaspy156 on Tue, 04/12/2022 - 21:51