mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01: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/
|
||||
.idea/
|
||||
node_modules/
|
||||
package-lock.json
|
||||
code_records/
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue