How to get coordinates of block player is looking at?

Started by Fish Snack-em's on

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:
  • 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:
  • MCreator plugins:
  • Comments:
Thank you, The raytracing…
Mon, 05/24/2021 - 13:21

Thank you, The raytracing confused me

Last seen on 19:33, 18. Feb 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is a tutorial I made:…
Fri, 07/07/2023 - 19:07

Here is a tutorial I made: link