eggpasta Posted May 6, 2021 Posted May 6, 2021 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 Quote
poopoodice Posted May 6, 2021 Posted May 6, 2021 You need to call LivingEntity#setActiveHand() in use() for the player to start "using". Quote
eggpasta Posted May 6, 2021 Author Posted May 6, 2021 On 5/6/2021 at 1:01 AM, poopoodice said: You need to call LivingEntity#setActiveHand() in use() for the player to start "using". Expand What is the 1.16.5 version of the method? Quote
eggpasta Posted May 6, 2021 Author Posted May 6, 2021 (edited) On 5/6/2021 at 10:42 AM, diesieben07 said: The Mojang name is startUsingItem. You can use forge-bot on the Forge discord to convert between MCP and Mojang names. Expand 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, 2021 by eggpasta add link Quote
eggpasta Posted May 6, 2021 Author Posted May 6, 2021 On 5/6/2021 at 12:54 PM, 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. Expand But the banana does not get removed from me after 30 ticks Quote
Recommended Posts
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.