How do I make a button play a certain disc when the certain disc is in a slot?

Started by TheAllPowerfulBread on

Topic category: Help with modding (Java Edition)

Last seen on 19:11, 8. Aug 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a button play a certain disc when the certain disc is in a slot?

I'm trying to make a GUI play a certain disc when you press a button while the disc is in the correct slot, but I do not know how. How do I do this?

Picture of the GUIPicture of the GUI

Picture of the current ProcedurePicture of the current Procedure

Last seen on 15:46, 13. Oct 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That procedure should work-…
Tue, 08/02/2022 - 23:04

That procedure should work- though I recommend using Else-If blocks instead to streamline it. Make sure you have block entity turned on for your custom jukebox- also bear in mind that with this method, the music will continue playing even if the disc is removed, or if another disc is played. (You might want to add some sort of delay with the block.)

Last seen on 19:11, 8. Aug 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your advice worked perfectly…
Wed, 08/03/2022 - 05:36

Your advice worked perfectly, thanks!