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

Started by Newtoblarone44 on

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:
  • MCreator plugins:
  • Comments:
How to get the name of the block the player is looking at

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 

Last seen on 08:39, 29. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so how do i put this in an…
Tue, 05/21/2024 - 07:56

so how do i put this in an overlay???

Last seen on 08:39, 29. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i figured it out but i cant…
Tue, 05/21/2024 - 08:28

i figured it out but i cant find the convert code block or get display name only registrary name

Last seen on 08:39, 29. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i figured it out you need an…
Tue, 05/21/2024 - 08:31

i figured it out you need an item convert and get display name of item (: