Boss Music?

Started by MamaLuigi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Boss Music?

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!

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Boss themes would be EPIC. 
Wed, 11/08/2023 - 23:39

Boss themes would be EPIC. 

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do you know how i could do…
Thu, 11/09/2023 - 01:12

do you know how i could do it?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here, i found this comment…
Sat, 01/13/2024 - 22:01

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:

Play at X:(x) Y:(y) Z:(z) level:(Num) pitch:(Num) sound:(Sound)

 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:

Execute command /

 and use this command:

stopsound @a <sound category> <sound>

This should work for what you want to have happen, but I could be wrong.