RegionJukebox
Is the default Minecraft music a little dull? Would you like to add atmospheric music to your regions? Now you can, with RegionJukebox! Setup your cemeteries with scary organ pipes, or your relaxing vacation home with nice chimes. Just define a region with WorldGuard and then assign either a Minecraft record or a custom resource pack sound to the region. Whenever a player enters the region, the music will play for that player!
Bring in Version 2.0! :D
Holy crap people! I finally did it! Version 2.0 is here! The one feature everyone has been asking for is here now. Drum roll please... Custom music! You can now assign regions to play sounds from resource packs. Just use the same name you use in the sounds.json file in the command. For those that still use the beautiful default Minecraft records, don't worry, you can still use those.
Music. Is. Everywhere. EVERYWHERE! The music now plays at a configurable "speaker" block in the region. If you configure the region to play from a note block, then the music will play from every note block in the region. This way you can have it play from different spots in the region, or even have it play from every grass block (I suggest not doing this, it's pretty intense).
Looping works wonderfully now. Looping is no longer a global setting, and can now be configured per region. The only thing that is needed to loop is the length of the music being played. For custom sounds, you're going to have to guess and check a little bit to get it right. For those using default Minecraft records, you don't even have to worry about it. The plugin already knows the lengths of each record, so you can just leave that argument out of the command.
How to Install:
- WorldGuard IS NEEDED
- WorldGuard Region Events IS NEEDED
- Just drop jar into the plugins folder and you're set!
Current Features:
- Assign music to predefined WorldGuard regions
- Play either Minecraft records or custom resource pack music
- Loop the music! Configurable per region
- Assign a "speaker" block to play the sound at in the region
- Auto-updating
Planned Features:
- Got any suggestions? Go ahead and tell me about them!
Commands:
- /rj help - Shows a list of commands
- /rj recordlist - Shows list of records to play
- /rj regionlist - Shows list of regions with jukebox enabled
- /rj remove - Removes the jukebox from a region
- /rj reload - Reloads configuration file
- /rj set - Sets the region's jukebox music
For additional help with the commands, just type out the command in chat, and their usages along with what each parameter means will be shown.
Permissions:
- regionjukebox.command.rj - Allows the use of the rj command
Source
If you really want the source code, go ahead and decompile the jar file. Really, I don't care. Do what you want!
QA:
Q: Is it possible to make the music play throughout the whole region?
A: Yes! Version 2.0 fixed that! You can configure a "speaker" block to play the sound out of. You then place the designated "speaker" block all around your region.
Q: Can you make the music fade when a player leaves the region?
A: Kind of... Depends on if you're using the default Minecraft records or not. If you're using the records, they stop pretty abruptly. If you're using custom sounds, I actually can't stop those from playing. So as the player walks away from the sound source, it will fade away. If you guys want the records to act the same way as the custom sounds, let me know. I can definitely do that.
Q: Can you add custom music?
A: Yes! Version 2.0 to the rescue again! You can now configure regions to play custom resource pack sounds. Just use the same sound name as the sound.json file.
Q: Can you fix the region within a region thing?
A: I could, but don't want to. That goes beyond the scope of simplicity. That also gets into region detection and that's a lot more complicated.
Another thing that comes up a lot is people telling me the plugin is unresponsive or the events stopped working. I would like to let you know how I handle these. I first see a comment and trying to recreate the problem, load the freshest plugin onto my server. My dev server is always, ALWAYS, running the latest build to keep up with the client. The plugins however, are not, as plugins do not need to run the latest build to stay stable. I then try to recreate the problem using the current available plugin version and the current server. Most of the time, it works. If something doesn't work for you, you can try to delete the plugin and the data folder, and reinstall a fresh copy. If the problem persists, please explain exactly what the problem is and/or a step by step on how to reproduce the problem. Telling me "it doesn't work" doesn't help me at all.
Changelog:
- Version 2.0: *Latest Version*
- You can now play custom music! So excited for this!
- Looping is now configurable on a per region basis
- You can now assign a "speaker" block to play the music out of
- Version 1.6:
- Updated to 1.7.9
- Fixed a bug where leaving a region wouldn't stop the music
- Preparations were made for version 2.0!
- Version 1.52:
- Updated to 1.6.2
- Version 1.51:
- Fixed problem with not being able to remove configured regions
- Version 1.5:
- Rewrote plugin to save regions to config file. No more serialized objects!
- Version 1.45:
- Fixed a metadata error I came across
- Version 1.44:
- Added console log when user doesn't have permission to use command
- Version 1.43:
- Couple minor plugin.yml changes and console spam fixes
- Updated to 1.5.2.
- No changes to functionality
- Version 1.4:
- Regions are saved differently. No longer in unsightly text file. Please delete the text file!
- Version 1.31:
- Updated to 1.5.1
- Version 1.3:
- Added permissions
- Version 1.23:
- Added /rj reload command to reload the configuration file
- Fixed a null issue when leaving a region
- Music replays at the players location every loop cycle
- Version 1.22:
- Fixed console command usage
- Fixed a metadata issue when leaving a region
- Version 1.2:
- Added looping music
- Add configuration toggle for looping music
- Command syntax was slightly changed to accommodate the change in code for looping music
- Version 1.1:
- Fixed bug when updating a region with a new sound
- Added notification to updater so the user knows the plugin is updating itself
- Version 1.0:
- Initial Release
FunnyGopher,
Still one of my favorite plugins! I know you've been really busy, but have you ever looked into a way to make a playlist? I know i've mentioned it a while back, just wondering if it was something doable.
Hope school and life is well, hope to hear from you soon.
xXTreePuncherXx
Hello FunnyGopher,
I understand you are very busy however I think you can add a easy feature for us all. I have found personally on whatever of my servers I go to, the 'region' in config isn't working. However I was thinking if it were possible to make a configurable world for the music to play in. This would be very helpful for those who would prefer it over a region. You would have to make it configurable, however it could go someting along these lines:
World world = Bukkit.getWorld(worldName); for (Player players : world.getPlayers()) { players.sendMessage(yourPlugin);
@FunnyGopher
Great to hear from you! Can't wait for the following feature to come! This would make my rpg world so much more interesting, like going into dungeons with music following the player.
Is there a option to force a song (not the one from the jukebox, but music in the game) to play? I guess it's client side only, but maybe you'll find a way to do this :)
Hello peoples! Sorry I haven't updated the plugin lately, I honestly haven't been working on it. :p I just started college and I've been busy.
Unfortunately, no. I tried running them together, and then desperately. It's like a dead plugin.
@EvlCreeperReaper
Not every plugin loads a Config :P It brings more information to THIS plugin here, which it needs to run properly.
I bet you didn't try to run both at the same time? It works perfectly on my 1.6.2 server.
No, I am using the latest Beta Build of Bukkit 1.6.2, and Minecraft 1.6.2. When I go and drop the WG region Events file (CB 1.4.7) in my plugins folder, it does not generate a config after restart, nor does it show up in /help. However, it does say in my console: Enabling WG RegionEvents, and it does show up green when I do /plugins. It's like it exists, but doesn't exist. Any suggestions?
Thanks!
@EvlCreeperReaper
I simply put it in, and it worked fine.
Are you using any special builds of bukkit? I personally am using Spigot...
Hi again,
Just wanted to ask, if anyone is running this on a 1.6.2 server, can I ask how? WG Region Events (required for this plugin) does not work on my server, and whenever I post a comment asking for help (it doesn't create a configure file, but it still loads, like it doesn't exist), I get no reply. If anyone has a 1.6.2 server running this and WG Region Events and it works, can I please ask how you got it to work?
Thanks!
I am running a quake server...
My join signs are in the spawn region which plays wait(12). If a player joins the game, It continues to play the music(Which I think you might have said that happens), but when they die and respawn it should stop playing. Well it does, but then about every other time they respawn(in the arena, OUTSIDE of the spawn region)it starts up the song again...
Is there some way to prevent this?
@Vlaminations
I've been wanting a playlist for a while.
Hey! Awesome plugin but I have a request!
- Custom loop time (After X:XX time it starts again -> With resourcepack the song suddenly ends and then replays.)
- Playlists, would be awesome!
I use it as background music on my lobby server :D
Keep up the good work!
@Baffu
Thank you! :D
Great plugin idea ;)
@EvlCreeperReaper
Ahh, that might be a problem. Yes! Background music! That's exactly what this plugin is meant for! Gosh, if only more people thought like you. :)
Ok, thanks! I had tried using the WGRE Plugin with this on to test it and it didn't work, but I had been using a 1.5.2 server at the time. I'll see if I can try this again once my server upgrades.
Also, it's okay if the music cuts off, it doesn't have music, it's just theme park background music.
Thanks!
-Evl
@EvlCreeperReaper
Hmm, well, it should. I have been able to use it. Now, the looping part of the plugin is a little broken, because the loops were set for the lengths of the stock music discs, not custom music. It might cut off the song if the song is longer than the one you replaced it with.
If it doesn't, I'm afraid there is nothing I can do to help. I'm pretty sure it will work though. :)
Hi there,
I have been wanting to use this plugin for my server. On a world of my server I was going to make a replica of a theme park (Universal). I also made a custom resource pack that everyone would get on the server for the Park. In the resource pack, I changed some music disks so that they would play the Park's actual music in certain areas, looping over and over.
The only problem is that, sure, the plugin is 1.6.2. That's great!
However, this plugin needs WorldGuard RegionEvents to work. The update it's been on is for Minecraft 1.4.7. And it hasn't changed. Does it work with the 1.4.7 version of WorldGuard RE? if not, what should I do?
@MixWaves95
Well, with resource packs, you can change what the default cd music is. From there, you just play the replaced sound and it'll play like normal. No, you cannot add records to the record list.
@FunnyGopher
Thaks a lot, now it works perfectly well. One more question: I have downloaded the xtra blocks mod, now i have a bunch of cds with customable music. Is there any way to use custom cds or add them to rj recordlist?