Skip to main content

Gameplay Packets

Packets in com.hypixel.hytale.protocol.packets.player and world.

SetClientId (100)

Bound: Clientbound

Tells the client which Entity ID represents their player.

FieldTypeNotes
entityIdIntThe player's entity ID.

SetGameMode (103)

Bound: Clientbound

Sets the player's interaction mode.

FieldTypeNotes
gameModeByte0=Survival, 1=Creative, 2=Adventure.

JoinWorld (104)

Bound: Clientbound

Signals the client to enter the world rendering state.

FieldTypeNotes
clearWorldBooleanIf true, unload all previous chunks/entities.
fadeInOutBooleanTrigger a black fade effect.
worldUuidUUIDUnique instance ID of the world.

ClientReady (105)

Bound: Serverbound

Sent by the client when it has finished processing assets and is ready to spawn.

FieldTypeNotes
readyForChunksBooleanTrue if client can accept chunk data.
readyForGameplayBooleanTrue if client is ready to control player.

ClientTeleport (106)

Bound: Serverbound | State: Play

Sent by the server to force the client's position (e.g., teleporting via command or portal).

FieldTypeNotes
positionVector3dThe target coordinates.
rotationQuaternionThe target rotation.

ClientMovement (107)

Bound: Serverbound

Updates the player's position and rotation.

FieldTypeNotes
nullBitsByteBitmask.
xDoubleOptional (Mask 0x1).
yDoubleOptional (Mask 0x2).
zDoubleOptional (Mask 0x4).
yawFloatOptional (Mask 0x8).
pitchFloatOptional (Mask 0x10).
onGroundBooleanOptional (Mask 0x20).

ClientPlaceBlock (108)

Bound: Serverbound | State: Play

Sent by the client when the player right-clicks to place a block.

FieldTypeNotes
xIntBlock X.
yIntBlock Y.
zIntBlock Z.
faceByteFace clicked (0-5).
handIntHand index used.

SetChunk (131)

Bound: Clientbound | Compressed: Yes

Sends a vertical column of world data (16x16xH).

FieldTypeNotes
chunkXIntChunk coordinate X.
chunkZIntChunk coordinate Z.
activeSectionsIntBitmask of which vertical sections are included.
dataByte[]Zstd compressed buffer of blocks and biomes.

UnloadChunk (132)

Bound: Clientbound | State: Play

Instructs the client to unload a specific chunk from memory.

FieldTypeNotes
chunkXIntChunk coordinate X.
chunkZIntChunk coordinate Z.

ServerSetBlock (140)

Bound: Clientbound

Updates a single block in the world.

FieldTypeNotes
xIntWorld X.
yIntWorld Y.
zIntWorld Z.
blockIdIntNew Block ID.
fillerShortBlock meta/state data.
rotationByteBlock rotation (0-3).

UpdateTime (146)

Bound: Clientbound

Synchronizes the world clock.

FieldTypeNotes
nullBitsByteBitmask.
gameTimeInstantDataOptional. Current ticks. If null, 12 bytes of zeros are written.

UpdateWeather (147)

Bound: Clientbound | State: Play

Updates the current weather state (rain, snow, clear).

FieldTypeNotes
nullBitsByteBitmask.
weatherIdIntThe registry ID of the weather (from UpdateWeathers).
transitionTimeFloatSeconds to fade to this weather.

DisplayDebug (232)

Bound: Clientbound

Draws a debug shape in the world for a specific duration.

FieldTypeNotes
idStringUnique ID for this shape (allows overwriting).
typeByte0=Box, 1=Line, 2=Sphere, 3=Text.
posVector3dWorld position.
colorIntARGB Color.
durationFloatSeconds to remain visible.
textStringConditional. Text content if type is 3.

ClearDebugShapes (233)

Bound: Clientbound

Removes all debug rendering.

Payload is empty.