mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-30 10:53:03 +02:00
Make the bot accept resource packs
This commit is contained in:
parent
d265409c55
commit
1c13fe3bbb
2 changed files with 4 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.idea/
|
||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
code_records/
|
code_records/
|
||||||
|
|
|
@ -68,6 +68,9 @@ export function initBot(username) {
|
||||||
bot.loadPlugin(collectblock);
|
bot.loadPlugin(collectblock);
|
||||||
bot.loadPlugin(autoEat);
|
bot.loadPlugin(autoEat);
|
||||||
bot.loadPlugin(armorManager); // auto equip armor
|
bot.loadPlugin(armorManager); // auto equip armor
|
||||||
|
bot.once('resourcePack', () => {
|
||||||
|
bot.acceptResourcePack();
|
||||||
|
});
|
||||||
|
|
||||||
return bot;
|
return bot;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue