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

Solved Mute sheep entity sound

Discussion in 'Development' started by KHAV, Jul 1, 2018.

  1. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    I spawned Sheep entity but it make Sheep sound between each period of time and when you damage it, My question is: Is it possible to mute this sound where the Sheep become a mute without any sound from it or it is client-side?
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    that would need to determine if the sheep sound is client or server sided
    if it's server sided, simple: just dont send the packet
    if it's client sided, simple: just shovel a packet(resource pack) that make sheep sound silent
     
    Last edited: Jul 2, 2018
    Muqsit likes this.
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    For client-sided, it would either be the entity data flag DATA_FLAG_SILENT or StopSoundPacket.
     
    KHAV likes this.
  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.