How to stop the inventory from showing up while keeping the animation when opening a chest.

Discussion in 'Plugin Development' started by NicksTheBoss, Dec 29, 2014.

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

    NicksTheBoss

    Is there any possible way to stop the inventory from showing up when clicking a chest without removing the chest animation? Since "event.setCancelled(true);" stops the animation and inventory together.
     
  2. Offline

    Konato_K

    WarmakerT likes this.
  3. Offline

    WarmakerT

  4. Offline

    NicksTheBoss

    @WarmakerT I tried doing what they said. I did
    Code:
    player.playNote(chest.getLocation(), (byte)1, (byte)1);
    but it still doesn't work. It just plays a note block sound.

    bump

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

    moo3oo3oo3

  6. Offline

    blablubbabc

     
  7. Offline

    moo3oo3oo3

    oops, didn't read that part xD
     
  8. Offline

    Monkeyboystein

    WHy not close the inventory a few ticks after inv open
     
  9. Offline

    sipsi133

    WarmakerT likes this.
  10. Offline

    NicksTheBoss

    @sipsi133 PacketPlayOutBlockAction can't be resolved as a type. I'm pretty sure this is because I use bukkit as a dependency.
     
  11. Offline

    sipsi133

Thread Status:
Not open for further replies.

Share This Page