Skip to content

Interacting with Minecraft using TCP #3390

Answered by edoCsItahW
edoCsItahW asked this question in Q&A
Discussion options

You must be logged in to vote

Non optimal answer

resolvent

  • According to this paragraph:

For packets with a length less than the threshold, we only need to add 0 to their 'length' and 'ID', for example: \x01\x03becomes \x02\x00\x03

So we just need to send out the login confirmation package in this form

Non optimal reasons

  • The best way is actually to set a negative threshold to disable compression, but I haven't found the correct method

New issues

After sending the Login Confirmation package, I sent the Knowledge Finish Configuration package.

The wiki said that the ID of this package was 3, but I imitated Mineplayer and sent the package with ID 2, and the result was successful.

The server sent me a lot of data, but…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@edoCsItahW
Comment options

Comment options

You must be logged in to vote
1 reply
@edoCsItahW
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by edoCsItahW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants