Updated jumping logic so bots can jump over blocks.

Updated patch version +1.
This commit is contained in:
Fish
2024-12-04 22:47:38 +01:00
parent 4c0a61342a
commit 8132d7073a
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"