Chest lid open/close visual without GUI

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

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

    oasis9

    Hallo,
    Title explains all, I would like to have a chest have its lid look open, but without any player right-clicking or interacting. I've seen people say Things like "p.playNote(loc, (byte) 1, (byte) [open (1=open, 0=closed)])' But this just plays a noise for me, a low pitched ding. Any suggestions?
     
  2. Offline

    xTigerRebornx

    _Fede likes this.
  3. Offline

    mythbusterma

    oasis9

    I would have it play the sound of a chest opening, rather than a note, but that's just my opinion.

    Also, you have a chest in the world that just looks open? I'm not sure if you can do this, as the chest opening animation is handled client side, but I could be wrong.

    EDIT: As per what was said above, you could only do this by playing out the effect, and not have a chest that permanently appears open.
     
  4. Offline

    oasis9

    mythbusterma The problem was, it played the sound of a low pitched ding instead of visually opening the chest lid, I don't even want the sound, but that's no problem, if it comes with one (chest related), cool.

    Nope, nvm, I'll just get the player to open it, cancel the inventory open event, and it should stay open, if not I'll find another way. This is for a bomb gadget, I would like the chest to look open, as the resourcepack contains textures regarding chests and their insides, which I would like other players to see for more than the moment.

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

    Dudemister1999

    oasis9 You could use ProtocolLib to send a packet (Cannot remember the name) telling the client to render the chest as opened.
     
  6. Offline

    oasis9

    Dudemister1999 No good at ProtocolLib, maybe an example, if you're willing to take your time to do so. Help is greatly appreciated, I just can't seem to think of any way to do this..
     
Thread Status:
Not open for further replies.

Share This Page