Players with increased step height can fall off blocks while sneaking
Players with increased step height can fall by 1 block or more even when they are sneaking.
Reproduction steps:
- Increase player step height, for example with the following command:
/attribute @s minecraft:generic.step_height base set 10
- Try to sneak while moving on top of a block.
- Notice that you can fall by 1 block or more. The larger the step height, the more it is possible to fall.
This is likely due to the use of this.maxUpStep() inside of Player#maybeBackOffFromEdge and Player#isAboveGround, which causes the checks to scale with the step height.
2024-02-29, 04:54 PM
2024-06-22, 01:06 PM
2024-03-01, 08:16 AM
5
5
-