Cocoa Beans

Cocoa Beans are a primary color dye and food ingredient. They can be found as cocoa pods, which grow on the side of small jungle trees.

Obtaining
On Minecraft Pocket Edition, cocoa beans are obtained through crafting or from cocoa pods. On other versions, they are obtained through farming.

Farming
Cocoa beans come from cocoa pods, which are found naturally in jungle biomes. Placing a cocoa bean on the side of a jungle wood log will plant a new cocoa pod. (The log does not need to be attached to a tree).

Cocoa has three stages of growth. During its first, the pod is small and green. In the second stage, the plant is bigger and colored tan. In its last stage, the pod is even bigger, and orange-brown. When destroyed in the first two stages, the pod will yield only one cocoa bean. When destroyed in the third stage, it will give two or three cocoa beans. Bone meal can be used to force the cocoa pod forward 1 stage of growth. Cocoa pods will "pop" and drop their beans when struck by flowing water, pushed by a piston, or if their log is removed by any means.

Crafting
As of version of the Pocket Edition, cocoa beans are crafted with an ink sac even though they are unobtainable in survival. With the introduction of biomes in 0.9.0 they are obtainable from cocoa pods in jungles.