This file creates a new resource called "Cookies" included is a Soverign selectable ability to generate cookies, as well as a mana ring that regens mana in tactical combat(can be bought in shop or equipped on units). Only problems ive seen with resource is the fact it doesnt show up for diplomatic trade, probably because i did this in a few minutes. Also, its not pure/clean, it uses elementium as its base, as well as combining the Mana ring i made yesterday.
Inorder to make it so cookies are made from a building just use the metal mine building as a base, otherwise youd just need to create the tile itself and have the new mine require that resource.
Also, might want to figure out why its not a valid resource for diplomatic trade.
Right click and go save as, on cookies.xml: http://www.fleetsofanarchy.net/ewom/
You only need the cookies file to add the above stated stuff.