how to detect that you hit a mob

Started by bran580 on

Topic category: Help with modding (Java Edition)

Last seen on 19:10, 19. Jan 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to detect that you hit a mob

so I was wondering how to detect whatever mob you are hitting eg. cow and it will execute a custom command