Posted June 19, 20169 yr Hi, the problem I am having is obtaining the ItemStack's stackSize when the player shift clicks the result. The stackSize is always 0. But, when the player clicks and drags the item, it obtains the correct stack size. Any ideas? Thanks!
June 19, 20169 yr Author Are you referring to the event being fired on the client or server? Both sides for me still say 0. I need to multiply the amount made by a specified number.
June 19, 20169 yr Author onItemCraftedByPlayer, within PlayerEvents class. http://pastebin.com/cEp3tBTF The code is fired from my event handler, registered like so, "MinecraftForge.EVENT_BUS.register(new PlayerEvents());" from my CommonProxy The stack size is multiplied by the experience reward per item made. Sorry for the confusion. Thanks for the help.
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.