how to make a player teleport to the block they are looking at

Started by Archie Rutherford on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a player teleport to the block they are looking at

i am making a project where if you get a weapon you can teleport there you click but i cant get it to work and there is nothing online about it could someone help me?

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks but i cant even…
Sun, 07/13/2025 - 06:32

thanks but i cant even figure out how to make it ray trace to the ground

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do something like this: And…
Mon, 07/14/2025 - 20:17

Do something like this:

And to prevent teleportation inside a wall follow the other forum