Posted December 25, 201311 yr Can I make minecraft call Item.onPlayerStoppedUsing() without the player walking slow? -siiikooo Minecraft!
December 25, 201311 yr You mean Item#onPlayerStoppedUsing(ItemStack, World, EntityPlayer, int) ? It is public so...you only need an item instance to use it.
December 25, 201311 yr Author Yeah but it isn't being called unless you call player.setItemInUse(stack, maxDuration) , which slows the player down, like eating would:( -siiikooo Minecraft!
December 25, 201311 yr Then the question is why you call player.setItemInUse(stack, maxDuration) instead of item.onPlayerStoppedUsing(ItemStack, World, EntityPlayer, int)
December 26, 201311 yr Author cause that is not how it works^^. Minecraft calls that for you when the player let's go the mouse button. -siiikooo Minecraft!
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.