how to detect that you hit a mob

Started by bran580 on

Topic category: Help with Minecraft modding (Java Edition)

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