I am currently working on a Minecraft 1.19 mod, and I am trying to create a feature where the item in the player's hand becomes invisible when a certain condition is met. For example, I have an item that makes the player invisible, and I would like to make the item in the player's hand also become invisible along with the player. I am having trouble figuring out how to implement this feature and would greatly appreciate any help on how to do this.