Posted July 29, 20169 yr just a quickie, how can i get the block that was right clicked on the method: public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { in Item ? Doing stuff n' things
July 29, 20169 yr You have the world and the position of the block that was right clicked, so use World#getBlockState . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 29, 20169 yr Author You have the world and the position of the block that was right clicked, so use World#getBlockState . was not aware that getBlockState will eventually be able to return a Block tnx! Doing stuff n' things
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.