Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved KnockBack & Sounds?

Comments in 'Plugin Development' started by iDirtPlayzMC, Oct 19, 2015.

  1. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    how can I use knockback and add sound so it will be like :
    PHP:
    $player->setMotion then ?? and then level->AddSound ZizzSound
    Sorry I havnt been coding for months I forgot all them .-.
  2. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    Nvm I remember now xD
  3. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    It should be something like this. :)
    PHP:
    $player->getLevel()->addSound(new LaunchSound($player));
    EDIT: Replace LaunchSound with any sound you like.
    iDirtPlayzMC likes this.

Share This Page

Advertisement