feat: prismarine-item and minecraft-data
This commit is contained in:
parent
ca55ef1c99
commit
e10ca549dc
2 changed files with 7 additions and 1 deletions
|
@ -12,11 +12,13 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@n8n/vm2": "^3.9.25",
|
"@n8n/vm2": "^3.9.25",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
|
"minecraft-data": "^3.78.0",
|
||||||
"minecraft-protocol": "^1.43.1",
|
"minecraft-protocol": "^1.43.1",
|
||||||
"mineflayer": "^4.22.0",
|
"mineflayer": "^4.22.0",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"moment-timezone": "^0.5.43",
|
"moment-timezone": "^0.5.43",
|
||||||
"prismarine-chat": "^1.8.0",
|
"prismarine-chat": "^1.8.0",
|
||||||
|
"prismarine-item": "^1.15.0",
|
||||||
"prismarine-nbt": "^2.2.1",
|
"prismarine-nbt": "^2.2.1",
|
||||||
"randomstring": "^1.3.0",
|
"randomstring": "^1.3.0",
|
||||||
"socket.io": "^4.7.1"
|
"socket.io": "^4.7.1"
|
||||||
|
|
6
vm.js
6
vm.js
|
@ -3,12 +3,14 @@ const { VM } = require('@n8n/vm2')
|
||||||
const util = require('util')
|
const util = require('util')
|
||||||
const { stylize } = require('./colors')
|
const { stylize } = require('./colors')
|
||||||
const randomstring = require('randomstring')
|
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 mc = require('minecraft-protocol')
|
||||||
const mineflayer = require('mineflayer')
|
const mineflayer = require('mineflayer')
|
||||||
const moment = require('moment-timezone')
|
const moment = require('moment-timezone')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const nbt = require('prismarine-nbt')
|
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 net = require('net')
|
||||||
const axios = require('axios')
|
const axios = require('axios')
|
||||||
|
|
||||||
|
@ -64,6 +66,8 @@ parentPort.on('message', (msg) => {
|
||||||
moment,
|
moment,
|
||||||
crypto,
|
crypto,
|
||||||
nbt,
|
nbt,
|
||||||
|
Item,
|
||||||
|
mcData,
|
||||||
net,
|
net,
|
||||||
axios,
|
axios,
|
||||||
inspect: (input, options) => util.inspect(
|
inspect: (input, options) => util.inspect(
|
||||||
|
|
Loading…
Reference in a new issue