Spaces:
Paused
Paused
Update bot.js
Browse files
bot.js
CHANGED
|
@@ -35,6 +35,7 @@ function createBot() {
|
|
| 35 |
host: config.server.ip,
|
| 36 |
port: config.server.port,
|
| 37 |
version: config.server.version,
|
|
|
|
| 38 |
});
|
| 39 |
|
| 40 |
bot.loadPlugin(pathfinder);
|
|
@@ -756,6 +757,10 @@ function createBot() {
|
|
| 756 |
if (config.utils && config.utils["chat-log"]) logger.info(`<${username}> ${message}`);
|
| 757 |
});
|
| 758 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 759 |
bot.on("goal_reached", () => {
|
| 760 |
if (config.position && config.position.enabled) logger.info(`Bot arrived to target location. ${bot.entity.position}`);
|
| 761 |
});
|
|
|
|
| 35 |
host: config.server.ip,
|
| 36 |
port: config.server.port,
|
| 37 |
version: config.server.version,
|
| 38 |
+
brand: 'vanilla',
|
| 39 |
});
|
| 40 |
|
| 41 |
bot.loadPlugin(pathfinder);
|
|
|
|
| 757 |
if (config.utils && config.utils["chat-log"]) logger.info(`<${username}> ${message}`);
|
| 758 |
});
|
| 759 |
|
| 760 |
+
bot.on('login', () => { // 1. Ayarları gerçekçi yap
|
| 761 |
+
bot.write('settings', { locale: 'tr_tr', viewDistance: 12, skinParts: 127 });
|
| 762 |
+
|
| 763 |
+
|
| 764 |
bot.on("goal_reached", () => {
|
| 765 |
if (config.position && config.position.enabled) logger.info(`Bot arrived to target location. ${bot.entity.position}`);
|
| 766 |
});
|