How to get coordinates of block player is looking at?

Started by Fish Snack-em's on Mon, 05/24/2021 - 12:23

Topic category: Help with modding (Java Edition)

Last seen on 17:03, 24. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to get coordinates of block player is looking at?
Mon, 05/24/2021 - 12:33 (edited)

I'm trying to make a tool that creates an explosion at whatever block the player is looking at. How would i get the coordinates of that block if it is outside of their view?

Edited by Fish Snack-em's on Mon, 05/24/2021 - 12:33
Last seen on 17:03, 24. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you, The raytracing…
Mon, 05/24/2021 - 13:21

Thank you, The raytracing confused me