Kill the entity that the player is looking at

Started by Superkota on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Kill the entity that the player is looking at

I want to make an item that when right clicked on any entity it kills it, how do I do this?