我正在试着做一个扫雷机器人,但是它似乎一直发送相同的错误。下面是代码:
const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
host: 'localhost',
port: ,
username: 'Test_Bot'
})
下面是错误:
Error: Unsupported brand channel name
at getBrandCustomChannelName (/Users/jeonghunchae/Desktop/Bots/node_modules/mineflayer/lib/plugins/game.js:22:11)
at inject (/Users/jeonghunchae/Desktop/Bots/node_modules/mineflayer/lib/plugins/game.js:67:24)
at /Users/jeonghunchae/Desktop/Bots/node_modules/mineflayer/lib/plugin_loader.js:41:7
at Array.forEach (<anonymous>)
at injectPlugins (/Users/jeonghunchae/Desktop/Bots/node_modules/mineflayer/lib/plugin_loader.js:40:16)
at EventEmitter.onInjectAllowed (/Users/jeonghunchae/Desktop/Bots/node_modules/mineflayer/lib/plugin_loader.js:12:5)
at Object.onceWrapper (node:events:627:28)
at EventEmitter.emit (node:events:513:28)
at Client.next (/Users/jeonghunchae/Desktop/Bots/node_modules/mineflayer/lib/loader.js:124:9)
at Object.onceWrapper (node:events:627:28)
jeonghunchae@2015017 Bots %
是否有任何方法可以修复此错误?
首先我尝试在我的世界里做一个局域网服务器,它发送了这个错误。然后我用online-mod创建了一个私人服务器:false,但它仍发送相同的错误。
1条答案
按热度按时间h43kikqp1#
我也有同样的问题。
经过大量的研究,我发现我不确定我的Minecraft版本(1. 19. 2)是否得到Mineflayer的支持。
切换到1.19后,错误消息消失。