music procedures for boss

Started by Kieran Vax'ilian on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
music procedures for boss

To the point, I just want music, to play when a boss spawns (via an item, or commands, whichever is more doable) via procedures (if even possible), and to stop when the boss is no longer alive.

maybe, if possible, at all, the music follows the boss. I don't know if that is a thing that can be done, but yah know, might as well ask here as well.

version 1.17.1(the latest at the moment from what I saw it could do)
And again, boss spawns, music starts, boss dies, music, well, dies as well lol.

I can get the music to play when I click with AN item, but there is NO way I can see to DESIGNATE a SPECIFIC item that needs to be right clicked, otherwise I'd just use the spawning item I made for the boss.

I also can't seem to make it specify what ENTITY is required for the boss to spawn, as it just starts whenever ANY entity spawns, and if I do entity joining the world, it just spams it whenever an entity starts existing...

I honestly just want music to play when boss is alive, and to stop when it's not, I feel like it shouldn't be this hard to make that a thing, but I MIGHT just be blind and dumb, lol.

thanks for taking your time to read this nonsense lol.

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
idk about the sounds.. but…
Sun, 02/27/2022 - 07:24

idk about the sounds.. but..

I also can't seem to make it specify what ENTITY is required for the boss to spawn, as it just starts whenever ANY entity spawns, and if I do entity joining the world, it just spams it whenever an entity starts existing...

https://media.discordapp.net/attachments/875018408108904498/947393708339372052/unknown.png 

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
first, import your music,…
Sun, 02/27/2022 - 15:24

first, import your music,

second, make "on inital entity spawn" procedure

third, make an if statement with the block "Lord Of The D 42"

fourth, type play into the searchbar, it will be the 4th option down

unfortunately, i dont know how to stop the music soooo

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on the second step, i mean…
Sun, 02/27/2022 - 15:25

on the second step, i mean to say: the block that "Lord Of The D 42" showed you

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OH LORD of COURSE I missed a…
Sun, 02/27/2022 - 21:50

OH LORD of COURSE I missed a block I could have used(didn't scroll)
thanks, both of you XD!

now all I need is to figure out how to stop the sound, and...make it fire projectiles... for some reason I just can't get it to do that, but, maybe I'm dumb, if so, just let me know if its something easy, strangely, projectile shooting mobs...not a tutorial I can find...

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I AM SO GOD DAMN DUMB! there…
Sun, 02/27/2022 - 22:25

I AM SO GOD DAMN DUMB!

there is LITERALLY a trigger for when the mob dies XD!
thats how I make it stop music PFFT.

but I still now have to figure out why it won't fire projectiles at all.

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
first, import your music,…
Sat, 06/11/2022 - 14:51

first, import your music,

second, make "on inital entity spawn" procedure

third, make an if statement with the block "Lord Of The D 42"

fourth, type play into the searchbar, it will be the 4th option down

unfortunately, i dont know how to stop the music soooo

I'm having this problem and this didn't work for me.This will only play it once and you don't even need the if statement to play it once.