Home - Anarchick/skript-packet GitHub Wiki
What are packets?
Packets are what Minecraft uses to send information between a server and client.
Packets can be send by the server to the client (e.g. The server ask the client to open a chest GUI) OR from the client to the server (e.g. The client tell to the server he have shift-click on slot 12).
Informations are stored inside fields. A packet can contains multiple fields, and each one have his type (String, Integer, Boolean, ...)
On the Unload Chunk Packet we can see 2 fields of type integer.
Each packet has a packettype. Packettypes describe what kind of information a packet holds and for what purpose that information should be used. There are two main kinds of packettypes: server and client. Server packettypes describe packets that are sent to a client from the server, and client packettypes describe packets that are received by the server from the client. Every packettype has a name that looks kinda like this: play_server_player_info. Here, play is that packettypes's group (Another classification of packets that you don't need to worry about) server means that that packettype is a server packettype, and player_info is the rest of its name.
Helpful Resources
wiki.vg provides a list of packets, their fields, and what their fields represent. It can be useful for knowing what each field of a packet means, however the fields aren't always 100% the same (which are based on their ProtocolLib fields).