Started by
Cosmic_Mango33
on
Topic category: Advanced modding
I've added a capybara to my mod and I'm trying to get it to swim when in the water, but it only sits still and sinks while playing its swimming animation. When on land, it moves just find and when following an item it moves both in water and on land, but I can't get the mob to swim randomly while in the water, even with the "swim randomly" block inserted.
have both wander around and swim randomly in the ai goal.
make sure it can breathe water
Create a new procedure:
If is Event/Target Entity in water
do return true
return false
i have the similar issue with crocodile and gharial, but they sit still on land
Do you have any Image of how the Procedure should look like?
That's not the problem. Entities need two different AIs to do that, one that can navigate on land, and one that can navigate in water, like the Drowned, but MCreator doesn't seem to be able to do that. I need an entity that can walk and swim too, but you can either check or uncheck the "is water entity" box that determines its AI. If not water entity, they don't know how to swim in 3D and will only walk on the ocean floor or float up like villagers. If enabled Is Water Entity, they will swim in 3D but will stay put immobile on land, unable to walk. My only method of getting a mob to do both is by having two identical mobs, one water and the other land, and making a procedure that replaces one mob for the other whenever it enters or exits water, this /works/ but it's terrible, and also it erases all the entity data. We need a method of switching the mob pathfinding AI whether it's in water or not.