RedstoneJukeboxTrig
RedstoneJukeboxTrig
Tired of having your boring jukeboxes do nothing, but sit there until you have to bother yourself to get up and replace the record? Well not any more! RedstoneJukeboxTrig or Redstone Jukebox Trigger allows you to easily play a record in your jukebox by just powering it!
What this plugin does:
Basically, this plugin uses redstone to trigger jukeboxes. Simple as that. However, this does have some things going for it. The jukeboxes will loop if attached to a redstone pulser or redstone clock. When it gets to the end of the song, it will react to the redstone wire instead of restarting from the beginning every time it's powered. Note: This will not play records that are not in the jukebox. You need to already have a record in the jukebox for it to work.
How to install:
- Download the .jar file
- Place in plugins folder
- Enjoy!
Video Demonstration Courtesy of ghaz1ranka:
http://www.youtube.com/watch?v=KdQqO8zDwGc
To Do:
- Add looping if jukebox stays powered
- Fix small time gaps before songs can repeat again
Great plugin man!
Uploading RedstoneJukeboxTrig v2.5.0
+Updated to 2.5.0.
+Reorganized code
+Added ability to directly power directly power jukeboxes by repeaters, torches, levers, pressure plates, and buttons without a redstone wire
Could you please add this feature:
@Hsking11
I don't have that implemented yet, but thanks for the suggestion.
Is it possible to be able to stop or pause the music?
Like what bagheadinc said an off/on switch.
(sorry if it already has that function)
Can you make it rotate out the music?
going update soon for McMyAdmin?
Currently uploading version 2.0.1. Sorry I haven't updated for a little bit. Here's the direct link to the file: http://dev.bukkit.org/media/files/659/271/RedstoneJukeboxTrig.jar
So sorry for the inconvenience.
@PatPeter
Just so you know:
To Do:
Allow jukeboxes to be directly triggered by repeaters, torches, levers, pressure plates, and buttons
I haven't implemented this yet at all.
@B4krawi
You don't keep it powered. If you read:
To Do:
Add looping if jukebox stays powered
What you need to do is put it next to a redstone pulse. Currently I wish not to have the multiple timed events required to add this feature.
Looping doesn't work when i keep it powered
I get this error, and it won't work with Redstone Repeaters:
Awesome plugin, been having fun with it. I was wonder how feasible it would be to allow the jukebox to be play music while powered and stop playing when not powered. Essentially the ability to make a on/off switch.
Also, like the others, I've not been able to get the looping to work. I tried to make a simple redstone pulse, but it just kept restarting the song on each pulse.
Same here, it won't loop, and it spawns errors:
09.12 23:58:57 [Server] INFO ... 16 more
09.12 23:58:57 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
09.12 23:58:57 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source)
09.12 23:58:57 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
09.12 23:58:57 [Server] INFO at sun.reflect.GeneratedMethodAccessor626.invoke(Unknown Source)
09.12 23:58:57 [Server] INFO at me.cheddar262.RedstoneJukeboxTrig.RJTPlayerListener.onPlayerInteract(RJTPlayerListener.java:44)
09.12 23:58:57 [Server] INFO at org.bukkit.craftbukkit.block.CraftJukebox.getPlaying(CraftJukebox.java:26)
09.12 23:58:57 [Server] INFO Caused by: java.lang.NullPointerException
09.12 23:58:57 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
09.12 23:58:57 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
09.12 23:58:57 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
09.12 23:58:57 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
09.12 23:58:57 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595)
09.12 23:58:57 [Server] INFO at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
09.12 23:58:57 [Server] INFO at net.minecraft.server.ServerConnection.b(SourceFile:39)
09.12 23:58:57 [Server] INFO at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113)
09.12 23:58:57 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:290)
09.12 23:58:57 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:58)
09.12 23:58:57 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:662)
09.12 23:58:57 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:376)
09.12 23:58:57 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
09.12 23:58:57 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
09.12 23:58:57 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
09.12 23:58:57 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
09.12 23:58:57 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
09.12 23:58:57 [Server] INFO org.bukkit.event.EventException
09.12 23:58:57 [Server] SEVERE Could not pass event PlayerInteractEvent to RedstoneJukeboxTrig v2.0.0
But awesome plugin!
Great plugin, wanted this for some time now, thanks :D
However, looping doesn't seem to work. I keep a powered current to a jukebox and it just stops after a song is played
edit: woah, a lot of playerinteractevent errors here
Grabbing this one, thanks.
This was so going to be the first plugin i was going to make. Bummer! Anyways, ill test this out!
Currently uploading an update for RedstoneJukeboxTrig. This should fix the recent error with the new update.
No longer working in 1.4.4, causes server crash and throws errors.
When 1 player walk to Pressure Plates start the jukebox? right? PLSS