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

How to add sounds to buttons using FormAPI

Discussion in 'Requests' started by FurryJaki1992, May 23, 2020.

  1. FurryJaki1992

    FurryJaki1992 Creeper

    Messages:
    1
    How to add sounds to buttons using FormAPI
     
  2. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    PHP:

    case 0:
    $player->getLevel()->addSound(new PopSound($player->asVector3()));
    break;

    You can use PlaySoundPacket to add another sounds
     
  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.