Replies: 2 comments 2 replies
-
A place where all the packets Minecraft sends and receives are documented and can be found at wiki.vg. To start with a basic gist of how connecting to a server works "under the hood", here's a general process of how to login to a server. There are three "phases" in logging in to a Minecraft server.
The back and forth with the server, documented in the Protocol FAQ in wiki.vg, is as follows:
The server and the client will now move into the "Login" phase.
The server and client from this point will now send information about each other and server capabilities.
Sending the Acknowledge Finish Configuration Packet will then move the server to the Play phase.
At this point, you are free to send and receive any packets under the Play phase, however, you must ensure that you return the Keep Alive Packet when the server sends it in order to make sure that the server doesn't kick you out. You may also refer to a different project called mineflayer, under https://github.com/PrismarineJS/mineflayer, which is a programmable headless (console) Minecraft client based on JavaScript. It may help you understand some concepts a bit further when looking at it from a different client. |
Beta Was this translation helpful? Give feedback.
-
A discord server for this exactly |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm a university student majoring in Computer Science, minor in Cyber Security. I'm familiar with programming and am currently interning as a Software Developer. I want to learn more about the methodology behind creating a console client (I'm going into this blind since my research was a complete failure, I even saw ORelio talking about CC's from 2011) and I would like to create my own from scratch (a barebones version) to use on a server that I play on with my friends. I played Minecraft factions before so I'm familiar with console clients, but I'm not familiar with what's under the hood. It would be an awesome project to put on my resume and learning opportunity for me. Here is my e-mail: vansh.kanojia@yahoo.com , feel free to contact me.
Beta Was this translation helpful? Give feedback.
All reactions