i can add sound using $level->addsound but there are only few sounds from MCPE but in MCPE is a lot more sounds and i think i can play them too so how?
These are all the sound you can play. https://github.com/PocketMine/PocketMine-MP/tree/master/src/pocketmine/level/sound
PHP: namespace Some\Namespace;use pocketmine\level\sounds\GenericSound;use pocketmine\math\Vector3;class ExperimentalSound extends GenericSound{ public function __construct(Vector3 $pos, $pitch = 0){ parent::__construct($pos, /* Could test ids 1000 - 1015 */1000 , $pitch); }} How shoghi gets the id?
Explosion is a special exception. It is dependent on the explosion event itself. From he MCPE source code now that he is the developer. Before, they used things like Wireshark to intercept the connections and study the packet structure. They also disassembled MCPE distributions.