right click detection method not working

nothing happens when i try to use an eye of ender, im in 1.20.1 and i followed a tutorial with some edits

this is my code

Continue to help post