Posted January 24, 201312 yr is there an easy way to get coordinates of the block player is looking at? (like the block at which target box appears) http://www.minecraftforum.net/topic/1871576-152-161forgealchemy-enhance-your-brewing-expirience-now-with-downloads/ Check it out!
January 24, 201312 yr I will redirect you to this post in which I reply, maybe is useful for you too: http://www.minecraftforge.net/forum/index.php/topic,5214.0.html If yo want to say thanks, push the button!
January 25, 201312 yr Author this is just the way to determine the direction block should face after placement. I need a way to find target block coordinates and it's sides and directions don't really matter http://www.minecraftforum.net/topic/1871576-152-161forgealchemy-enhance-your-brewing-expirience-now-with-downloads/ Check it out!
January 25, 201312 yr Then maybe you can use: world.getBlockId(x, y, z) You can scan the blocks arround the player (supposing you know the position of the player) and know if it's the block you want by the ID. To know the direction you should scan use the strategy i posted before. Hope to help you now If yo want to say thanks, push the button!
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.