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

Started by Artistmonster24 on

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:
  • MCreator plugins:
  • Comments:
How Would I go About Making a Procedure to Check if a Jukebox is Playing Music?

    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:
  • 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:
  • MCreator plugins:
  • Comments:
okay Thanks!  
Wed, 12/23/2020 - 19:43

okay Thanks!

 

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • 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 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • 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 10:48, 18. Jul 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Last seen on 14:41, 22. Jan 2024
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This post is 3 years old but…
Tue, 10/03/2023 - 18:46

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:

  1. Check for all entities you want to dance from jukebox block
  2. Check for all jukebox blocks from entity you want to dance tick update

 

But it needs tick update trigger..