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"