With #4446 swimming got introduced. Despite exhaustion being mentioned several times, it was not included in the commit to prevent doing too many things at once - causing me to forget to add a follow-up PR. Since the wiki can not be trusted with values, and my IDA being broken at the moment, i can not figure out the correct values. Nukkit and similar do not seem to have such values either (searched saturation / exhaustion)
EDIT: swim exhaust is 0.015
Change is delayed to patch up all kind of other exhaustions, work in progress
while swimming underwater (head below water), the exhaustion is 0.015 * oldPosition->distance(newPosition)
while swimming on the surface of water (head above water), the exhaustion is 0.015 * sqrt((oldPosition->x - newPosition->x) ** 2 + (oldPosition->z - newPosition->z) ** 2) (y axis distance is NOT considered)
Issue description
With #4446 swimming got introduced. Despite exhaustion being mentioned several times, it was not included in the commit to prevent doing too many things at once - causing me to forget to add a follow-up PR. Since the wiki can not be trusted with values, and my IDA being broken at the moment, i can not figure out the correct values. Nukkit and similar do not seem to have such values either (searched saturation / exhaustion)
EDIT: swim exhaust is 0.015
Change is delayed to patch up all kind of other exhaustions, work in progress