I haven't actually tried it out in my world yet but I took a look at the code and I like it. I think I'll add it to my server (we'll see, may test it a bit) and give you credit.
Thanks!
Credit:
https://porkopolis.enjin.com/wiki/m/47234240/viewthread/32455461-custom-mobs-1132-map/page/1
This is a basic mob. Hope that can help you.