-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathafk4.js
68 lines (57 loc) · 1.58 KB
/
afk4.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const mineflayer = require('mineflayer')
const bot4 = mineflayer.createBot({
host: 'ir.skyblock.uz',
port: 25566,
version: 1.18,
username: 'Bo6urbeK_mine4'
})
let password = "master456654"
bot4.on('messagestr', (message) => {
console.log(message)
if (message.includes("/register")) {
bot4.chat(`/register ${password} ${password}`)
}
if (message.includes("/login")) {
bot4.chat(`/login ${password}`)
}
dig()
})
async function dig() {
if (!bot4.heldItem || !bot4.heldItem.name.includes('pickaxe')) {
var pickaxe = bot4.inventory.items().filter(i => i.name.includes('pickaxe')) [0];
if (pickaxe) await bot4.equip(pickaxe, 'hand')
if (!pickaxe) bot4.quit();
}
var block = bot4.blockAtCursor(7);
if (!block) return setTimeout(function () {
dig();
}, 100);
await bot4.dig(block, 'ignore', 'raycast')
dig()
}
bot4.on('chat', (username, message) => {
if (username == 'Bo6urbeK') {
if (message == 'tpa4')
bot4.chat('/tpa Bo6urbeK')
}
})
bot4.on('chat', (username, message) => {
if (username == 'Bo6urbeK') {
if (message == 'test')
bot4.chat('/w Bo6urbeK Afk4 ishlayapdi')
}
})
bot4.on('chat', (username, message) => {
if (username == 'Bo6urbeK') {
if (message == 'All_go') {
dig();
}
}
})
bot4.on('chat', (username, message) => {
if (username == 'Bo6urbeK') {
if (message == 'dig4') {
dig();
}
}
})