How to check what block a player is looking at

Started by ImNotFun on

Topic category: Help with MCreator software

Last seen on 07:27, 21. Jun 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check what block a player is looking at
Mon, 08/10/2020 - 02:47 (edited)

I'm trying to do this with a keybind. When a player is looking at a certain block and is within 1 meter of it, when they press the keybind I can take the information of where the block is and what block it is. I've tried this with raytracing but so far it hasn't worked. Any help would be appreciated :D

 

Procedure

Edited by ImNotFun on Mon, 08/10/2020 - 02:47
Last seen on 20:24, 13. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would really help, but I…
Mon, 08/10/2020 - 10:17

I would really help, but I don't know how...

Last seen on 07:27, 21. Jun 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found out, turns out I…
Tue, 08/11/2020 - 09:12

I found out, turns out I wasn't using raytracing in the correct way :P

Last seen on 07:39, 14. Oct 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How did you solve it? Would…
Fri, 09/04/2020 - 14:24

How did you solve it? Would love to know.

Last seen on 07:27, 21. Jun 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The raytrace distance was…
Wed, 09/09/2020 - 06:23

The raytrace distance was too low. I had it set at 100, but I set it to 2500 and it worked pretty well

Last seen on 04:00, 24. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much this…
Mon, 07/26/2021 - 05:07

Thank you so much this really helped

Last seen on 07:25, 8. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you explain to me how it…
Sat, 01/08/2022 - 04:08

Can you explain to me how it works? What block is it looking at for it to work? I'm new to MCreator

Last seen on 19:33, 18. Feb 2024
Joined Jun 2023
Points:

User statistics:

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

Here is a tutorial I made for all of you guys