Cream together butter and sugar. Add cocoa and vanilla. Gradually add nuts and oats. Chill in refrigerator for at least 1 hour. Roll into 1 inch balls. Roll each ball in coconut.