Custom advancements not working in my Miku beam project

I'm trying to make a function run when player uses a bamboo stick, so i looked up some tutorials and told me to make a custom advancement in order to tell if the bamboo is being used but minecraft simply refuses to detect it, I need help.

Sorry for bad English

Continue to help post