Jump to content

[1.10.2] How to animate item usage correctly via LivingEntityUseItemEvent?


Recommended Posts

Posted

It looks like modifying the item usage duration in LivingEntityUseItemEvent.Start doesn't properly change the resulting animation, e.g. food doesn't show as being eaten during the whole duration, if you're modifying it for built in item types. I tried doing this for food, so that it takes longer to eat when wearing certain armor, but instead, you get no animation for a while, then the animation for the regular usage time.

 

I noticed that AppleCore has a solution at https://github.com/squeek502/AppleCore/blob/0a5a53d501ae5737bd50f7e332a1e5cbb4bb0c08/java/squeek/applecore/asm/module/ModuleFoodEatingSpeed.java. Would it make sense to embed a similar solution into Forge itself?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.