1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Mineplex count down sound?

Discussion in 'Development' started by epicsteve33, Jan 17, 2017.

  1. epicsteve33

    epicsteve33 Banned Banned

    Messages:
    11
    GitHub:
    epicsteve33
    Any easy was of making the Mineplex count down sounds? I already have a timer for a game and everything ready I just need the noteblock sound that mineplex has on their pc server I am not sure how to do this, can anyone help?
     
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    I'm not sure that's possible. You're talking about Mineplex's PC server right? Bukkit and Spigot (and the other MC PC server softwares) have the noteblock sonds built it, as all it is just a modified version of vanilla Minecraft. PocketMine-MP doesn't have noteblocks working yet, thus their sonds are not implemented. You can do other sounds for a timer countdown (such as door sounds, chest, TNT explosions, etc) but not noteblocks.
     
    applqpak likes this.
  3. epicsteve33

    epicsteve33 Banned Banned

    Messages:
    11
    GitHub:
    epicsteve33
    Yes I was talking about the pc server, I really wish I could do it
     
  4. epicsteve33

    epicsteve33 Banned Banned

    Messages:
    11
    GitHub:
    epicsteve33
    I tried using this from genisys I added this to my plugin and I was not sure how to use it but I'm pretty sure it requires a noteblock in the map for it to work

    PHP:
    <?php

    namespace KingdomCore\utils;

    use 
    pocketmine\math\Vector3;
    use 
    pocketmine\network\protocol\BlockEventPacket;

    class 
    NoteBlock extends GenericSound{

       protected 
    $instrument;
       protected 
    $pitch;

       const 
    INSTRUMENT_PIANO 0;
       const 
    INSTRUMENT_BASS_DRUM 1;
       const 
    INSTRUMENT_CLICK 2;
       const 
    INSTRUMENT_TABOUR 3;
       const 
    INSTRUMENT_BASS 4;

       public function 
    __construct(Vector3 $pos$instrument self::INSTRUMENT_PIANO$pitch 0){
           
    parent::__construct($pos$instrument$pitch);
           
    $this->instrument $instrument;
           
    $this->pitch $pitch;
       }

       public function 
    encode(){
           
    $pk = new BlockEventPacket();
           
    $pk->$this->x;
           
    $pk->$this->y;
           
    $pk->$this->z;
           
    $pk->case1 $this->instrument;
           
    $pk->case2 $this->pitch;

           return 
    $pk;
       }
    }

     
  5. epicsteve33

    epicsteve33 Banned Banned

    Messages:
    11
    GitHub:
    epicsteve33
    But I was hoping for a better way
     
  6. 0x15f

    0x15f Baby Zombie

    Messages:
    145
    GitHub:
    0x15f
    Spawn an invis tile under the player.
     
    Skullex and applqpak like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.