How Would I go About Making a Procedure to Check if a Jukebox is Playing Music?

Started by Artistmonster24 on Wed, 12/23/2020 - 17:37

Topic category: Help with modding (Java Edition)

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How Would I go About Making a Procedure to Check if a Jukebox is Playing Music?
Wed, 12/23/2020 - 17:37

    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…
Wed, 12/23/2020 - 18:32

Without custom code, there is no block that would help you to check if the jukebox is playing a song, I think.

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
well, what would this custom…
Wed, 12/23/2020 - 18:49

well, what would this custom code be?

I don't have it at hand so…
Wed, 12/23/2020 - 19:34

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

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
okay Thanks!  
Wed, 12/23/2020 - 19:43

okay Thanks!

 

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I've noticed in this update…
Wed, 12/23/2020 - 20:05

I've noticed in this update the buttons to the code view don't actually work.

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Not to be rude, because I…
Wed, 12/23/2020 - 20:51

Not to be rude, because I need ALL the help I can get, but what does that have to do with this post?

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
check in the decompiled code…
Wed, 12/23/2020 - 21:03

check in the decompiled code

That's what it has got to do with it. You can't check the code because the buttons don't work.

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
okay then, well, is there…
Wed, 12/23/2020 - 21:10

okay then, well, is there any solution to this problem? The button problem?

Last seen on 18:45, 19. May 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I also have a problem with…
Wed, 02/16/2022 - 16:55

I also have a problem with this because i'm making a mod which adds an effect regenerating you if music is played