Topic category: Help with MCreator software
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!
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?
I used just the base template and it did not work so I watched some basic mcreator ai vids and adjusted it. No change
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.
Water entities commonly try to pathfind towards water to avoid suffocating on land, and they prioritize this over attacking their target
I tried changing it from a water entity to a land mob and it still does not move
yeah theres problems with the entity AIs such as them often having very short sight range even if you modify it
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.