Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 750 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 750 Bytes

CustomSound V1

NOTE: Sound Files In This Pack Are Not Mine!

Links:

How to Install

Add CustomSound.zip file from this project to resource_packs folder. Then open resource_packs.yml and type CustomSound.zip in resource_stack

Use:

use pocketmine\network\mcpe\protocol\PlaySoundPacket;
use pocketmine\Player;

Usage:

$packet = new PlaySoundPacket();
$packet->soundName = "custom.sound.cave";
$packet->x = $sender->getX();
$packet->y = $sender->getY();
$packet->z = $sender->getZ();
$packet->volume = 1;
$packet->pitch = 1;
$sender->sendDataPacket($packet);

Contact:

If you want more sounds added, you can contact me on Discord!

Discord: ByAlperenS#2447