If it froze when he was AFK, the source of the problem is in the code that manages what makes the hunger going down.
Could you post a screen of your code, or the link to the tutorial, so I can see what’s wrong.
EDIT: Don’t read my last sentence. I saw you already posted your link (sorry xD)<
EDIT 2: Okay, so, I read the code, and it seems to have absolutely no problem. So, I’ll ask you to try some things so we can find the real source of the problem.
First: try reducing your hunger timer a lot, so it is extremely visible to see your hunger going down. 1 second should be good (60 ticks I think).
Secondly, do you have any “Away” system that activates when a player is afk? If so, the problem might be there (If there is one in the features of the engine, the problem could come from there too)
Thirdly, Try using extremely quickly multiple food items. There could be a glitch there that blocks your hunger when consuming food too quickly.
Then, don’t forget to activate debug mode each time you do this, to see what happens when you do anything.
Also add the hunger value to the debugger to see if it is a display problem.
Hey. I’ll try reducing the hunger timer so it’s fast. I don’t have any away systems i think, i’m using eclipse the final frontier. (EO3.0 expansion)
i’ll try the third suggestion too.
Also, I have debug mode activated, but i don’t see any form of window of code or anything.
Editing when i’ve done this.
EDIT: Reduced the timer now so its easier to debug.
EDIT2: Eating food fast doesn’t seem to cause any difference.
Also, i have three different kinds of hunger. Hunger, thirst and Energy.
But since those scripts dont interact with each other in any way i doubt that’s a problem.
I just did the tutorial three times but renamed hunger to thirst and sleep the two other times.
EDIT3: It’s not a display problem. You’re supposed to die when your hunger/thirst/sleep hits 0, and some people never die of hunger depletion.
Can you take a look at my code through TeamViewer? I’ll pay you if you fix this for me