Skip to content

Commit

Permalink
pathing looks a lot better
Browse files Browse the repository at this point in the history
  • Loading branch information
aesthetic0001 committed Feb 1, 2024
1 parent 52a5c35 commit 603fc20
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions testing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ bot.once('inject_allowed', () => {

bot.on('kicked', console.log)

bot.on('spawn', () => {
bot.chat('/tp -2.5 70 -70.5')
bot.pathfinder.setGoal(new goals.GoalBlock(-183, 74, -84))
// bot.on('spawn', () => {
// bot.chat('/tp -329 91 -56')
// bot.pathfinder.setGoal(new goals.GoalBlock(-362, 70, -60))
// })

bot.on('physicsTick', () => {
const target = bot.players['Rnas']

if (!target) return

bot.pathfinder.setGoal(new goals.GoalNear(target.entity.position.x, target.entity.position.y, target.entity.position.z, 3))
})

0 comments on commit 603fc20

Please sign in to comment.