Replecators

A replicator was a device that used transporter technology to dematerialize quantities of matter and then rematerialize that matter in another form

On Starfleet vessels, replicators produced synthehol versions of alcoholic drinks by default, but they could easily be manually readjusted through their control panel to make real alcohol instead.

In addition to foodstuffs, replicators could be used for replicating machine parts, clothing, or other objects. Although clothing could be replicated for general wear, replicators would not allow non-Starfleet crew members to replicate official Starfleet uniforms. Industrial replicators could even be used to replicate heavier machine parts.