The Meaning of Life, the Universe, and Everything.
I'm a little new to modding, just learned how to make food, armor and weapons off of youtube, however, I've been programming in java for a while.
What I want: on eating a custom food item, add a variable to the player class of who ate it, and every tick increment the variable by one. I've been trying very hard, but couldn't figure out how to add a variable to the player by simply extending the class. Any help is appreciated.