-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathafk10.js
51 lines (43 loc) · 1.24 KB
/
afk10.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
host: 'ir.skyblock.uz',
port: 25566,
version: 1.18,
username: 'Bo6urbeK_min10'
})
let password = "master456654"
bot.on('messagestr', (message) => {
console.log(message)
if (message.includes("/register")) {
bot.chat(`/register ${password} ${password}`)
}
if (message.includes("/login")) {
bot.chat(`/login ${password}`)
}
})
async function dig() {
if (!bot.heldItem || !bot.heldItem.name.includes('pickaxe')) {
var pickaxe = bot.inventory.items().filter(i => i.name.includes('pickaxe')) [0];
if (pickaxe) await bot.equip(pickaxe, 'hand')
if (!pickaxe) bot.quit();
}
var block = bot.blockAtCursor(7);
if (!block) return setTimeout(function () {
dig();
}, 100);
await bot.dig(block, 'ignore', 'raycast')
dig()
}
bot.on('chat', (username, message) => {
if (username == 'Bo6urbeK') {
if (message == 'tpabotn10')
bot.chat('/tpa Bo6urbeK')
}
})
bot.on('chat', (username, message) => {
if (username == 'Bo6urbeK') {
if (message == 'digbotn10') {
dig();
}
}
})