Topic category: Help with modding (Java Edition)
Hey there! I'm trying to make it so that if the player has an NBT tag they wont be able to eat normal food (porkchops, steak etc) without getting potion effects. At first i thought global variables would work, but i need it to detect if the player has eaten the food so i can add the effects.
I could make it so that when the player right clicks on food, it dissapears and adds potion effects but thats kinda stopped the eating animation all together.
Any ideas? (Wether its custom code or procedure i dont mind, just some ideas would be nice)
Edit: its been 2 days with no response, please, i need it for my mod, i even credit the people who i get ideas and tips from on my github.