How to make an inventory item in coblocks where you can code it to give you items?

How to make an inventory item in coblocks where you can code it to give you items. In my case, I’m trying to make it so that you can get an axe and chop down trees to get wood. How can I do that?

https://forum.edu.cospaces.io/search?q=inventory