Cocoa Beans

"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 beans are a food ingredient obtained from cocoa that can be used to craft cookies and brown dye.

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

The block itself is a technical block that cannot be obtained as an item, instead as cocoa beans, but they can be obtained by inventory editing or add-ons $$.

Farming
Cocoa beans come from cocoa pods, which are found on the trunks of normal-sized naturally-generated jungle trees in jungle biomes. Placing a cocoa bean on the side of jungle log plants 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 yields only one cocoa bean. When destroyed in the third stage, it gives two or three cocoa beans. Bone meal can be used to force the cocoa pod forward by one growth stage. Cocoa pods "pop" and drop their beans when struck by flowing water, pushed by a piston, or if their log is removed by any means.

Trading
Wandering traders sell 3 cocoa beans for an emerald.

Fishing
Cocoa bean can be caught when fishing in jungle as junk item.

Crafting ingredient
$$, cocoa beans can be also used in banner patterns:

Composting
Placing cocoa beans into a composter has a 65% chance of raising the compost level by 1.

ID
Java Edition:

Bedrock Edition:

In Bedrock Edition, cocoa beans have the ID name, with a data value of 3.

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 is on.
 * If a cocoa pod grows while the player is standing next to it, the player will be forced into the appropriate form of suffocation prevention depending on available space.
 * The pixels on top of the fully grown pod are 8/7 the size of those on the side.