Anyone know how to add events to when a mob hits a player?

Started by EidolonExperience on Thu, 04/09/2020 - 23:42

Topic category: Help with MCreator software

Last seen on 20:49, 19. Nov 2020
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Anyone know how to add events to when a mob hits a player?
Thu, 04/09/2020 - 23:42

Curious how to do this, would like to make an entity that knocks up players upon them getting hit. Similar to an iron golem.

Last seen on 17:02, 24. Jan 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How does this work as theā€¦
Fri, 04/10/2020 - 14:31

How does this work as the global trigger is "if entity is attacked" so that makes the entity the player. How do you know what is doing the attacking?