mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 13:42:25 +02:00
Merge pull request #322 from Nimikita/profile-skins
Profile skins (Fabric Tailor)
This commit is contained in:
commit
da51341bdb
1 changed files with 7 additions and 1 deletions
|
@ -84,6 +84,12 @@ export class Agent {
|
|||
|
||||
this.bot.on('login', () => {
|
||||
console.log('Logged in!');
|
||||
|
||||
// Set skin for profile, requires Fabric Tailor. (https://modrinth.com/mod/fabrictailor)
|
||||
if (this.prompter.profile.skin)
|
||||
this.bot.chat(`/skin set URL ${this.prompter.profile.skin.model} ${this.prompter.profile.skin.path}`);
|
||||
else
|
||||
this.bot.chat(`/skin clear`);
|
||||
});
|
||||
|
||||
this.bot.once('spawn', async () => {
|
||||
|
@ -93,7 +99,7 @@ export class Agent {
|
|||
|
||||
// wait for a bit so stats are not undefined
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
|
||||
|
||||
console.log(`${this.name} spawned.`);
|
||||
this.clearBotLogs();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue