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)

Active 4 years ago
Joined May 2021
Points:
574

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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 

Active 6 months ago
Joined Dec 2023
Points:
147

User statistics:

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

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

Active 6 months ago
Joined Dec 2023
Points:
147

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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

Active 6 months ago
Joined Dec 2023
Points:
147

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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 (:

Active 6 months ago
Joined Jun 2024
Points:
77

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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