Deal damage to the mob the player is looking at

Started by Altindag3536 on

Topic category: Help with modding (Java Edition)

Last seen on 15:22, 5. Jan 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Deal damage to the mob the player is looking at

Basically i want to deal damage and teleport the mob or player - it doesnt matter - the player is looking at

Last seen on 13:08, 7. May 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can just use ray tracing…
Sun, 01/28/2024 - 12:58

You can just use ray tracing. Repeat for every block until an enemy is in a 1x1 block radius, increasing the length of the ray by 1 block every cycle