Skip to content

World Packets

Packets for world state synchronization — chunks, blocks, fluids, sounds, particles, weather, and time.

IDPacketDirectionDescription
131SetChunkS->CChunk data (compressed)
132SetChunkHeightmapS->CChunk heightmap
133SetChunkTintmapS->CChunk tint colors
134SetChunkEnvironmentsS->CChunk environments
135UnloadChunkS->CUnload chunk
136SetFluidsS->CFluid data
140ServerSetBlockS->CSingle block change
141ServerSetBlocksS->CMultiple block changes
142ServerSetFluidS->CSingle fluid change
143ServerSetFluidsS->CMultiple fluid changes
144UpdateBlockDamageS->CBlock damage state
145UpdateTimeSettingsS->CTime settings
146UpdateTimeS->CCurrent time
147UpdateEditorTimeOverrideS->CEditor time override
148ClearEditorTimeOverrideS->CClear time override
149UpdateWeatherS->CWeather state
150UpdateEditorWeatherOverrideS->CEditor weather
151UpdateEnvironmentMusicS->CMusic state
152SpawnParticleSystemS->CSpawn particles
153SpawnBlockParticleSystemS->CBlock particles
154PlaySoundEvent2DS->C2D sound
155PlaySoundEvent3DS->C3D sound
156PlaySoundEventEntityS->CEntity sound
157UpdateSleepStateS->CSleep state
158SetPausedC->SPause request
159ServerSetPausedS->CPause state
360UpdateSunSettingsS->CSun configuration
361UpdatePostFxSettingsS->CPost-processing

ID: 149 | Direction: S->C

Sends the current weather state to a player. Sent every 1 second when weather changes, with a transition duration for smooth blending.

FieldTypeDescription
weatherIndexintIndex into the weather asset table (0 = unknown/none)
transitionSecondsfloatTransition duration in seconds (0.5 on join, 10.0 on change)

Fixed size: 8 bytes. Not compressed.

API: See Weather


ID: 150 | Direction: S->C

Overrides the weather display for asset editor previews.

FieldTypeDescription
weatherIndexintWeather asset index (0 = clear override)

Fixed size: 4 bytes. Not compressed.


ID: 152 | Direction: S->C

Spawns a particle effect at a world position with optional rotation, scale, and color.

FieldTypeDescription
particleSystemIdstringParticle system asset ID (e.g. "Hytale/DirtBreak")
positionVector3dWorld position
rotationVector3fYaw, pitch, roll in radians
scalefloatScale multiplier (default 1.0)
colorColorRGB color override (null = no override)

API: ParticleUtil.spawnParticleEffect()


ID: 153 | Direction: S->C

Spawns a block-specific particle effect (walk, break, hit, etc.). Sent to all players with the chunk loaded.

FieldTypeDescription
blockIdintBlock type ID
particleTypeBlockParticleEventEvent type (Walk, Break, Hit, etc.)
positionVector3dBlock position

API: Triggered by WorldNotificationHandler — see Block Particles


ID: 154 | Direction: S->C

Plays a non-positional sound directly in the player’s audio output.

FieldTypeDescription
soundEventIndexintSound event index (from SoundEvent.getAssetMap().getIndex())
categorySoundCategoryAudio bus (Music, Ambient, SFX, UI)
volumeModifierfloatVolume multiplier (default 1.0)
pitchModifierfloatPitch multiplier (default 1.0)

API: SoundUtil.playSoundEvent2d()


ID: 155 | Direction: S->C

Plays a positional sound at a world location with distance attenuation.

FieldTypeDescription
soundEventIndexintSound event index
categorySoundCategoryAudio bus
positionVector3dWorld position
volumeModifierfloatVolume multiplier (default 1.0)
pitchModifierfloatPitch multiplier (default 1.0)

API: SoundUtil.playSoundEvent3d()


ID: 156 | Direction: S->C

Plays a sound attached to an entity that follows it as it moves.

FieldTypeDescription
soundEventIndexintSound event index
networkIdintEntity network ID
volumeModifierfloatVolume multiplier (default 1.0)
pitchModifierfloatPitch multiplier (default 1.0)

API: SoundUtil.playSoundEventEntity()