The Bug
Axolotls' AI is too slow, causing server performance issues.
Compared to other mobs, such as husks, or foxes (which also have a well-developed AI), Axolotls AI causes intensive lag.
How to reproduce:
Create the world without any entity
Spawn around 300 axolotls
❌ Notice that ms increases more noticeably, compared to other mobs in the same amount
Linked issues
Attachments
Comments 10
It is logical that such a number of mobs will cause terrible lags. However, compared to the same foxes, axolotls significantly degrade performance. Just because they're new doesn't mean anything.
I tested this with a command block spawning around 250 to 300 mobs in a superflat world and axolotls caused basically double the impact of other tested mobs: turtles averaged 11 ms, foxes averaged 12 ms, bees averaged 10 ms and axolotls averaged 22 ms.
I don't think that is the main cause, because as far as I know turtles also attempt to pathfind to water. Also, the lag happens even when the axolotls are already in water.
Does this still occur if the axolotls are spawned in water instead of on land?