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

Started by nilek20 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with procedure that applies on the entity that the player is looking at

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)

Joined Sep 2020
Points:

User statistics:

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

I also want to know