Music Discs

Discussion in 'Plugin Development' started by monkeymanboy, Sep 14, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    monkeymanboy

    I want to play music discs but I don't want a jukebox anywhere I know how to do it with a jukebox and set it to play something but how would I actually play it without one
     
  2. Offline

    Quantix

    To play the sound of a jukebox record use:
    Code:java
    1. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, Material.RECORD_3.getId());
    2. //To play any of the 12 records found in Minecraft use their material ID's
    3. //Use Material.GREEN_RECORD.getId(), Material.GOLD_RECORD.getId() or Material.RECORD_(# between 3 and 12).getId()

    You can also stop the playing of a record by doing the same thing as above but setting the ID to 0
     
  3. Offline

    monkeymanboy

    Quantix Thanks :D

    Quantix Any way to make it follow the player?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  4. Offline

    monkeymanboy

  5. Offline

    monkeymanboy

  6. Offline

    monkeymanboy

Thread Status:
Not open for further replies.

Share This Page