No animation item switching.

Discussion in 'Plugin Development' started by 8jy89hui, Jun 3, 2015.

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


    I was wondering if it is possible to remove the animation that occurs when you use player.setItemInHand(ItemStack). Is it possible to have instant transition between ItemStack types?
    ex instant bread -> golden carrot conversion without that weird animation that occurs whenever you right click something.

    I imagine its so boolean somewhere but I am not 100% sure. (altering resource pack data is also possible)
  2. Offline


    ItemInHand changing animations are client side and can not be modified with resource packs. You would require a client side modification to make this possible.
  3. Offline


    @drew6017 Is there any way I can edit an ItemStack in your inventory using packets directly? To avoid the method being called and just edit the ItemStack?
  4. Offline


    The animation occurring client-side is, I believe, a reaction to the item in the player's hand changing- even just changing the durability server-side seems to make it happen. I don't think there's a separate packet for playing the animation.. though if there is a way to do this, I'd love to know about it too!
  5. Offline


    You cannot change this. This is all client sided, so unless you mod the clients launcher there is no way to change the animation.
Thread Status:
Not open for further replies.

Share This Page