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
Hello Miso_Soup I have a few questions about the plugin and a suggestion. Can you update the plugin to 1.8? Since there are some problems with the juke boxes, can you make it, so that the music can be played everywhere? like Minecraft soundtrack calm1, calm2 and so on... The plugin looks really nice. I look forward to hearing from you.
Hello Miso_Soup,
I have a few questions about the plugin and a suggestion :o.
Can you update the plugin to 1.8? Since there are some problems with the juke boxes, can you make it, so that the music can be played everywhere? like Minecraft soundtrack calm1, calm2 and so on... The plugin looks really nice.
I look forward to hearing from you.
@Kazathur92
Everytime I enter a region the music plays as intended from the closest id block, however, as soon as I walk farther in my region the jukebox starts to fade away, the song only plays as long as you are close to the id block, and it doesn't matter if I add another Id block/speaker, it will not play on that other section of the region, unless I walk out of the region and enter from that side. Now, If I walk out of the region on this side of the new Id speaker and then walk in then that speaker will play, however the other speaker on the original side will still be playing the song, and then they are both dissonant with eachother! please help, I love your plugin but im confused as to how I can make it work properly in large regions.
Hello! I love this plugin. I have a question, is it possible to share a song between regions, like the song not changing or stopping as you enter the region that shares it? :o and also, yes! id love it if the record fades away, I imagine the custom sounds you refer to are the other sound effect sounds?
@ImmortalGhostx
How did you make a custom disc for your custom music? I've been using a custom folder in the sounds folder and using a sounds.json file.
@nikklo98
Well it doesnt look like you told it what music to play. You have to put the name of the song after the region.
When I use custom music, it plays really fast. I am using this plugin on my pixelmon server to play music on the routes. Here is a video to demonstrate what I mean:
https://www.youtube.com/watch?v=7SwhJk6-WIk&feature=youtu.be
I also suggest making an option to have the music play in the background at a constant volume.
Ok Im using RegionJukebox for my custom texture pack music. I select the region, and select the disk. I go in the region and nothing plays. Help me
@frankhribal
YEAH Its the same as me but it doesn't play at all.
I did /rj set test 5 57 true 100
and I tried /rj set 5 57 true
that didn't work so tried an old version of this plugin 1.6 but music still didn't play and I did check if my sound was up for all sounds and all were on max.
I'm having a couple problems.
i'll use "/rj set <region> mob.blaze.death 138 true 10", but sometimes it doesn't play, sometimes it does, sometimes i have to leave the region and re-enter, sometimes it doesn't loop, and sometimes it only loops over itself when i re-enter (and there's no way to stop it from playing not even using the playsound feature, which isn't your fault).
When i use "/rj remove <region>" it removes it from the regionlist, but not the config file and it doesnt stop the music. Reloading the plugin doesnt fix the file, and neither does reloading the server. Removing the speaker block does not stop the sound either, and will in fact keep looping, which could be good for some people. I have to go into the file and clear it out.
I believe the guy working on AdvancedSounds was trying to update your plugin when you stopped for a while, but i'm not sure. It seems he's had some luck with the player location as I saw you said you were having trouble with that.
The music pitch is sooooo high! I've no idea why this is..
Here is the command exactly as I typed it: /rj set testrj custom.music 20 true 100
The music is just so high pitched and fast! Anyway you could help me out on this?
@Victor_sueca
Okay, looked into that command. As the player moves away, the sound fades out. The sound does not follow the player. I typed the command exactly as you had it, and added the volume, pitch, and minimum volume arguments.
The sound in my plugin only plays for the player in the region, and no one else. Everybody gets their own sound, it's not a global thing.
I've tried very hard to come up with a solution that follows the player. Trust me. I've been trying different solutions for three years now, and so far, this is the best I could come up with.
@Victor_sueca
This is interesting. I was not aware of this. I'll take a look at the command and see if I can replicate it in the plugin. Thanks!
Hi, this is a great plugin, but it's not exactly what i need. Using blocks as speakers creates areas with low volume or areas where several plays of the same sound overlap with a bit of offset. An example of what i need would be the vanilla command /playsound used like this: "/playsound sound @a[r=50] ~ ~ ~ " wich would play the sound "sound" to everybody in a radius of 50 blocks centered at their current position even if they move. So what am I trying to say with this? That if you want "music everywhere" playing a sound that follows each player is much more usefull than several "speaker blocks". Hey! If a vanilla command can do it, a plugin too right? Of course, nobody wants to fill his server with /playsound command blocks and timer scoreboards for the loops. This plugin is still great, at least my spawn has music, it's almost unnoticeable in the corners but I preffer that more than offset overlaps.
Any plans on making this for sponge? :)
@FunnyGopher
Just did doesnt work on 1.8
@fgheyo992
I've had people report that it works in 1.8. Nothing in the code should break with 1.8. Just try it, and let me know what problems you get. :)
Great plugin,but we need a 1.8 version here.(want to update my server to 1.8, badly) It will be HELPFUL if this come true.
No work for 1.8 :v
Hey there everybody! I just released version 2.0! You can now play custom resource pack music, loop the music per region, and assign a "speaker" block to play the music from! Take it for a spin and let me know what you guys think!
@frankhribal
Hey man! Thanks for that video, it really helped. I actually just released version 2.0! Go ahead and check it out and let me know what you think!