From 1c13fe3bbb402a688aacc18f5abc3d8201b13089 Mon Sep 17 00:00:00 2001 From: Mohmmad Qunibi Date: Sun, 10 Nov 2024 08:31:09 +0300 Subject: [PATCH] Make the bot accept resource packs --- .gitignore | 1 + src/utils/mcdata.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 6dc4554..1e92ae7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode/ +.idea/ node_modules/ package-lock.json code_records/ diff --git a/src/utils/mcdata.js b/src/utils/mcdata.js index 04a535a..4df8b2a 100644 --- a/src/utils/mcdata.js +++ b/src/utils/mcdata.js @@ -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; }