Okay, after doing some tests, I realized that I did something wrong. Apparently, the experience gain value for sleeping is an unsigned 8bit integer, meaning it goes from 0 to 255. If I go higher, it works the same way as the Dexterity bug, meaning that, if I write 256, it's equal to 0, 257 = 1, 258 = 2 and so on... And I wrote 500 (oops)!
The experience gain value for sleeping is the "percentage" of experience gained per game turn before reaching the next level. By default, here are the "percentage" values (note that it's not 100 based, but 255 based):
By default:
= 3 (or 1,18%) near lava
= 1 (or 0,39%) near gold
= 2 (or 0,74%) near water
Since it takes 1000 experience points to reach level 2 and it increases of 3/255 for each game turn, this means that it takes 85000 game turns ((255*1000)/3) until the
increases of level if he sleeps non-stop (never wakes up whatsoever) next to lava which never happens since he wakes up constantly after some times and goes for food and pay, meaning it even requires more time (almost the double). I let you imagine how much game turns it is required to get to level 10)!
For the
, it's 255000 game turns, and for the
, it's 127500 game turns, always just for reaching level 2.
You can see that's it totally insane! Here, I'm gonna increase these values a lot so that it takes waaay less time than that.