PlayMusicCommand

This project has become inactive.

This project is inactive and its default file will likely not work with the most recent version of Minecraft. The author may have abandoned it, or it may have outlived its usefulness.

PlayMusicCommandLogo

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.

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of brainflakes brainflakes Aug 19, 2013 at 15:10 UTC - 0 likes

    @SpookyPirate: Go

    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

    Random play

    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)

  • Avatar of SpookyPirate SpookyPirate Aug 19, 2013 at 11:17 UTC - 0 likes

    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?

  • 2 comments

Facts

Date created
Aug 16, 2013
Categories
Last update
Aug 17, 2013
Development stage
Inactive
License
Public Domain
Curse link
PlayMusicCommand
Downloads
342
Recent file

Authors