Jump to content

I'm Trying to get the BlockPos Value of the targeted block with PlayerEvent.HarvestCheck


TheFreak

Recommended Posts

Hello.
I was trying to make an event when the player break a block that is around another block in a cross patern the problem is that i can't seem to find how to get the position of the harvested block/targeted block ,
I tried to see if i could get a rayTrace value so maybe i'll get the block position with it ,
but no , so is there anyone knowing how to get my targeted block position ?



       (PlayerEvent.HarvestCheck  event)  {
BlockPos pos = event.I DON'T KNOW;
}

Link to comment
Share on other sites

48 minutes ago, TheFreak said:

I tried to see if i could get a rayTrace value so maybe i'll get the block position with it ,
but no

Show this, because the event does not contain the information you want.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.