Posted May 27, 20187 yr Hello, I'm trying to get a position of a block the player has mined, to replicate a veinminer type effect. I have an IBlockState, however, I do not see anything to get a position from this. Thank you. Edited May 27, 20187 yr by Lambda The issue has been solved Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
May 27, 20187 yr 10 minutes ago, Lambda said: Hello, I'm trying to get a position of a block the player has mined, to replicate a veinminer type effect. I have an IBlockState, however, I do not see anything to get a position from this. Thank you. I assume you are inside the player block break event? Have a look at what I do in my EventSubscriber class About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
May 27, 20187 yr Author Oh, I was using a different event ( PlayerEvent.HarvestCheck ) to do this. As I now realize, this isn't what I wanted, so I will be using this event. Thank you! Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
May 27, 20187 yr Can you please mark the topic as solved? Also thought you would probably want to know that the link in your signature to your GitHub is broken! About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
May 27, 20187 yr Author Ah, will fix that, thank you! Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
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.