Make the bot accept resource packs

This commit is contained in:
Mohmmad Qunibi 2024-11-10 08:31:09 +03:00
parent d265409c55
commit 1c13fe3bbb
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
.vscode/
.idea/
node_modules/
package-lock.json
code_records/

View file

@ -68,6 +68,9 @@ export function initBot(username) {
bot.loadPlugin(collectblock);
bot.loadPlugin(autoEat);
bot.loadPlugin(armorManager); // auto equip armor
bot.once('resourcePack', () => {
bot.acceptResourcePack();
});
return bot;
}