When you shoot a player a ding sound was supposed to play. I simply need the ID from this list: https://github.com/pmmp/PocketMine-...twork/mcpe/protocol/LevelSoundEventPacket.php
SOUND_SHOOT did nothing by the way. Could anybody tell me which pitch is the best one, or get me a website to test the pitches? If it is a website, could you give me the anvilfallsound sound file?
test it out yourself we cant just spoof feed you hint, use a delayed task to iterate through all sounds
I did something else. A command, like /test <pitch> But the result is not what I expected. All the time I get the same thing. PHP: <?phpnamespace TestThing;use pocketmine\plugin\PluginBase;use pocketmine\Player;use pocketmine\utils\TextFormat;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\level\sound\GenericSound;use pocketmine\math\Vector3;class Test extends PluginBase{ public function onEnable(){ $this->getLogger()->info("Enabled!"); } public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args): bool{ if($cmd->getName() === "test"){ $sender->getLevel()->addSound(new AnvilFallSound($sender->asVector3(), intval($args[0])), [$sender]); $sender->sendMessage(TextFormat::GREEN."Is this one good?"); return true; } }}class AnvilFallSound extends GenericSound{ public function __construct(Vector3 $pos, float $pitch = 0){ parent::__construct($pos, 1022, $pitch); }}