How To Make An Avoidant Mob Attack The Player + Spawning Condition?

Started by Hynt3r on Sat, 01/23/2021 - 02:07

Topic category: Help with MCreator software

Last seen on 17:12, 23. Jan 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How To Make An Avoidant Mob Attack The Player + Spawning Condition?
Sat, 01/23/2021 - 02:07

Hi all. I'm working on a biped mob right now that I have set to avoid the player if they approach it, but I'd also like it to attack the player if they provoke it. Trying to make this happen with the built-in AI results in it doing this weird attack-and-run away motion. Which is fine but I'd just like it to forget about avoiding altogether when it's been harmed so it can focus on attacking back. Is there any way I can get this to work the way I want it to?

As for my second question... I'd like my mob to spawn anywhere in any biome/dimension, night or day, kinda like the Ambient spawn preset except it's a living mob entity. I know there's a custom spawn setting but I have no idea what code I need to put to accomplish this?

Last seen on 00:45, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I was looking for help on…
Sat, 12/11/2021 - 01:53

I was looking for help on making an enemy that would run from the player while attacking them with projectiles, so I can't help you, but could you share the AI you set for the entity + any other code for it?