how to i spawn a cube and make it follow me

i want to be able to make cubes with eyes spawn every say 2 seconds and when i get to 50 meters away they see me 30 meters they walk at me and 10 metres they run at me and try to hold me down. i then want to know if i can have health

Good luck.