How to make a mob run away when its health is low

Started by ModManOnCurseForge on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob run away when its health is low

I have a mob that attacks the player instantly, but i want to make the mob run away when its health is really low. Is there a way that i can do this?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can probably use this,
Mon, 10/07/2024 - 00:52

You can probably use this,

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set the additional start…
Mon, 10/07/2024 - 01:53

Set the additional start condition to check if it's health is low.

Although this might not actually be what you want since this goal will only make your entity run "away" for a couple seconds....,,,,