PlayMusicCommand
PlayMusicCommand
Finally a simple command to easily add a looping jukebox music track to any area of your world via command blocks.
The plug-in has been tested on 1.6.2 but should work with older versions too.
Commands
- /playmusic <player> <record> [<x> <y> <z>]: Starts a single play of a jukebox record for a player, optionally at a custom x/y/z location. If location isn't specified then the player's current position is used. If triggered before the previous record has finished then the command is ignored.
- /playmusic <player> <record> ForceStart [<x> <y> <z>]: Starts the jukebox record immediately whether the previous play has finished or not.
- /playmusic <player> Stop: Stops the music for a given player.
<record> currently only supports Minecraft's built-in music discs: 13, Cat, Blocks, Chirp, Far, Mall, Mellohi, Stal, Strad, Ward, 11, Wait
Usage
To create an area with looping music (such as a world lobby or themed area) attach a command block to a redstone clock circuit (eg. a hopper clock) and add the command "playmusic @a[r=60] Mellohi". Any players within 60 blocks of the command block will hear Mellohi in a loop from their current position.
Equally you could trigger a single play on a redstone event such as a pressure plate or tripwire. Use ForceStart if this should interrupt any music still playing from a previous playmusic command (the plugin will always override music played from a jukebox block).
The music behaves as if it were played by a jukebox, so it has the same range of 65 blocks from the play location and doesn't follow the player until the track restarts. If you want the music to come from a fixed location in your map then enter co-ordinates eg. "playmusic @a[r=60] Mellohi -100 70 150".
By having several command blocks triggered at different times on a clock circuit with different records specified you can create a random play playlist, however different users will hear different songs.
@brainflakes
Hey, It was a good idea but I noticed something about the musics' timing, every time one of the songs stopped it replayed to same one, and I started to get sick of that song, any ideas towards that?
Thank you so much! :D This plugin is awesome! Really added a nice touch to the places on my server!
can you update this plugin
@SpookyPirate
Hi SpookyPirate, if you don't mind random order then simply having multiple command blocks triggered at different times with different records will create a random playlist, like a music wheel of fortune
Different players will hear different music tho, it's hard to avoid that as music handling in standard Minecraft is very basic and done entirely on the client (all the server can do is tell a client to start a music track from the beginning, so there's no way to come in on a track that's played halfway through already)
Hello. I've been looking for a plugin like this for awhile now to replace the jukeloop plugin I use. Is it possible to enter several disk names at once and make it continually play through them all?