Broooooo, you are a genius! It never occurred to me what you did, but how did you detect that a club had several functions? Because it could be done with the hasitem argument but it would detect all the sticks with a single function😅 I wait your answer!
It is actually very quite simple, on the hasitem command there is an argument called data and with this u can detect for a custom data on an item so if u du @e[hasitem={item=stick,data=100}] u have to give ur self a stick with the command /give @s stick 1 100 for it to work