Started by
MamaLuigi
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make it so if you are within a certain distance of an entity, and they are targeting a player, some boss music will start to play.
Once the music ends, i want it so the music will loop and start back from the beginning.
I also want it so if the player gets out of range, the entity is no long targeting a player, or if the entity dies, the music ends.
I want it to be able to work with the Ender Dragon, Wither, Warden, and Elder Guardian.
Would this all be possible with procedures?
Any help would be greatly appreciated!
Boss themes would be EPIC.
do you know how i could do it?
Here, i found this comment about this topic in a differemt forum, i think it will help you:
Here's how one could use boss music when it comes to mobs, both start and stop.
On initial mob spawn
- Use this block:
If it's a custom sound, I believe the sound is played based on what category it is in, such as master, ambient, player, neutral, hostile, block, record, and music.
When mob dies
- There's not necessarily an official stopsound block, however you could use this block:
and use this command:
This should work for what you want to have happen, but I could be wrong.