SHsuperCM Posted July 29, 2016 Share Posted July 29, 2016 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 ? Quote Doing stuff n' things Link to comment Share on other sites More sharing options...
Choonster Posted July 29, 2016 Share Posted July 29, 2016 You have the world and the position of the block that was right clicked, so use World#getBlockState . Quote 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. Link to comment Share on other sites More sharing options...
SHsuperCM Posted July 29, 2016 Author Share Posted July 29, 2016 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! Quote Doing stuff n' things Link to comment Share on other sites More sharing options...
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.