Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.16.3 support #1316

Closed
omarkhorshid opened this issue Sep 14, 2020 · 6 comments
Closed

1.16.3 support #1316

omarkhorshid opened this issue Sep 14, 2020 · 6 comments

Comments

@omarkhorshid
Copy link

I am trying to create a bot that's going to connect to a server running spigot 1.16.3.
And when trying to set the version to "1.16.3" I get : Error: unsupported protocol version: 1.16.3

Can I use mineflayer with 1.16.3? If not, is it planned to support this version in the future?

@TheDudeFromCI
Copy link
Member

1.16.2 and 1.16.3 are planned and in development.
Currently there are not enough hands working on supporting these versions yet, so a release is not yet known.

@aaronfrancis635
Copy link

aaronfrancis635 commented Sep 28, 2020

It seems like the only changes were some bug fixes and updating the protocol version number, I'll work on this and do some tests to see what needs updating or changing and see if I can get a stable working version that passes tests.

Edit: I know it's more complex than that, just sayin I'll take a look.

@TheDudeFromCI
Copy link
Member

There were also changes made to Minecraft-Data for entity data and protocol handling.

@rom1504
Copy link
Member

rom1504 commented Sep 28, 2020

what's needed is explained there PrismarineJS/node-minecraft-protocol#757 (comment)
I'd gladly guide someone if you want to work on it

@rom1504
Copy link
Member

rom1504 commented Oct 6, 2020

moved to #1264

@rom1504 rom1504 closed this as completed Oct 6, 2020
@SirJousis
Copy link

I am trying to connect my bot to my server and i get this error
Error: unsupported/unknown protocol version: 762, update minecraft-data
Error: unsupported/unknown protocol version: 762, update minecraft-data
TypeError: Cannot read properties of undefined (reading 'minecraftVersion')
TypeError: Cannot read properties of undefined (reading 'minecraftVersion')

And this is my code:
const mineflayer = require('mineflayer');

const bot = mineflayer.createBot({
host: '3.252.139.83', // minecraft server ip
username: 'afkonline', // minecraft username
auth: 'microsoft', // for offline mode servers, you can set this to 'offline'
port: 25565, // only set if you need a port that isn't 25565
//version: "false", // only set if you need a specific version or snapshot (ie: "1.8.9" or "1.16.5"), otherwise it's set automatically
//password: '9tghbwv9600K' // set if you want to use password-based auth (may be unreliable)
});

bot.on('chat', (username, message) => {
if (username === bot.username) return
bot.chat(message)
});

// Log errors and kick reasons:
bot.on('kicked', console.log);
bot.on('error', console.log);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants