Started by
Krepitus
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.)
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.