In what journey does Ijon Tichy get to the planet where after the destruction everything is restored quickly, it looks like a 3d printer?
Probably the 14th journey in the Star Diaries. The story plays out on a planet ("Enteropia" in the German translation) that is plagued by frequent meteor impacts. Everything that is destroyed, including people, is immediately replaced by an exact copy.
However the procees does quite resemble 3D printing, IIRC replacements (at least for people) are actually delivered by mail.
That's for the book, obviously.