From 2fbdad2b2a4fa3a76dc325ef2b1404d742444d55 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:28:02 +0700 Subject: [PATCH] mineflayer sucks but why not --- index.js | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/index.js b/index.js index 01873a0..4f21e84 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,7 @@ const { stylize } = require('./colors') const randomstring = require('randomstring') const ChatMessage = require('prismarine-chat')('1.20.1') const mc = require('minecraft-protocol') +const mineflayer = require('mineflayer') const moment = require('moment-timezone') const crypto = require('crypto') const nbt = require('prismarine-nbt') @@ -59,6 +60,7 @@ io.on('connection', async (socket) => { randomstring, ChatMessage, mc, + mineflayer, moment, crypto, nbt, diff --git a/package.json b/package.json index 3aa1354..3fcafee 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@n8n/vm2": "^3.9.25", "axios": "^1.7.7", "minecraft-protocol": "^1.43.1", + "mineflayer": "^4.22.0", "moment": "^2.29.4", "moment-timezone": "^0.5.43", "prismarine-chat": "^1.8.0",