diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-02-15 19:30:09 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-02-15 19:30:09 +0100 |
commit | 10fb737a45e6f9c9fea4b520068e5fde33ddaaf4 (patch) | |
tree | df961fea4e21fd1fe2976bfc5acfa456f1b512d0 | |
parent | Bot: Add autoArmor plugin (diff) | |
download | 2bored2walk-10fb737a45e6f9c9fea4b520068e5fde33ddaaf4.tar.gz 2bored2walk-10fb737a45e6f9c9fea4b520068e5fde33ddaaf4.tar.bz2 2bored2walk-10fb737a45e6f9c9fea4b520068e5fde33ddaaf4.zip |
Bot: Add autoTotem plugin
-rw-r--r-- | package-lock.json | 482 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | src/main.ts | 6 |
3 files changed, 489 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json index 5206963..d0a12bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "mineflayer": "^4.8.1", "mineflayer-antihunger": "^1.0.4", "mineflayer-auto-eat": "^3.3.1", + "mineflayer-auto-totem": "^1.3.0", "mineflayer-pathfinder": "github:PrismarineJS/mineflayer-pathfinder", "prismarine-viewer": "^1.23.0" } @@ -1040,11 +1041,46 @@ "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + }, "node_modules/lodash.reduce": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", @@ -1197,6 +1233,217 @@ "resolved": "https://registry.npmjs.org/mineflayer-auto-eat/-/mineflayer-auto-eat-3.3.1.tgz", "integrity": "sha512-SoPdRYp8VubAOYyvBEo/tJefzkgTii1UK301UwuFRP3kkIhC1tRi5XNgWibT2vhM7JULxi8AQq+NuXJ1UL/5yQ==" }, + "node_modules/mineflayer-auto-totem": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/mineflayer-auto-totem/-/mineflayer-auto-totem-1.3.0.tgz", + "integrity": "sha512-IGtgBccrqQZaHedhNlpCXZ3H4Era1TU+mArHCfdgpX2xVFcJB2Rl9kKlG6C6UUz4piaSBExLbYgVr4+pPfKwqQ==", + "dependencies": { + "aes-js": "^3.1.2", + "ajv": "^6.12.6", + "asn1": "^0.2.3", + "axios": "^0.21.1", + "buffer-equal": "^1.0.0", + "buffer-equal-constant-time": "^1.0.1", + "commander": "^2.20.3", + "debug": "^4.3.2", + "discontinuous-range": "^1.0.0", + "ecdsa-sig-formatter": "^1.0.11", + "endian-toggle": "^0.0.0", + "fast-deep-equal": "^3.1.3", + "fast-json-stable-stringify": "^2.1.0", + "follow-redirects": "^1.14.1", + "inherits": "^2.0.4", + "json-schema-traverse": "^0.4.1", + "jsonwebtoken": "^8.5.1", + "jwa": "^1.4.1", + "jws": "^3.2.2", + "lodash.get": "^4.4.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.merge": "^4.6.2", + "lodash.once": "^4.1.1", + "lodash.reduce": "^4.6.0", + "macaddress": "^0.5.2", + "minecraft-data": "^2.89.4", + "minecraft-folder-path": "^1.2.0", + "minecraft-protocol": "^1.25.0", + "mineflayer": "^3.9.0", + "mojangson": "^2.0.2", + "moo": "^0.5.1", + "ms": "^2.1.2", + "nearley": "^2.20.1", + "node-fetch": "^2.6.1", + "node-rsa": "^0.4.2", + "prismarine-biome": "^1.1.1", + "prismarine-block": "^1.10.1", + "prismarine-chat": "^1.1.0", + "prismarine-chunk": "^1.24.0", + "prismarine-entity": "^1.2.0", + "prismarine-item": "^1.10.0", + "prismarine-nbt": "^1.6.0", + "prismarine-physics": "^1.3.0", + "prismarine-recipe": "^1.1.0", + "prismarine-windows": "^2.2.0", + "prismarine-world": "^3.6.0", + "protodef": "^1.14.0", + "protodef-validator": "^1.3.1", + "punycode": "^2.1.1", + "railroad-diagrams": "^1.0.0", + "randexp": "^0.4.6", + "readable-stream": "^3.6.0", + "ret": "^0.1.15", + "safe-buffer": "^5.2.1", + "semver": "^5.7.1", + "smart-buffer": "^4.2.0", + "sprintf-js": "^1.1.2", + "string_decoder": "^1.3.0", + "typed-emitter": "^1.3.1", + "uint4": "^0.1.2", + "uri-js": "^4.4.1", + "util-deprecate": "^1.0.2", + "uuid": "^8.3.2", + "uuid-1345": "^1.0.2", + "vec3": "^0.1.7", + "yggdrasil": "^1.6.0" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=4", + "npm": ">=1.4.28" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/minecraft-data": { + "version": "2.221.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-2.221.0.tgz", + "integrity": "sha512-0AhqzbIKb6WqPSF6qBevaPryeWOz545hLxt6q+gfJF8YIQX/YfkyX/nXWhl+pSIS2rTBcQ0RJkRCtTeRzQwHDA==" + }, + "node_modules/mineflayer-auto-totem/node_modules/mineflayer": { + "version": "3.18.0", + "resolved": "https://registry.npmjs.org/mineflayer/-/mineflayer-3.18.0.tgz", + "integrity": "sha512-eHLr3rPqGtZuoAWrocMY+WBGxZ1ao8OHAxBr3L8XFT4cZVybjLbEqs/NAa2RFTKTzhO23kzxt+qsmxkLL7Oxiw==", + "dependencies": { + "minecraft-data": "^2.109.0", + "minecraft-protocol": "^1.26.5", + "prismarine-biome": "^1.1.1", + "prismarine-block": "^1.13.1", + "prismarine-chat": "^1.3.3", + "prismarine-chunk": "^1.29.0", + "prismarine-entity": "^2.0.0", + "prismarine-item": "^1.11.0", + "prismarine-nbt": "^2.0.0", + "prismarine-physics": "^1.3.1", + "prismarine-recipe": "^1.1.0", + "prismarine-windows": "^2.4.2", + "prismarine-world": "^3.6.0", + "protodef": "^1.14.0", + "typed-emitter": "^1.0.0", + "vec3": "^0.1.7" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/mineflayer/node_modules/prismarine-entity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-2.2.0.tgz", + "integrity": "sha512-boqJbMpGHG2ddFUUo9aKkKPUHQbFMWkUCw8SRdZ+jrZxABsstL9619I8ujwPYoOMJjMyfYWgdEPNyHGiUqqukA==", + "dependencies": { + "minecraft-data": "^3.0.0", + "prismarine-chat": "^1.4.1", + "prismarine-item": "^1.11.2", + "prismarine-registry": "^1.4.0", + "vec3": "^0.1.4" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/mineflayer/node_modules/prismarine-entity/node_modules/minecraft-data": { + "version": "3.27.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.27.0.tgz", + "integrity": "sha512-Hc0RnPr2pZItI/OK9gi5oKQQaXLfTGhHms4celUkuaNyHTgWolCCc1Bg5AxpIyymoM/xhBvIhMA6au42R17Ajw==" + }, + "node_modules/mineflayer-auto-totem/node_modules/mineflayer/node_modules/prismarine-nbt": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-2.2.1.tgz", + "integrity": "sha512-Mb50c58CPnuZ+qvM31DBa08tf9UumlTq1LkvpMoUpKfCuN05GZHTqCUwER3lxTSHLL0GZKghIPbYR/JQkINijQ==", + "dependencies": { + "protodef": "^1.9.0" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/prismarine-entity": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-1.2.0.tgz", + "integrity": "sha512-4dQ9LYl6HDJQrwZHjSKU4D5VNyHRnfrjcw7eVLlbRPkuR50utW5mmfPi4ys9U7tHNmGWHC/cwjH9xzT75LUovQ==", + "dependencies": { + "vec3": "^0.1.4" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/prismarine-nbt": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-1.6.0.tgz", + "integrity": "sha512-h0ECvIjjwjMOtsmHxHc8hNY7kzktnKqKXmOHF0AkmH7OjkcHNAFsWRiZNvfc76rOhNonRutHvTVAlh/eLtK0oA==", + "dependencies": { + "protodef": "^1.9.0" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/mineflayer-auto-totem/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/mineflayer-auto-totem/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, "node_modules/mineflayer-pathfinder": { "version": "2.4.2", "resolved": "git+ssh://git@github.com/PrismarineJS/mineflayer-pathfinder.git#a4e138c361e9ad39704df3df90bd0c031413d15e", @@ -1868,6 +2115,11 @@ "node": ">=10.0.0" } }, + "node_modules/sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==" + }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -2886,11 +3138,46 @@ "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + }, + "lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + }, + "lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + }, + "lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" + }, "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" + }, "lodash.reduce": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", @@ -3016,6 +3303,196 @@ "resolved": "https://registry.npmjs.org/mineflayer-auto-eat/-/mineflayer-auto-eat-3.3.1.tgz", "integrity": "sha512-SoPdRYp8VubAOYyvBEo/tJefzkgTii1UK301UwuFRP3kkIhC1tRi5XNgWibT2vhM7JULxi8AQq+NuXJ1UL/5yQ==" }, + "mineflayer-auto-totem": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/mineflayer-auto-totem/-/mineflayer-auto-totem-1.3.0.tgz", + "integrity": "sha512-IGtgBccrqQZaHedhNlpCXZ3H4Era1TU+mArHCfdgpX2xVFcJB2Rl9kKlG6C6UUz4piaSBExLbYgVr4+pPfKwqQ==", + "requires": { + "aes-js": "^3.1.2", + "ajv": "^6.12.6", + "asn1": "^0.2.3", + "axios": "^0.21.1", + "buffer-equal": "^1.0.0", + "buffer-equal-constant-time": "^1.0.1", + "commander": "^2.20.3", + "debug": "^4.3.2", + "discontinuous-range": "^1.0.0", + "ecdsa-sig-formatter": "^1.0.11", + "endian-toggle": "^0.0.0", + "fast-deep-equal": "^3.1.3", + "fast-json-stable-stringify": "^2.1.0", + "follow-redirects": "^1.14.1", + "inherits": "^2.0.4", + "json-schema-traverse": "^0.4.1", + "jsonwebtoken": "^8.5.1", + "jwa": "^1.4.1", + "jws": "^3.2.2", + "lodash.get": "^4.4.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.merge": "^4.6.2", + "lodash.once": "^4.1.1", + "lodash.reduce": "^4.6.0", + "macaddress": "^0.5.2", + "minecraft-data": "^2.89.4", + "minecraft-folder-path": "^1.2.0", + "minecraft-protocol": "^1.25.0", + "mineflayer": "^3.9.0", + "mojangson": "^2.0.2", + "moo": "^0.5.1", + "ms": "^2.1.2", + "nearley": "^2.20.1", + "node-fetch": "^2.6.1", + "node-rsa": "^0.4.2", + "prismarine-biome": "^1.1.1", + "prismarine-block": "^1.10.1", + "prismarine-chat": "^1.1.0", + "prismarine-chunk": "^1.24.0", + "prismarine-entity": "^1.2.0", + "prismarine-item": "^1.10.0", + "prismarine-nbt": "^1.6.0", + "prismarine-physics": "^1.3.0", + "prismarine-recipe": "^1.1.0", + "prismarine-windows": "^2.2.0", + "prismarine-world": "^3.6.0", + "protodef": "^1.14.0", + "protodef-validator": "^1.3.1", + "punycode": "^2.1.1", + "railroad-diagrams": "^1.0.0", + "randexp": "^0.4.6", + "readable-stream": "^3.6.0", + "ret": "^0.1.15", + "safe-buffer": "^5.2.1", + "semver": "^5.7.1", + "smart-buffer": "^4.2.0", + "sprintf-js": "^1.1.2", + "string_decoder": "^1.3.0", + "typed-emitter": "^1.3.1", + "uint4": "^0.1.2", + "uri-js": "^4.4.1", + "util-deprecate": "^1.0.2", + "uuid": "^8.3.2", + "uuid-1345": "^1.0.2", + "vec3": "^0.1.7", + "yggdrasil": "^1.6.0" + }, + "dependencies": { + "jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "requires": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + } + }, + "minecraft-data": { + "version": "2.221.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-2.221.0.tgz", + "integrity": "sha512-0AhqzbIKb6WqPSF6qBevaPryeWOz545hLxt6q+gfJF8YIQX/YfkyX/nXWhl+pSIS2rTBcQ0RJkRCtTeRzQwHDA==" + }, + "mineflayer": { + "version": "3.18.0", + "resolved": "https://registry.npmjs.org/mineflayer/-/mineflayer-3.18.0.tgz", + "integrity": "sha512-eHLr3rPqGtZuoAWrocMY+WBGxZ1ao8OHAxBr3L8XFT4cZVybjLbEqs/NAa2RFTKTzhO23kzxt+qsmxkLL7Oxiw==", + "requires": { + "minecraft-data": "^2.109.0", + "minecraft-protocol": "^1.26.5", + "prismarine-biome": "^1.1.1", + "prismarine-block": "^1.13.1", + "prismarine-chat": "^1.3.3", + "prismarine-chunk": "^1.29.0", + "prismarine-entity": "^2.0.0", + "prismarine-item": "^1.11.0", + "prismarine-nbt": "^2.0.0", + "prismarine-physics": "^1.3.1", + "prismarine-recipe": "^1.1.0", + "prismarine-windows": "^2.4.2", + "prismarine-world": "^3.6.0", + "protodef": "^1.14.0", + "typed-emitter": "^1.0.0", + "vec3": "^0.1.7" + }, + "dependencies": { + "prismarine-entity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-2.2.0.tgz", + "integrity": "sha512-boqJbMpGHG2ddFUUo9aKkKPUHQbFMWkUCw8SRdZ+jrZxABsstL9619I8ujwPYoOMJjMyfYWgdEPNyHGiUqqukA==", + "requires": { + "minecraft-data": "^3.0.0", + "prismarine-chat": "^1.4.1", + "prismarine-item": "^1.11.2", + "prismarine-registry": "^1.4.0", + "vec3": "^0.1.4" + }, + "dependencies": { + "minecraft-data": { + "version": "3.27.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.27.0.tgz", + "integrity": "sha512-Hc0RnPr2pZItI/OK9gi5oKQQaXLfTGhHms4celUkuaNyHTgWolCCc1Bg5AxpIyymoM/xhBvIhMA6au42R17Ajw==" + } + } + }, + "prismarine-nbt": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-2.2.1.tgz", + "integrity": "sha512-Mb50c58CPnuZ+qvM31DBa08tf9UumlTq1LkvpMoUpKfCuN05GZHTqCUwER3lxTSHLL0GZKghIPbYR/JQkINijQ==", + "requires": { + "protodef": "^1.9.0" + } + } + } + }, + "prismarine-entity": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-1.2.0.tgz", + "integrity": "sha512-4dQ9LYl6HDJQrwZHjSKU4D5VNyHRnfrjcw7eVLlbRPkuR50utW5mmfPi4ys9U7tHNmGWHC/cwjH9xzT75LUovQ==", + "requires": { + "vec3": "^0.1.4" + } + }, + "prismarine-nbt": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-1.6.0.tgz", + "integrity": "sha512-h0ECvIjjwjMOtsmHxHc8hNY7kzktnKqKXmOHF0AkmH7OjkcHNAFsWRiZNvfc76rOhNonRutHvTVAlh/eLtK0oA==", + "requires": { + "protodef": "^1.9.0" + } + }, + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + } + } + }, "mineflayer-pathfinder": { "version": "git+ssh://git@github.com/PrismarineJS/mineflayer-pathfinder.git#a4e138c361e9ad39704df3df90bd0c031413d15e", "from": "mineflayer-pathfinder@github:PrismarineJS/mineflayer-pathfinder", @@ -3547,6 +4024,11 @@ "debug": "~4.3.1" } }, + "sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==" + }, "statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", diff --git a/package.json b/package.json index a48ff02..2bee23f 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "mineflayer": "^4.8.1", "mineflayer-antihunger": "^1.0.4", "mineflayer-auto-eat": "^3.3.1", + "mineflayer-auto-totem": "^1.3.0", "mineflayer-pathfinder": "github:PrismarineJS/mineflayer-pathfinder", "prismarine-viewer": "^1.23.0" } diff --git a/src/main.ts b/src/main.ts index 0a28ea4..8e87abc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,7 @@ import mineflayer from 'mineflayer'; import { ChannelType, Client, GatewayIntentBits } from "discord.js"; const mineflayerViewer = require('prismarine-viewer').mineflayer const antiHunger = require('mineflayer-antihunger').plugin +const autoTotem = require('mineflayer-auto-totem').autototem import { pathfinder, Movements, goals } from 'mineflayer-pathfinder'; import { plugin as autoeat } from 'mineflayer-auto-eat'; import autoArmor from '@nxg-org/mineflayer-auto-armor'; @@ -52,6 +53,7 @@ bot.loadPlugin(pathfinder) bot.loadPlugin(autoeat) bot.loadPlugin(antiHunger) bot.loadPlugin(autoArmor) +bot.loadPlugin(autoTotem) bot.once('spawn', () => { mineflayerViewer(bot, { firstPerson: true, port: 3000 }); @@ -85,6 +87,10 @@ bot.on('health', () => { quit(`low hp: ${bot.health}`) }) +bot.on("physicsTick", async () => { + (bot as any).autototem.equip() +}) + setInterval(() => { if (bot._client.state !== "play") return |