Need a way to make it so depending what carrot stick I hold it runs a different function

I know you can check for this with /execute but every method I've found doesnt work so I need it to check if the items custom model data is 1 it should run something

Continue to help post