How to check what block a player is looking at

Started by ImNotFun on Mon, 08/10/2020 - 02:40

Topic category: Help with MCreator software

Last seen on 07:59, 18. Sep 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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:59, 18. Sep 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 06:37, 19. Sep 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:59, 18. Sep 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you so much this…
Mon, 07/26/2021 - 05:07

Thank you so much this really helped