Help Changing Mob AI Ranged Attacks Sound

Started by Krepitus on

Topic category: Help with modding (Java Edition)

Last seen on 13:01, 30. Oct 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help Changing Mob AI Ranged Attacks Sound

Hello, I've been working on a entity that shoots a magic orb. It's functional but the ranged attack section in AI plays an arrow sound when the entity uses ranged attacks. I tried making a ranged item with a custom sound but I't doesn't work It will always play an arrow sound.

I would like to know if theres a possibility to change that arrow sound, maybe with code? Thanks

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess I would recommend…
Mon, 08/22/2022 - 15:00

I guess I would recommend looking into the mob's locked code and see if you can find the specific part where it references the arrow sound effect? Otherwise, I guess you could manually make a procedure that plays the desired sound effect whenever the mob attacks, making it noisy enough to drown out the arrow sound effect. (Not an ideal solution, admittedly, but it might work.)

Last seen on 13:01, 30. Oct 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've already looked in the…
Tue, 08/23/2022 - 14:43

I've already looked in the code but I think the sound is related to a function called CustomEntityArrow or something similar and it cannot be changed from what I understood so I guess the procedure thing you suggest could work, thanks.