how to change target entity

Started by MasterReal on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to change target entity

I'm making my first mod so take it easy,
I'm making a power that damages the target entity, however when I was testing the power it damages the player.
how can I change the target entity to the one that is in the crosshairs?