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

Started by Newtoblarone44 on

Topic category: Help with Minecraft modding (Java Edition)

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 

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???

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

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 (:

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok thanks for help :D i was…
Wed, 08/21/2024 - 20:57

ok thanks for help :D i was trying to make a command block with nbt to store the command in it and it worked i did maked to store the command with editing the nbt text property an storing it to the block that i was pointing on and loading it on there thank you guys soo much for the raytracing help! :DDDDD