How can i do something when i hit any entity with bare hands!?

Started by Kris on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i do something when i hit any entity with bare hands!?

i was trying to make Mcreator procedure when i noticed that where is no global trigger for hitting an enemy(not the one who appears in triggers menu when you creating an item)

If somebody know how to solve this please write me!!!

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is before entity is…
Wed, 07/23/2025 - 21:50

There is before entity is hurt, and you could use that, combine with an if condition that checks if the item in the source entity's main hand is air, and the item in the source entity's off hand is also air.