Deal damage to the mob the player is looking at

Started by Altindag3536 on

Topic category: Help with Minecraft modding (Java Edition)

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

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