How to damage enemy that i collide with?

Started by viecha on

Topic category: Help with modding (Java Edition)

Last seen on 20:01, 9. Feb 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to damage enemy that i collide with?

So, i want to make a knife that when right clicked dashes (i have that part complete), but i want to make it so if while im dashing i run into a enemy, the enemy takes damage.

Note: I use the 1.12.2 generator (do not question it) and i tried every block that checked for a entity, but they weren't supported.