Maybe something like this? I added a health and hunger variable So if the hunger =100 then the health will turn low So if you eat food you will minus 20 hunger