Pages for logged out editors learn more
<syntaxhighlight lang="java"> //called at the end of Entity.moveEntity() public void onLanded(Entity e) {
if (e.isSneaking()) e.motionY = 0.0;