The parameters for addSound() are: \pocketmine\level addSound(Sound $sound, array $players = null). So construct the sound with the id you want through \pocketmine\level\sound\GenericSound __construct(Vector3 $pos, $id, $pitch = 0) PHP: /** So all together now */$player = //Player instance from somewhere$sound = new GenericSound($player, 1002/*id of your choice*/, 0/*Pitch if needed*/);/** optional array of players */$player->getLevel()->addSound($sound, $player->getLevel()->getPlayers());