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. WarmakerT likes this.
  3. 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
  4. Offline

    moo3oo3oo3

  5.  
  6. Offline

    moo3oo3oo3

    oops, didn't read that part xD
     
  7. WHy not close the inventory a few ticks after inv open
     
  8. Offline

    sipsi133

    WarmakerT likes this.
  9. Offline

    NicksTheBoss

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

    sipsi133

Thread Status:
Not open for further replies.

Share This Page