How does it "not work"? Are there any errors? Does it give any sound? If not, send your code. If it sends a different sound, what is it? Maybe just try different IDs until you find it.
no errors, just doesnt play. non of those ids from https://github.com/pmmp/PocketMine-...k/mcpe/protocol/LevelSoundEventPacket.php#L96 work i dont think.
PHP: public function playSound(Player $player, int $id) { $pk = new LevelSoundEventPacket(); $pk->sound = $id; $pk->position = new Vector3($player->x, $player->y, $player->z); $player->dataPacket($pk); } $this->playSound($player,62);