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

Started by Minejosh80 on

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:
  • MCreator plugins:
  • Comments:
Hostile Mob that sometimes attack when right next to it and never chases players or moves

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 16:48, 17. Jan 2024
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • 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 21:31, 15. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • 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:
  • 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

Last seen on 19:34, 6. Nov 2023
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah theres problems with…
Fri, 08/06/2021 - 09:44

yeah theres problems with the entity AIs such as them often having very short sight range even if you modify it

Last seen on 13:09, 17. Mar 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it depends on…
Fri, 08/06/2021 - 12:26

I think it depends on bedrock addons or java mods. When I tried bedrock, the game buggs. But on java, it works perfectly fine. If youo're using bedrock, I think Mcreator doesn't fully support bedrock yet, and it still has lots of bugs.