Started by
TheForgottenOne
on
Topic category: User side tutorials
So I have found a way (enven though it might be kinda buggy) to make an entity walk AND swim !
I have seen that many peole a trying to figure that out sooo...
Simply choose an entity base in the "AI and goals" part : https://imgur.com/a/9xSXejt
Go to the code in "(YourMob)Entity"vand replace the base you chose with "Drowned" in my case, "Zombie" :
Before : https://imgur.com/a/Q78EBU4
After : https://imgur.com/a/SSHELCG
You may need to adjust the step height as it seems that my entity has trouble to get out of the water (?)
This process may be wrong as i am not an expert in code or with the advanced mcreator features but it seems to work for me, I keep this updated for any fixes/errors...
Update : The fact that the entity is not moving out of the water correctly might be an issue with my own code/ai