The Meaning of Life, the Universe, and Everything.
Join Date:
4/27/2016
Posts:
63
Member Details
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.
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.