Ah, friend, your answer is simple, then! I give you permission to use the code inside my mod, just look at one of the ground monsters. I use a merge method, but insert similar code into where it should be in your monstertype file.
After looking at Penguin code, it may take a while. However, I made this as a sort of a I'm Sorry to those who were waiting for the penguin update longer. I'll still be trying to figure out how to make it work, and actually implement some of that code into this other mod as well. http://community.playstarbound.com/index.php?resources/playable-penguins-0-5.2231/
now i have a problem: i cant capture any monster that is like the apex mutant, i made a hostile npc and i took the apex mutant as a base and i cant capture it
The Apex Mutant is an unique monster, none of which except the dog can be captured as of now. Sorry for the unconvience, but one day hell be capturable too.