Modding in custom behaviors without overwriting creatures

I’m wondering how I can mod in some new behaviors without overwriting creatures. Here are some of examples of the results I’m kind of looking for is.