Started by
Artistmonster24
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a mob for my mod that I want to "dance" when It senses a jukebox playing music within a certain radius. I just need help on figuring out the procedure to do so (Please don't use an update tick procedure if possible. Also, the animation side of things I have COMPLETELY figured out so please don't help me with playing the actual animation.) Thanks for your time.
Without custom code, there is no block that would help you to check if the jukebox is playing a song, I think.
well, what would this custom code be?
I don't have it at hand so you will need to either check in the decompiled code or wait for someone else who would have code for this ready
okay Thanks!
I've noticed in this update the buttons to the code view don't actually work.
Not to be rude, because I need ALL the help I can get, but what does that have to do with this post?
That's what it has got to do with it. You can't check the code because the buttons don't work.
okay then, well, is there any solution to this problem? The button problem?
I also have a problem with this because i'm making a mod which adds an effect regenerating you if music is played
This post is 3 years old but whatever -
You can check for blocks of type jukebox in range of [x] blocks and then check the redstone signal strenght of the block. For custom music discs i have no idea.
You can:
But it needs tick update trigger..