Posted August 30, 201312 yr This is probably a very stupid question but I just don't find anything: I have an Item. In onItemUse() I'd like to get the Name of the block that was clicked. I can get the Block ID with world.getBlockId(x, y, z). But how do i get the block's name? The unlocalizedName or even better the one I set with LanguageRegistry.addName(). I've been staring at code and Forum posts for over an hour now but haven't found anything... http://www.kelmai.com/wp-content/uploads/2013/08/signature.jpg[/img]
August 30, 201312 yr Block.blocklist[idNumber] If you guys dont get it.. then well ya.. try harder...
August 30, 201312 yr Author Oh wow, so simple. Thanks! http://www.kelmai.com/wp-content/uploads/2013/08/signature.jpg[/img]
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.