Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

finishUsingItem not triggering


Recommended Posts

9 hours ago, poopoodice said:

You need to call LivingEntity#setActiveHand() in use() for the player to start "using".

What is the 1.16.5 version of the method?

Link to post
Share on other sites
Posted (edited)
47 minutes ago, diesieben07 said:

The Mojang name is startUsingItem. You can use forge-bot on the Forge discord to convert between MCP and Mojang names.

adding this worked on one if my items but on the other still nothing happens 

https://github.com/BananaSquares/Forge-Mod/blob/master/src/main/java/mod/trianglesinpoo/mcores/Banana.java

Edited by eggpasta
add link
Link to post
Share on other sites

 

6 minutes ago, diesieben07 said:

It works fine, you have to hold down the right mouse button (keep using the item) for it to finish. In your caser the duration is 30 ticks, so 1.5 seconds.

But the banana does not get removed from me after 30 ticks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.