Cocoa

Cocoa Pods are fruits found on Jungle Trees.

Obtaining
Cocoa pods can be mined with any tool, but axes are the quickest.

Natural generation
Cocoa pods can be found naturally on the trunk of normal-sized Jungle Trees.

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 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.

Data values
Cocoa only uses one ID name:. It uses its block data field to store the stage of growth, and the direction to which the pod is attached.

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.