Topic category: Help with modding (Java Edition)
So I am making a mod, which includes an invisibility cloak. I want to make it so that holding the "I" key makes you invisible, and releasing it takes away your potion effects. So I made the procedures, and for whatever reason the invisibility only lasts 4 seconds when I press the key, no matter how much I change the potion effect time.
How do I make it so that holding the I key will make you invisible for however long, as long as you don't release the key?