Jonathan Keep has a system to DIY 3D Printed Chocolate using "any 3D printer, a syringe, a bicycle pump and an empty fizzy drinks bottle."
See Keep Art for more info...