Posted May 6, 20214 yr so i have an item : https://github.com/BananaSquares/Forge-Mod/blob/master/src/main/java/mod/trianglesinpoo/mcores/AnimatedItem.java But for some reason when i finish using the item finishUsingItem is not getting called
May 6, 20214 yr You need to call LivingEntity#setActiveHand() in use() for the player to start "using".
May 6, 20214 yr Author 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?
May 6, 20214 yr Author 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 May 6, 20214 yr by eggpasta add link
May 6, 20214 yr Author 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
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.