I am working on a minigame on my Spigot server and can't seem to find out how to make right-click events like servers do. For example, I want to be able to receive speed effects after right-clicking sugar, but I currently have repeating command blocks that detect if a player meets "SelectedItem"requirements.
Some use teleporting armor stands to trigger when they right-click them, but that seems like a hassle. Others use carrots on a stick and retexture it to detect its use, but I don't want custom resource packs on my server.
Do servers use these methods to detect right-clicks? There must be another way.