hi I was wondering if there was a way to make a flying entity land on the ground. I also want it that if it lands on the ground it changes into a different entity. I looked at the bat code but it isn't really what I want and it affected how my flying mob flew.
Yes, it is possible, but you will need a decent understanding of Java to implement it. The bat code is a good place to start, not for the flying navigation but for the way it settles on a block to hang upside-down. You can use similar logic to find a block and just set your entity on the top face of the block rather than on the bottom face.
Once it finds a place to land, you can simply create your new entity and spawn it at that position, then kill the original entity.
Once it finds a place to land, you can simply create your new entity and spawn it at that position, then kill the original entity.