|
|
@ -67,12 +67,12 @@ function follow(entity, dynamic = true, distance = 3) { |
|
|
|
console.assert(entity) |
|
|
|
console.assert(entity) |
|
|
|
const { GoalFollow } = require('mineflayer-pathfinder').goals |
|
|
|
const { GoalFollow } = require('mineflayer-pathfinder').goals |
|
|
|
|
|
|
|
|
|
|
|
cfg.quiet && console.log(entity) |
|
|
|
// console.log(entity)
|
|
|
|
|| bot.chat( |
|
|
|
cfg.quiet || bot.chat( |
|
|
|
`following ${entity.type |
|
|
|
`following ${entity.type |
|
|
|
}: ${entity.username || entity.displayName |
|
|
|
}: ${entity.username || entity.displayName |
|
|
|
}${dynamic ? "" : " once"}` |
|
|
|
}${dynamic ? "" : " once"}` |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
entity = entity.entity ? entity.entity : entity |
|
|
|
entity = entity.entity ? entity.entity : entity |
|
|
|
|
|
|
|
|
|
|
|