advanced distance problem

Started by iLikeCheese on

Topic category: Help with MCreator software

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
advanced distance problem

so im trying to spawn an entity within the players view but not centered. i thought of spawning it and getting the distance to a point in the center of the screen with a distance to the player of like 3 blocks. but i dont know how to get the point the player is looking at or how to get the distance to a given point. i know this was probalby impossible to understand so i made a diagram: 

 

https://ibb.co/DYbPv7Z