1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Disable certain level sounds

Discussion in 'Development' started by iZeaoGamer, Aug 16, 2019.

  1. iZeaoGamer

    iZeaoGamer Creeper

    Messages:
    1
    GitHub:
    izeaogamer
    Hey, how can you disable certain sounds on the server?
    For example, say if I wanted to disable hitting sound, how would I do that?
    Many thanks.
     
  2. VirVolta

    VirVolta Silverfish

    Messages:
    16
    GitHub:
    VirvoltaSurMC
    A sound is sent either by the customer as when you walk... So in this case there is a way to delete it with the texture pack and replace it with another sound (mute).

    But it is possible that it is the server. you can stop with the StopSoundPacket packet.

    In your case it may be the "entity.player.hurt"

    The list of all sounds that can be deleted with the packet.
    http://www.theredengineer.com/1.9-playsound-list.html

    The package : https://github.com/pmmp/PocketMine-...ine/network/mcpe/protocol/StopSoundPacket.php
     
  3. Emi

    Emi Creeper

    Messages:
    4
    me puedes explicar al privado?
     
  4. Provsnoobgaming

    Provsnoobgaming Baby Zombie

    Messages:
    134
    GitHub:
    provsalt
    I din't speak random alphabert generator
     
  5. Emi

    Emi Creeper

    Messages:
    4
    Can you explain to me how to remove sounds privately?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.