Merge pull request #73 from TheMisterFish/bots_cant_jump_over_full_blocks

Updated jumping logic so bots can jump over blocks
This commit is contained in:
Evan
2024-12-04 17:31:31 -05:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -450,7 +450,9 @@ public class Bot extends ServerPlayer implements Terminator {
y = 0;
} else {
y = velocity.getY();
velocity.setY(Math.max(y - 0.1, -3.5));
if(jumpTicks - 3 <= 0) {
velocity.setY(Math.max(y - 0.08, -3.5));
}
}
}
@@ -484,7 +486,7 @@ public class Bot extends ServerPlayer implements Terminator {
@Override
public void jump() {
jump(new Vector(0, 0.5, 0));
jump(new Vector(0, 0.42, 0));
}
@Override

View File

@@ -3,4 +3,4 @@ plugins {
}
group = "net.nuggetmc"
version = "4.5.0-BETA"
version = "4.5.1-BETA"