I live in California is it illegal to make my own pot butter for cooking
MJ and its derivatives are still illegal under federal law, but most of CA is now 'legal' possession of small quantity. So under CA rationale, you are reasonable safe in doing so for your own use, not sale or 'distribution'.