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

Started by fireflanger on Wed, 09/23/2020 - 17:33

Topic category: Help with MCreator software

Last seen on 15:57, 11. Oct 2020
Joined Feb 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to detect the moment when a entity attacks another entity/player
Wed, 09/23/2020 - 17:33

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 02:00, 24. Oct 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:57, 11. Oct 2020
Joined Feb 2018
User points:

User statistics:

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

thanks!