diff --git a/package.json b/package.json index 3fcafee..acb9e58 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,13 @@ "dependencies": { "@n8n/vm2": "^3.9.25", "axios": "^1.7.7", + "minecraft-data": "^3.78.0", "minecraft-protocol": "^1.43.1", "mineflayer": "^4.22.0", "moment": "^2.29.4", "moment-timezone": "^0.5.43", "prismarine-chat": "^1.8.0", + "prismarine-item": "^1.15.0", "prismarine-nbt": "^2.2.1", "randomstring": "^1.3.0", "socket.io": "^4.7.1" diff --git a/vm.js b/vm.js index 88bd695..570aaca 100644 --- a/vm.js +++ b/vm.js @@ -3,12 +3,14 @@ const { VM } = require('@n8n/vm2') const util = require('util') const { stylize } = require('./colors') const randomstring = require('randomstring') -const ChatMessage = require('prismarine-chat')('1.20.6') +const ChatMessage = require('prismarine-chat')('1.21.1') const mc = require('minecraft-protocol') const mineflayer = require('mineflayer') const moment = require('moment-timezone') const crypto = require('crypto') const nbt = require('prismarine-nbt') +const Item = require('prismarine-item')('1.21.1') +const mcData = require('minecraft-data')('1.21.1') const net = require('net') const axios = require('axios') @@ -64,6 +66,8 @@ parentPort.on('message', (msg) => { moment, crypto, nbt, + Item, + mcData, net, axios, inspect: (input, options) => util.inspect(