just so you know after building barn and getting a cow I went in to milk it and then I left barn and then I went back in to see if I could hug the cow like you do in StarDewValley and it gave me another milk... I thought it was just a glitch so I restarted game and found I could leave the barn and come back in as many times as I wanted to get more milk.