BlockAction Packet

Discussion in 'Plugin Development' started by oasis9, Nov 28, 2014.

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

    oasis9

    Hello Bukkit forums, we meet again.
    Need help with this packet, I want a chest to have its lid open using this packet, as I found on http://wiki.vg/Protocol#Block_Action, and on the linked page, http://wiki.vg/Block_Actions, is said that the packet is used for Note Blocks, Pistons, and Chests. The page states that the packet is used to make the chest appear open or closed, depending on a defined byte value, of 2 bytes - The first, which is unused, so remains always at 1, and the other, 0, close, 1, open. Self explanatory

    TL;DR: How can I use the BlockAction packet to make a chest look open, it just isn't working.
     
  2. Offline

    Skionz

    oasis9 What isn't working... Give us your current code and/or stack-trace.
    You would probably do something like this
    Code:
    PacketPlayOutBlockAction(x, y, z, 1, 1, Blocks.CHESTS);
     
  3. Offline

    rbrick

Thread Status:
Not open for further replies.

Share This Page