System for producing a cooked foodstuff, wherein the system comprises: - a printing chamber with a mobile printhead for extruding printing mass; - a cooking chamber with means (121, 122, 123) for cooking printing mass; - a mobile tray, which can be moved between the printing chamber and the cooking chamber by means of a movement mechanism; and - a control unit, which is configured - to trigger the mobile tray to be arranged in the printing chamber below the printhead in order for a spatial arrangement of printing mass to be generated; - to activate the printhead, in order to generate a spatial arrangement of printing mass on the tray; - to activate the movement mechanism, in order to transfer the mobile tray with the spatial arrangement of printing mass into the cooking chamber; and - to activate the means (121, 122, 123) for cooking in order to produce a cooked foodstuff by cooking the spatial arrangement of printing mass, characterised in that - the system comprises one or more doors, with which the cooking chamber can be cut off from the printing chamber; and - the control unit is configured to trigger the one or more doors to be closed, in order to cut off the cooking chamber from the printing chamber when the mobile tray is or has been transferred into the cooking chamber. - a printing chamber with a mobile printhead for extruding printing mass; - a cooking chamber with means (121, 122, 123) for cooking printing mass; - a mobile tray, which can be moved between the printing chamber and the cooking chamber by means of a movement mechanism; and - a control unit, which is configured - to trigger the mobile tray to be arranged in the printing chamber below the printhead in order for a spatial arrangement of printing mass to be generated; - to activate the printhead, in order to generate a spatial arrangement of printing mass on the tray; - to activate the movement mechanism, in order to transfer the mobile tray with the spatial arrangement of printing mass into the cooking chamber; and - to activate the means (121, 122, 123) for cooking in order to produce a cooked foodstuff by cooking the spatial arrangement of printing mass, characterised in that - the system comprises one or more doors, with which the cooking chamber can be cut off from the printing chamber; and - the control unit is configured to trigger the one or more doors to be closed, in order to cut off the cooking chamber from the printing chamber when the mobile tray is or has been transferred into the cooking chamber. - to trigger the mobile tray to be arranged in the printing chamber below the printhead in order for a spatial arrangement of printing mass to be generated; - to activate the printhead, in order to generate a spatial arrangement of printing mass on the tray; - to activate the movement mechanism, in order to transfer the mobile tray with the spatial arrangement of printing mass into the cooking chamber; and - to activate the means (121, 122, 123) for cooking in order to produce a cooked foodstuff by cooking the spatial arrangement of printing mass, - the system comprises one or more doors, with which the cooking chamber can be cut off from the printing chamber; and - the control unit is configured to trigger the one or more doors to be closed, in order to cut off the cooking chamber from the printing chamber when the mobile tray is or has been transferred into the cooking chamber.