JukeboxControl
JukeboxControl allows you to control your jukeboxes using redstone. When a jukebox receives a signal it will immediately begin playing whichever disc is inside it. If a disc is already playing it will restart playing it from the beginning.
Possible applications of this would be a machine that loops a disc or providing buttons to select which song to play in a party room.
-
View User Profile
-
Send Message
Posted Feb 22, 2012Thanks, hope this works for 1.1 :P
-
View User Profile
-
Send Message
Posted Jan 19, 2012@cvxx7q
I'd like to have auto-repeat but because of limitations in bukkit it's not possible for me to do it at the moment.
There is no way for a plugin to know whether a jukebox is playing a song currently or not and there is no way for a plugin to be notified when a song ends. The best you can really do right now is a looping circuit that emits a pulse just after the song ends.
-
View User Profile
-
Send Message
Posted Jan 19, 2012i attached a lever set it to ON then the music plays (i can switch the lever to rest the disc) but if i leave and come back it hasnt restarted which is kinda what i wanted, theme music for various locations
-
View User Profile
-
Send Message
Posted Jan 11, 2012I really want this plugin to work, however it doesn't do anything! The music doesnt play when it recieves a signal! It does say plugin enabled in my log. I will take a look at the code myself if thats okey...
-
View User Profile
-
Send Message
Posted Dec 11, 2011@AvariceSyn
I've been unable to replicate the console spamming at all under the latest development build of craftbukkit for 1.0.0
I'd recommend sitting tight until the 1.0.0 RB and it should work fine.
-
View User Profile
-
Send Message
Posted Dec 7, 2011@AvariceSyn
Okay. I'm looking into what is causing the console spamming and will fix that.
The feature request of having it stop playback when the jukebox loses power is not a trivial one sadly. Owing to limitations of bukkit I would have to empty the contents of the jukebox for this to occur. There would then be a choice between having players lose their discs or keeping a separate database of the actual contents of the jukeboxes which is quite a messy and cumbersome solution. This would also require configuration, which is something I am very reluctant to have for a plugin so simple and focused.
For those reasons I do not have any plans on adding that for the foreseeable future.
I'll try and have a new build up for you in the next few days.
-
View User Profile
-
Send Message
Posted Dec 5, 2011I really really really REALLY want to use this plugin, but the console spamming is a turn-off, especially since I'll be using falsebook player detection ICs to power the jukebox so that it starts when a player enters the area.
Another nice option to have would be for it to be configurable as to whether or not the jukebox "turns off" when not powered or when it receives another signal rather than restarting the music.
+1 for taking care of one of the most underrated depth-adding features of the game!
-
View User Profile
-
Send Message
Posted Dec 5, 2011Ive only tried it so far with wooden pressure plate > redstone wire > jukebox. The jukebox does start/restart the disc when you hit the plate as it should and the console gets spammed for as long as you stand on the pressure plate plus a little while more, I'm guessing around half a second in ticks.
-
View User Profile
-
Send Message
Posted Dec 3, 2011@Swang4004
Does this still occur when there is redstone dust between the pressure plate and the jukebox? Or does this only happen when the jukebox is directly powered by the pressure plate?
And to clarify, the jukebox still works as expected, the only problem is the error spam in the console?
-
View User Profile
-
Send Message
Posted Dec 2, 2011Ive been looking for a mod for a long time that did this. It does work but for as long as you are on a pressure plate powering the jukebox through redstone wire the console is spammed with this. It i sent many times a second so it may be displayed every tick. I am on RB1337.
(JCBlockListener.java:23) at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.java:520) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.BlockRedstoneWire.a(BlockRedstoneWire.java:110) at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:41) at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286) at net.minecraft.server.World.k(World.java:488) at net.minecraft.server.World.applyPhysics(World.java:464) at net.minecraft.server.World.update(World.java:431) at net.minecraft.server.World.setData(World.java:373) at org.bukkit.craftbukkit.block.CraftJukebox.setPlaying(CraftJukebox.java:36) at me.exec64.JukeboxControl.JCBlockListener.checkJukebox(JCBlockListener.java:47) at me.exec64.JukeboxControl.JCBlockListener.onBlockRedstoneChange