Skip to content

Commit 198e844

Browse files
force physics to respect yaw look interpolation
1 parent 4bc0e0a commit 198e844

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/pathfinder/gps.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ const bot = mineflayer.createBot({
1919
password: process.argv[5],
2020
});
2121

22+
2223
const RANGE_GOAL = 1; // get within this radius of the player
2324

2425
bot.loadPlugin(pathfinder);
2526

2627
bot.once("spawn", () => {
2728
const defaultMove = new Movements(bot);
29+
30+
bot.physics.yawSpeed = 50;
31+
bot.physics.pitchSpeed = 50;
2832

2933
bot.on("chat", (username, message) => {
3034
console.log("Chat message received: ", username, message);

0 commit comments

Comments
 (0)