In the second part , `` The Bart Zone '' , Bart has omnipotent powers , and turns Homer into a jack-in-the-box , resulting in the two spending more time together . The part was a parody of The Twilight Zone episode `` It 's a Good Life '' . In the second part , which parodies the Twilight Zone episode `` It 's a Good Life '' , Bart is omnipotent , and turns Homer into a jack-in-the-box , resulting in the two spending more time together .