I have been trying to figure this one for about an hour now, yet I still can find out how to detect cocoa beans in a player inventory in 1.11.2. The command I used was:
/testfor awesomeianman {Inventory:[{id:"minecraft:dye",Damage:3}]}
Whenever I tried this, it didn't have an output! Could someone please help me, and tell me if the command is completely wrong?