Device for a system for producing a foodstuff , wherein the device comprises - a movable nozzle , which is configured to expel pressed mass at various positions, in order to produce a spatial arrangement of pressed mass for a foodstuff ; - a movable heating unit , which is configured to supply thermal energy to a pressed mass , which has been expelled from the nozzle ; and - a control unit , which is configured, - to determine a recipe for producing a foodstuff , wherein the recipe displays position data with a plurality of positions, at which the pressed mass is to be expelled from the nozzle , in order to produce the spatial arrangement of pressed mass for the foodstuff ; and - to move the movable nozzle and the movable heating unit as a function of the position data, characterised in that the device comprises a cooking unit with a cooking chamber, which is configured to supply thermal energy to the spatial arrangement of pressed mass as a whole; - the recipe displays information for controlling the cooking unit and one or more parameters for the cooking of pressed mass for producing the foodstuff ; - the one or more parameters comprise one or more of: a quantity of thermal energy, which is to be supplied to the pressed mass ; a time instant at which thermal energy is to be supplied to the pressed mass ; and/or a method with which thermal energy is to be supplied to the pressed mass ; and - the control unit is configured to control the cooking unit as a function of the recipe and to control the heating unit as a function of the one or more parameters. - a movable nozzle , which is configured to expel pressed mass at various positions, in order to produce a spatial arrangement of pressed mass for a foodstuff ; - a movable heating unit , which is configured to supply thermal energy to a pressed mass , which has been expelled from the nozzle ; and - a control unit , which is configured, - to determine a recipe for producing a foodstuff , wherein the recipe displays position data with a plurality of positions, at which the pressed mass is to be expelled from the nozzle , in order to produce the spatial arrangement of pressed mass for the foodstuff ; and - to move the movable nozzle and the movable heating unit as a function of the position data, characterised in that the device comprises a cooking unit with a cooking chamber, which is configured to supply thermal energy to the spatial arrangement of pressed mass as a whole; - to determine a recipe for producing a foodstuff , wherein the recipe displays position data with a plurality of positions, at which the pressed mass is to be expelled from the nozzle , in order to produce the spatial arrangement of pressed mass for the foodstuff ; and - to move the movable nozzle and the movable heating unit as a function of the position data, - the recipe displays information for controlling the cooking unit and one or more parameters for the cooking of pressed mass for producing the foodstuff ; - the one or more parameters comprise one or more of: a quantity of thermal energy, which is to be supplied to the pressed mass ; a time instant at which thermal energy is to be supplied to the pressed mass ; and/or a method with which thermal energy is to be supplied to the pressed mass ; and - the control unit is configured to control the cooking unit as a function of the recipe and to control the heating unit as a function of the one or more parameters. <EOS>