if (!mc.world.getCollisionShapes(mc.player, mc.player.getBoundingBox().expand(0.5, 0, 0.5).offset(0, -1, 0)).toList().isEmpty() && mc.player.ticksExisted % 2 == 0) {
mc.player.fallDistance = 0;
mc.player.jumpTicks = 0;
e.setOnGround(true);
mc.player.onGround = true;
}