how to make a tool work with swinging at non-living entities

Started by keenan1127 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a tool work with swinging at non-living entities

I want to have a tool that if you attack any entity, it does something, but it's only allowing me to do living entities, any work around for this?
I was thinking maybe something with entity swings item, but that would need to detect an entity getting hit by it too