Started by
TheAllPowerfulBread
on
Topic category: Help with Minecraft modding (Java Edition)
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 GUI
Picture of the current Procedure
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.)
Your advice worked perfectly, thanks!