This question already has an answer here:
- When do mobs despawn in Minecraft? 3 answers
So, I'm in a bit of a pinch. I'm on an SMP server, with 1.5 hearts and no food, but all the ingredients. I'm about to prepare some mushroom stew, but alas, I got chased and cornered by a creeper in a grief-protected house. If I open the door, I'm finished, but there's no other way. So, I'd like to wait for a creeper to despawn while I'm offline. How long would it take?