diff --git a/src/agent/agent.js b/src/agent/agent.js index d7f36d6..198de7b 100644 --- a/src/agent/agent.js +++ b/src/agent/agent.js @@ -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();