Sutta/Sūtra of Buddha using it’s mind-made body

I remember the stories in the Chinese had

I am reminded of this Sutta. It is about fallible beings, and not yet the infallible Buddha, however it has the aspects of the topic of “mind-made”, and it is spoken by the Buddha:

There comes a time when, Vāseṭṭha, after a very long period has passed, this cosmos contracts. As the cosmos contracts, sentient beings are mostly headed for the realm of streaming radiance. There they are mind-made, feeding on rapture, self-luminous, moving through the sky, steadily glorious, and they remain like that for a very long time.

There comes a time when, after a very long period has passed, this cosmos expands. As the cosmos expands, sentient beings mostly pass away from that host of radiant deities and come back to this realm. Here they are mind-made, feeding on rapture, self-luminous, moving through the sky, steadily glorious, and they remain like that for a very long time.

Then:

But the single mass of water at that time was utterly dark. The moon and sun were not found, nor were stars and constellations, day and night, months and fortnights, years and seasons, or male and female. Beings were simply known as ‘beings’. After a very long period had passed, solid nectar curdled in the water. It appeared just like the curd on top of hot milk-rice as it cools. It was beautiful, fragrant, and delicious, like ghee or butter. And it was as sweet as pure manuka honey. Now, one of those beings was reckless. Thinking, ‘Oh my, what might this be?’ they tasted the solid nectar with their finger. They enjoyed it, and craving was born in them. And other beings, following that being’s example, tasted solid nectar with their fingers. They too enjoyed it, and craving was born in them.

Then later:

Then those beings started to eat the solid nectar, breaking it into lumps. But when they did this their luminosity vanished. And with the vanishing of their luminosity the moon and sun appeared, stars and constellations appeared, days and nights were distinguished, and so were months and fortnights, and years and seasons. To this extent the world had evolved once more.

Then those beings eating the solid nectar, with that as their food and nourishment, remained for a very long time. But so long as they ate that solid nectar, their bodies became more solid and they diverged in appearance; some beautiful, some ugly. And the beautiful beings looked down on the ugly ones: ‘We’re more beautiful, they’re the ugly ones!’ And the vanity of the beautiful ones made the solid nectar vanish. They gathered together and bemoaned, ‘Oh, what a taste! Oh, what a taste!’ And even today when people get something tasty they say: ‘Oh, what a taste! Oh, what a taste!’ They’re just remembering an ancient primordial saying, but they don’t understand what it means.

And later in the Sutta:

Then those beings gathered together and bemoaned, ‘Oh, how wicked things have appeared among beings! For we used to be mind-made, feeding on rapture, self-luminous, moving through the sky, steadily glorious, and we remained like that for a very long time. After a very long period had passed, solid nectar curdled in the water. But due to bad, unskillful things among us, the savory nectar vanished, the ground-sprouts vanished, the bursting pods vanished, and now the rice grains have become wrapped in powder and husk, it doesn’t grow back after reaping, the cutting shows, and the rice stands in clumps. We’d better divide up the rice and set boundaries.’ So that’s what they did.

DN 27: Aggaññasutta

The one I have in mind are likes of Buddha making a duplication of himself.