juliarn / npc-lib

Asynchronous, high-performance Minecraft NPC library for 1.8-1.21 servers.
MIT License
296 stars 50 forks source link

Animations support? #100

Closed dandan2611 closed 1 year ago

dandan2611 commented 1 year ago

Hello!

I've been using NPC-Lib v2 for a project, now it's time to move to v3 (hello 1.19). Without documentation, it is pretty hard to know all the features implemented/not implemented yet in the new version of the library.

Are the npc animations implemented yet? (crouched, sitting...) If so, where are they located? If not, I could take some time to make a PR in order to make this possible :)

Have a great day!

derklaro commented 1 year ago

atm animations can only be send via the packet adapter directly (available from the platform). An example usage is: npc.platform().packetFactory().createAnimationPacket(EntityAnimation.SWING_MAIN_ARM).schedule(player, npc);.

There was a request to add methods to NPC for these packets as well, but I had no time yet to add those.

dandan2611 commented 1 year ago

Thank you! Closing the issue.