From 502fa0d2c6af39ce64e62476e046e05af8e88aee Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 31 Jul 2023 08:17:29 +0700 Subject: [PATCH] prismarine-nbt --- index.js | 4 +++- package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0808592..a4cbb9c 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,7 @@ const ChatMessage = require('prismarine-chat')('1.20.1') const mc = require('minecraft-protocol') const moment = require('moment-timezone') const crypto = require('crypto') +const nbt = require('prismarine-nbt') const BRIDGE_PREFIX = 'function:' @@ -56,7 +57,8 @@ io.on('connection', (socket) => { ChatMessage, mc, moment, - crypto + crypto, + nbt } }) } diff --git a/package.json b/package.json index 79ec8ad..4c44da0 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "moment": "^2.29.4", "moment-timezone": "^0.5.43", "prismarine-chat": "^1.8.0", + "prismarine-nbt": "^2.2.1", "randomstring": "^1.3.0", "socket.io": "^4.7.1", "vm2": "^3.9.19"