Need help with procedure that applies on the entity that the player is looking at

Started by nilek20 on Mon, 10/26/2020 - 13:31

Topic category: Help with modding (Java Edition)

Last seen on 01:56, 8. Nov 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need help with procedure that applies on the entity that the player is looking at
Mon, 10/26/2020 - 13:31

i am making an item that will instantly kill the entity that the player is looking at but i am having trouble understanding what blocks to use to get the position the the player is looking at

in other terms how do i determine what way the player is facing and what entity is at the player location.

also will this pass through blocks (i dont want it to)

Last seen on 23:33, 14. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I also want to know
Mon, 10/26/2020 - 20:48

I also want to know