Topic category: Help with Minecraft modding (Java Edition)
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.
idk about the sounds.. but..
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
on the second step, i mean to say: the block that "Lord Of The D 42" showed you
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...
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.
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.