Skip to main content

Packet Registry

The Hytale protocol utilizes a strict registry for defining packet IDs, sizes, and compression rules.

Note

There is a full Packet Reference that has more than these current packets listed on this page. These are purely for example purposes.

PacketInfo Structure

public static final class PacketInfo {
int id; // Packet ID (0-255+)
String name; // Human name
Class<? extends Packet> type;
int fixedBlockSize; // Size of fixed fields
int maxSize; // Maximum allowed payload size
boolean compressed; // Is this packet type compressed?
}

Update Packets (World Data)

The following packets (IDs 40-85) are used to synchronize game registries and world state. All of these are compressed.

IDNameDescription
40UpdateBlockTypesBlock type definitions
41UpdateBlockHitboxesBlock collision boxes
42UpdateBlockSoundSetsBlock sound configurations
47UpdateWeathersWeather configurations
51UpdateEntityEffectsEntity effect definitions
53UpdateModelvfxsModel VFX definitions
55UpdateItemQualitiesItem quality tiers
61UpdateEnvironmentsEnvironment configs
65UpdateSoundEventsSound event definitions
66UpdateInteractionsInteraction definitions
72UpdateEntityStatTypesEntity stat definitions
73UpdateEntityUIComponentsEntity UI components
74UpdateHitboxCollisionConfigHitbox collision configs
79UpdateSoundSetsSound set definitions
83UpdateFluidsFluid definitions
84UpdateTagPatternsTag pattern definitions

Other Packet Ranges

RangePurposeCount
0-18Connection & Auth19
20-26World & Assets7
100-119Client State20
131-150World Data20
200-219UI & Messages20
280-361Camera & Editor82
400-423Builder Tools24