Hostile Mob that sometimes attack when right next to it and never chases players or moves

Started by Minejosh80 on Fri, 07/17/2020 - 03:44

Topic category: Help with MCreator software

Last seen on 17:40, 14. Oct 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hostile Mob that sometimes attack when right next to it and never chases players or moves
Fri, 07/17/2020 - 03:44

I built a mod in mcreator and when i summon it the model and texture works fine but its AI seems to no work. Its supposed to attack and chase any players it sees first then wander and look around but it stands still and only attack if you are right in front of it and only sometimes. This is a water mob that can walk on land.

Code:

Do melee/contact attack with speed factor 1.2;

Fight attacker mobs back, call for help;

Attack(in sight only)(nearby only)entities of type "EntityPlayer";

Attack(in sight only)(nearby only)entities of type "EntityPlayerMP";

Follow same mobs with speed "1" with max range "10" and follow area "10";

Wander around with speed factor "1";

Swim randomly with speed factor "1";

Look around;

Some other details:

characteristics: mob

Creature Type: undead

Entity health value, xp amount: 20,5

Mob default drop: fish

Movement speed, tracking range: 1,64

Attack strength, armor base value: 5,4

Equipment: none

Entity immune to: Drowning

Not rideable

Water entity

 

Help full comments please. if i make myself sound stupid just tell me the answer don't be toxic. Thanks!

 

 

Last seen on 04:17, 19. Jun 2021
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm not even going to…
Sat, 07/18/2020 - 03:30

I'm not even going to pretend like I know why AI does and doesn't work sometimes, but I find starting with one of the templates then modifying it slightly helps a lot usually, so maybe try that?

Last seen on 17:40, 14. Oct 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I used just the base…
Mon, 07/20/2020 - 07:37

I used just the base template and it did not work so I watched some basic mcreator ai vids and adjusted it. No change

Last seen on 12:49, 16. Jun 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah I can never get mobs to…
Wed, 07/22/2020 - 13:39

Yeah I can never get mobs to attack properly, they will attack if the player attacks them first but I can't make them attack on sight.

Last seen on 16:48, 17. Dec 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Water entities commonly try…
Wed, 07/22/2020 - 13:51

Water entities commonly try to pathfind towards water to avoid suffocating on land, and they prioritize this over attacking their target

Last seen on 17:40, 14. Oct 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I tried changing it from a…
Thu, 07/23/2020 - 16:34

I tried changing it from a water entity to a land mob and it still does not move