How to detect the moment when a entity attacks another entity/player

Started by fireflanger on

Topic category: Help with MCreator software

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect the moment when a entity attacks another entity/player

This is for lets say as soon as entity/player is hit something happens
like, entity, swings sword,
or something like player gets poisoned
would really like the help if possible

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When making a procedure, at…
Wed, 09/23/2020 - 19:32

When making a procedure, at the top block where it all starts there should be an option that allows you to have it run when something happens rather than just being called upon elsewhere. One of these should be when entity is attacked. From there use the "Source Entity" as the entity doing the attack, and "Event/Target Entity" as the one being attacked.