minecraft/protocol/packet package contains all packet types used in Minecraft Bedrock Edition network communication. Each packet implements the Packet interface.
Packet Interface
ID()- Returns the unique packet identifierMarshal(io)- Serializes/deserializes the packet data
Packet Categories
The protocol includes 200+ packet types organized by functionality:Login & Handshake
- Login - Initial login request with JWT chain
- ServerToClientHandshake - Server encryption handshake
- ClientToServerHandshake - Client handshake response
- PlayStatus - Login status updates
- NetworkSettings - Compression and network configuration
- RequestNetworkSettings - Client requests network settings
World & Gameplay
- StartGame - Initializes the player in the world
- SetLocalPlayerAsInitialised - Signals spawn completion
- UpdateBlock - Single block update
- UpdateSubChunkBlocks - Multiple block updates
- LevelChunk - Full chunk data
- SubChunk - Sub-chunk data
- SetTime - World time update
- SetDifficulty - Difficulty setting
Entity Management
- AddActor - Spawns an entity
- AddPlayer - Adds a player entity
- RemoveActor - Removes an entity
- MoveActorAbsolute - Absolute entity movement
- MoveActorDelta - Delta-based movement
- SetActorMotion - Sets entity velocity
- SetActorData - Updates entity metadata
- UpdateAttributes - Updates entity attributes (health, hunger, etc.)
Player Actions
- PlayerAction - Mining, jumping, etc.
- PlayerAuthInput - Client input (position, rotation, actions)
- Interact - Entity interaction
- Respawn - Player respawn
- ChangeDimension - Dimension change
- RequestChunkRadius - Chunk view distance
Inventory & Items
- InventoryTransaction - Item transactions
- InventorySlot - Single slot update
- InventoryContent - Full inventory content
- MobEquipment - Equipment changes
- ContainerOpen - Opens a container
- ContainerClose - Closes a container
- ItemStackRequest - Item stack operations
- ItemStackResponse - Server response to stack request
- CraftingData - Available recipes
Commands & Chat
- Text - Chat messages
- CommandRequest - Command execution
- AvailableCommands - Available command list
- CommandOutput - Command execution result
Resource Packs
- ResourcePacksInfo - Available resource packs
- ResourcePackStack - Pack load order
- ResourcePackClientResponse - Client response
- ResourcePackDataInfo - Pack download info
- ResourcePackChunkData - Pack chunk data
- ResourcePackChunkRequest - Request pack chunk
Effects & Particles
- LevelEvent - Level events (sounds, particles)
- LevelSoundEvent - Sound effects
- SpawnParticleEffect - Particle spawn
- PlaySound - Play a sound
- StopSound - Stop a sound
UI & HUD
- SetTitle - Title/subtitle display
- SetHUD - HUD element visibility
- BossEvent - Boss bar updates
- ShowProfile - Show player profile
- ModalFormRequest - Display a form
- ModalFormResponse - Form response
Scoreboard
- SetDisplayObjective - Set scoreboard display
- SetScore - Update score entries
- RemoveObjective - Remove objective
- SetScoreboardIdentity - Set player identity
Abilities & Permissions
- UpdateAbilities - Player ability updates
- UpdateAdventureSettings - Adventure mode settings
- RequestAbility - Request ability change
Camera
- CameraShake - Shake effect
- CameraPresets - Camera preset definitions
- CameraInstruction - Camera control instruction
Other Common Packets
- Transfer - Transfer to another server
- Disconnect - Disconnect with message
- Animate - Animation trigger
- EmoteList - Available emotes
- Emote - Play emote
- TickSync - Client/server tick synchronization
- NetworkChunkPublisherUpdate - Chunk loading center