How to get coordinates of block player is looking at?

Started by Fish Snack-em's on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined May 2021
Points:
495

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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
Active 3 years ago
Joined May 2021
Points:
495

User statistics:

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

Thank you, The raytracing confused me

Active 5 months ago
Joined Jun 2023
Points:
212

User statistics:

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

Here is a tutorial I made: link