How to get the name of the block the player is looking at

Started by Newtoblarone44 on Sat, 06/12/2021 - 16:14

Topic category: Help with modding (Java Edition)

Last seen on 11:05, 11. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to get the name of the block the player is looking at
Sat, 06/12/2021 - 16:14

I wanted to recreate the targeted block in vanilla minecraft when you press F3 but i cant see a way to get the name of the block the player is looking at

Thanks