Fact1: Ellie and Manny are expecting first child, Fact2: Manny is obsessed with making life perfect and safe for family, Fact3: Diego At finds himself unable to catch cocky gazelle same time, Fact4: angry Ankylosaurus threatens Herd despite Diego 's efforts to fend it off, Fact5: Rudy lost when he was young with knife eye
Output: Ellie and Manny, the two woolly mammoths, are expecting their first child, and Manny is obsessed with making life perfect and safe for the family, since his first experiences as a husband and father went bad when his family were killed by hunters. At the same time, Diego the sabertoothed cat finds himself unable to catch a cocky gazelle he has been stalking and decides to leave The Herd, believing that he is losing his predatory nature as a tiger. Sid the ground sloth begins to wish for a family of his own and adopts three apparently abandoned eggs that he finds in an icy underground cavern and calls them Egbert, Shelly, and Yoko. Manny tells him to put them back, but Sid instead looks after the eggs, which hatch into baby Tyrannosaurus Rex the next morning. Although Sid tries his best to raise the three dinosaurs, their rambunctious behavior scares away all the other animals young and ruins a playground Manny built for his child. Not long after, a female Tyrannosaurus Rex, Momma, whose eggs Sid stole, soon returns and carries both Sid and her young underground, with Diego in pursuit. Manny, Ellie, Crash and Eddie the opossums follow as well and discover that the icy cavern leads to a vast subterranean jungle populated by dinosaurs thought to be extinct. Here, an angry Ankylosaurus threatens The Herd despite Diegos efforts to fend it off; they are saved from a further crowd of angry reptiles by a deranged oneeyed weasel named Buck. Buck has been living in this jungle for quite some time and is fighting Rudy, a huge albino Baryonyx, intending to avenge the eye he lost to it when he was young with a knife he carved from one of Rudys teeth. He agrees to lead The Herd through the jungles perils to Lava Falls, where Momma has taken Sid and her babies. In the meantime, Sid and Momma try to outdo each other in feeding the offspring; he loses this contest, but is soon welcomed into the family regardless. The next day, however, Sid is separated from the family and attacked by Rudy. Sid is knocked onto a loose rock slab that is floating on a river of lava and about to plummet over the falls. As The Herd moves toward Lava Falls, Ellie goes into labor and a Guanlong pack strikes, causing a rock slide that separates her from Manny and Diego. Manny doubles back to protect her and Diego fends off further attacks, while Buck takes Crash and Eddie ahead to rescue Sid. Just as he goes over the falls, the trio swoops in on a commandeered Harpactognathus only to be chased by a flock of Pterodactylus on the way and saves his life. Manny reaches Ellie just in time to hear the cry of a newborn baby girl. He wants to name her Ellie, or Little Ellie, but Ellie instead names her Peaches after the fruit and the codeword they had chosen to use if she went into labor during the trip. Sid is saddened at the fact that he never had a chance to say goodbye to his children as he returns to The Herd and learns of Peaches birth. Before they can leave the jungle, they are ambushed by Rudy, who begins to attack them at full force; working together Manny, Sid, Diego, and Buck manage to trap Rudy by ensnaring him in vines. However, he quickly breaks free and resumes his onslaught. The Herd is saved by the timely arrival of Momma, who charges at Rudy and knocks him off a cliff. As she and her children wish Sid well, Buck, now without a purpose in life since Rudy is gone, decides to join The Herd and live on the surface. However, a distant roar tells him that Rudy is still alive; he changes his mind and sends The Herd home, blocking off the path to the underground jungle at the same time. Manny and Ellie welcome Peaches into their frozen world and admit that Sid did a good job looking after Mommas children. Diego decides to remain with The Herd, while Buck stays underground, happily battling it out with Rudy.