I have this: Code: Jukebox j = block.getState(); System.out.println(j.isPlaying()); But no matter what it always returns true, even if there's not even a record in the jukebox. Any ideas as to other ways to check if it's playing?
try checking the data value whits record is inside, notice the server don't know the songs, so its never knows how long a song takes, it only sends to clients when they need to start the song
http://www.minecraftwiki.net/wiki/Data_values#Jukebox Basically, check if the block is a juke box, and then get the data and compare it to the chart. Any value other than 0 and equal or lower to 11 means it's playing a cd I believe.
After it's finished playing it still returns the data of the song that was playing (even if the record is removed).