1.

They can also be used as a loom ingredient to dye banners. Minecraft cocoa beans are a food item that can also be used as a crafting ingredient to dye items and to make cookies. They need to fix the hitboxes, they are literally killin me here.

In beta 1.4, they started appearing in dungeon chests, and then in release version 1.3.1 they finally became a renewable resource Placing a cocoa bean on the side of jungle wood will plant a new cocoa pod. 2.
Cocoa beans were added to Minecraft in beta version 1.2, but initially they were unobtainable.

Online video by Monkeyfarm: Minecraft Cocoa Beans for Days! Is having a cocoa bean farm worth it?

Cocoa beans can grow on the sides of any jungle log, regardless of light level, requiring 1 empty air block in the space it will occupy. Cocoa beans come from the cocoa pods which are found naturally in jungle biomes .
Cocoa beans are a food ingredient and former dye. The jungle log does not need to be attached to a living tree, only any harvested jungle log They can also be used as a loom ingredient to dye banners.

minecraft cocoa beans