Cocoa

"Cocoa! You’ll know this humble jungle bean as the source of delicious cookies and lots of brown things - brown concrete, brown glass, brown fireworks and even brown shulker boxes. But you might not know its long and grand history, which involves ancient civilisations, human sacrifice, conquering Spaniards, and delicious confections."

- Alex Wiltshire

Cocoa is a fruit that grows in pods on jungle trees.

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

Natural generation
Cocoa pods can be found on the trunks of normal-sized naturally-generated jungle trees. They will not generate on user-grown 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 3 cocoa beans. Bone meal can be used to advance it one stage. 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.

Block data
In Bedrock Edition, cocoa uses the following data values:

Trivia

 * Cocoa pods have a different hitbox for each size, however the top is always 0.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.