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

Started by fireflanger on

Topic category: Help with MCreator software

Last seen on 21:36, 6. Nov 2020
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

Last seen on 15:43, 1. Jan 2024
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.

Last seen on 21:36, 6. Nov 2020
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks!
Wed, 09/23/2020 - 21:15

thanks!