Bug? Packet62NamedSoundEffect won't play sound in /fireworks

Discussion in 'Plugin Development' started by TigerHix, Jul 28, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    TigerHix

    Code:java
    1. ((CraftPlayer) to).getHandle().playerConnection.sendPacket(new Packet62NamedSoundEffect("fireworks.launch1", loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), 1F, 1F));


    Don't worry about the Location loc, it's player's location. I tried others like "portal.trigger" and they work.

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  2. Offline

    etaxi341

  3. Offline

    TigerHix

  4. it may be that the effect has been changed inside minecraft, and that it may need a entity
    some effects like the love effect now need an entity, and in the past there where spawned using a structure like this
     
  5. Offline

    TheTinySpider

    I tried this, it seems like you can only send sounds without a "data value".
    So you'll have to send: "fireworks.launch", and not "fireworks.launch1"
     
  6. Offline

    TigerHix

    Perfect! Thread closed.
     
Thread Status:
Not open for further replies.

Share This Page