Overview
"Once Upon a Planet" is the ninth episode of the first season of the American animated science fiction television series Star Trek. It first aired in the NBC Saturday morning lineup on November 3, 1973, and was written by American television writers Chuck Menville and Len Janson.
Set in the 23rd century, the series followed the further adventures of the crew of the Federation starship Enterprise, continuing on from the original Star Trek series. In this episode, the crew of the Enterprise re-visit a "shore leave" planet for R&R but quickly find themselves under attack.
Plot
The Federation starship Enterprise crew revisits a fondly remembered "amusement park" planet, hoping for some rest and relaxation. However, shortly after landing Dr. McCoy is attacked by the Queen of Hearts and Lt. Uhura is captured by the planet's master computer, who has come to resent being made to serve others and seeks to use the Enterprise to travel the galaxy in search of other computers. To this end, it takes control of the Enterprise computer and starts manipulating the ship's systems.
Searching for Uhura, a landing party discovers the grave of the planet's Caretaker, who had overseen the operations of the facility. The untended machinery is constructing dangerous images from the crew members' thoughts and its own imagination. Recalling how the planet took care of McCoy after his fatal injury in "Shore Leave", Spock has McCoy inject him with melenex to create the semblance of injury and thus prompt the planet's automated systems to bring him into the underground complex. Captain Kirk follows him in.
From Wikipedia (CC BY-SA 4.0).