Cocoa

Cocoa Pods are fruits found naturally on the trunk of normal-sized Jungle Trees. Cocoa Pods are a renewable resource, as they grow on and can be planted on a Jungle Log using Cocoa Beans. The player can harvest Cocoa Beans from the fruits, which can be used in further reproduction of Cocoa Pods, as a brown dye, or for Cookies. When harvested, Cocoa Pods will briefly flash red before disappearing and dropping cocoa beans (the amount of beans dropped varies depending on the cocoa pod's stage of growth. See below for the amount of cocoa beans each stage of pod growth yields).

Farming
The player is able to plant Cocoa Beans on the logs of Jungle Trees. The Cocoa Pod has three stages of growth. During its first, the pod is small and green. In the second stage, the pod is bigger and colored tan. In its last stage, the pod is even bigger and orange. When destroyed in the first two stages, the pod will only yield one Cocoa Bean. When destroyed in the third stage, it will give three Cocoa Beans. Bone meal can be used to immediately mature the Cocoa Pod to its last stage of growth, although since 13w04a it will only advance it one step. When Cocoa Beans grown on jungle tree logs are moved by a piston, they will become harvested. They will also become harvested when touched by water. Some players use a form of double farming making wheat farms like found in villages but instead of using oak wood they use jungle tree wood—This allows for wheat as well as cocoa bean farming.

Advantages Disadvantages
 * 1) While one cocoa bean makes 8 cookies, cocoa pods drop three beans in their third stage, making up to 24 cookies from one pod.
 * 2) Cocoa pods grow extremely quickly, taking between several seconds and a couple of minutes to fully mature.
 * 3) Cocoa pods will grow normally in complete darkness, so if you have an underground farm and not enough torches at the moment you can still grow cocoa beans.
 * 4) Cocoa pods only need one block of jungle wood to grow on, so one block can farm up to four cocoa pods at once. Basically, cocoa farms can be as small as one block.
 * 5) Though cookies are not a superb food item, cocoa is easy to rapidly farm, providing more than enough cookies to replace other foods like meat.
 * 1) Cookies restore little hunger compared to other farmable food sources, as well as having a weak saturation level.
 * 2) Crafting cookies and dyeing wool are the only uses for cocoa beans.
 * 3) They can only be grown on jungle wood (however, this isn't a problem if they were found there).
 * 4) Cookies don't keep the hunger bar full as long as meat or bread.

History
Jeb revealed Cocoa Pods on May 8, 2012 with a screenshot.

Trivia

 * Cocoa plants have a different hitbox for each size, however the top is always .25 blocks below the top of the wood it's on.
 * If a Cocoa Pod grows while the player is standing next to it, the player will not be pushed out and can move through it.
 * Player-created Jungle Trees do not generate with Cocoa Beans on them.
 * Cocoa Pods do not drop more Cocoa Beans if a tool enchanted with Fortune is used to destroy them.
 * Water can break Cocoa Pods if the water flows onto them. This also happens when the jungle wood block that the pods are attached to is moved by a piston, allowing the player to make semi-automatic Cocoa Bean Farms. There seems to be a bug as of 1.3.1 where pushing a jungle wood block with another jungle wood block will not always make the pod drop beans.
 * With the use of external mods to place a Cocoa pod with data values 12-15, you can create dragon egg textured cocoa plants. This is caused by the way Minecraft chooses textures based on metadata, and similar effects can be achieved with wheat, pumpkin and melon stems. This cannot be done with the normal /give command.