mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-22 06:02:07 +02:00
commit
25f69a9c1c
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,7 @@ export class Agent {
|
|||
|
||||
await this.prompter.initExamples();
|
||||
|
||||
console.log('Logging in...');
|
||||
console.log('Logging into minecraft...');
|
||||
this.bot = initBot(this.name);
|
||||
|
||||
initModes(this);
|
||||
|
@ -35,6 +35,10 @@ export class Agent {
|
|||
save_data = this.history.load();
|
||||
}
|
||||
|
||||
this.bot.on('login', () => {
|
||||
console.log('Logged in!');
|
||||
});
|
||||
|
||||
this.bot.once('spawn', async () => {
|
||||
addViewer(this.bot, count_id);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue