Here's a whole thread on how silkscreening methods are used to make chocolate transfers. It's pretty complicated without the right equipment. I used to silkscreen back in the day and used this same photo-sensitive technique to make some of my screens, though none of the materials I used were food-safe.