Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview

Play

Everything in the world: chunks, entities, chat, movement.

210 packets: 69 serverbound, 141 clientbound.

IDs restart at 0x00 in every state, so the same number means a different packet in login than in play.

ID Direction Packet Fields
0x00 → server AcceptTeleportation teleportId
0x01 → server Attack entityId
0x02 → server BlockEntityTagQuery transactionId, location
0x03 → server BundleItemSelected slotId, selectedItemIndex
0x04 → server ChangeDifficulty newDifficulty
0x05 → server ChangeGameMode mode
0x06 → server ChatAck count
0x07 → server ChatCommand command
0x08 → server ChatCommandSigned command, timestamp, salt, argumentSignatures, messageCount, acknowledged, checksum
0x09 → server Chat message, timestamp, salt, signature, offset, acknowledged, checksum
0x0A → server ChatSessionUpdate sessionUUID, expireTime, publicKey, signature
0x0B → server ChunkBatchReceived chunksPerTick
0x0C → server ClientCommand actionId
0x0D → server ClientTickEnd
0x0E → server ClientInformation locale, viewDistance, chatFlags, chatColors, skinParts, mainHand, enableTextFiltering, enableServerListing, particleStatus
0x0F → server CommandSuggestion transactionId, text
0x10 → server ConfigurationAcknowledged
0x11 → server EnchantItem windowId, enchantment
0x12 → server ContainerClick windowId, stateId, slot, mouseButton, mode, changedSlots, cursorItem
0x13 → server ContainerClose windowId
0x14 → server ContainerSlotStateChanged slot_id, window_id, state
0x15 → server CookieResponse key, value
0x16 → server CustomPayload channel, data
0x17 → server DebugSubscriptionRequest subscriptions
0x18 → server EditBook hand, pages, title
0x19 → server EntityTagQuery transactionId, entityId
0x1A → server Interact target, hand, location, usingSecondaryAction
0x1B → server JigsawGenerate location, levels, keepJigsaws
0x1C → server KeepAlive keepAliveId
0x1D → server LockDifficulty locked
0x1E → server MovePlayerPos x, y, z, flags
0x1F → server MovePlayerPosRot x, y, z, yaw, pitch, flags
0x20 → server MovePlayerRot yaw, pitch, flags
0x21 → server MovePlayerStatusOnly flags
0x22 → server MoveVehicle x, y, z, yaw, pitch, onGround
0x23 → server PaddleBoat leftPaddle, rightPaddle
0x24 → server PickItemFromBlock position, includeData
0x25 → server PickItemFromEntity entityId, includeData
0x26 → server PingRequest id
0x27 → server PlaceRecipe windowId, recipeId, makeAll
0x28 → server PlayerAbilities flags
0x29 → server PlayerAction status, location, face, sequence
0x2A → server PlayerCommand entityId, actionId, jumpBoost
0x2B → server PlayerInput inputs
0x2C → server PlayerLoaded
0x2D → server Pong id
0x2E → server RecipeBookChangeSettings bookId, bookOpen, filterActive
0x2F → server RecipeBookSeenRecipe recipeId
0x30 → server RenameItem name
0x31 → server ResourcePack uuid, result
0x32 → server SeenAdvancements action, tabId
0x33 → server SelectTrade slot
0x34 → server SetBeacon primary_effect, secondary_effect
0x35 → server SetCarriedItem slotId
0x36 → server ProgramCommandBlock location, command, mode, flags
0x37 → server ProgramCommandBlockMinecart entityId, command, track_output
0x38 → server SetCreativeModeSlot slot, item
0x39 → server SetGameRule rules
0x3A → server SetJigsawBlock location, name, target, pool, finalState, jointType, selection_priority, placement_priority
0x3B → server SetStructureBlock location, action, mode, name, offset_x, offset_y, offset_z, size_x, size_y, size_z, mirror, rotation, metadata, integrity, seed, flags
0x3C → server SetTestBlock position, mode, message
0x3D → server SignUpdate location, isFrontText, text1, text2, text3, text4
0x3E → server SpectatorAction entityId
0x3F → server Swing hand
0x40 → server TeleportToEntity uuid
0x41 → server TestInstanceBlockAction pos, action, data
0x42 → server UseItemOn hand, location, direction, cursorX, cursorY, cursorZ, insideBlock, worldBorderHit, sequence
0x43 → server UseItem hand, sequence, rotation
0x44 → server CustomClickAction id, nbt
0x00 → client BundleDelimiter
0x01 → client AddEntity entityId, objectUUID, type, x, y, z, velocity, pitch, yaw, headPitch, objectData
0x02 → client Animate entityId, animation
0x03 → client AwardStats entries
0x04 → client BlockChangedAck sequenceId
0x05 → client BlockDestruction entityId, location, destroyStage
0x06 → client BlockEntityData location, action, nbtData
0x07 → client BlockEvent location, byte1, byte2, blockId
0x08 → client BlockUpdate location, type
0x09 → client BossEvent entityUUID, action, title, health, color, dividers, flags
0x0A → client ChangeDifficulty difficulty, difficultyLocked
0x0B → client ChunkBatchFinished batchSize
0x0C → client ChunkBatchStart
0x0D → client ChunksBiomes biomes
0x0E → client ClearTitles reset
0x0F → client CommandSuggestions transactionId, start, length, matches
0x10 → client Commands nodes, rootIndex
0x11 → client ContainerClose windowId
0x12 → client ContainerSetContent windowId, stateId, items, carriedItem
0x13 → client ContainerSetData windowId, property, value
0x14 → client ContainerSetSlot windowId, stateId, slot, item
0x15 → client CookieRequest cookie
0x16 → client Cooldown cooldownGroup, cooldownTicks
0x17 → client CustomChatCompletions action, entries
0x18 → client CustomPayload channel, data
0x19 → client DamageEvent entityId, sourceTypeId, sourceCauseId, sourceDirectId, sourcePosition
0x1A → client DebugBlockValue blockPos, update
0x1B → client DebugChunkValue chunkPos, update
0x1C → client DebugEntityValue entityId, update
0x1D → client DebugEvent event
0x1E → client DebugSample sample, type
0x1F → client DeleteChat id, signature
0x20 → client Disconnect reason
0x21 → client DisguisedChat message, type, name, target
0x22 → client EntityEvent entityId, entityStatus
0x23 → client EntityPositionSync entityId, x, y, z, dx, dy, dz, yaw, pitch, onGround
0x24 → client Explode center, radius, blockCount, playerKnockback, explosionParticle, sound, blockParticles
0x25 → client ForgetLevelChunk chunkZ, chunkX
0x26 → client GameEvent event, value
0x27 → client GameRuleValues rules
0x28 → client GameTestHighlightPos absolutePos, relativePos
0x29 → client HorseScreenOpen windowId, nbSlots, entityId
0x2A → client HurtAnimation entityId, yaw
0x2B → client InitializeBorder x, z, oldDiameter, newDiameter, speed, portalTeleportBoundary, warningBlocks, warningTime
0x2C → client KeepAlive keepAliveId
0x2D → client LevelChunkWithLight chunkX, chunkZ, chunkData, blockEntities, heightmaps, skyLightMask, blockLightMask, emptySkyLightMask, emptyBlockLightMask, skyLight, blockLight
0x2E → client LevelEvent effectId, location, data, global
0x2F → client LevelParticles longDistance, alwaysShow, x, y, z, offsetX, offsetY, offsetZ, velocityOffset, amount, particle
0x30 → client LightUpdate chunkX, chunkZ, skyLightMask, blockLightMask, emptySkyLightMask, emptyBlockLightMask, skyLight, blockLight
0x31 → client Login entityId, isHardcore, worldNames, maxPlayers, viewDistance, simulationDistance, reducedDebugInfo, enableRespawnScreen, doLimitedCrafting, worldState, onlineMode, enforcesSecureChat
0x32 → client LowDiskSpaceWarning
0x33 → client MapItemData itemDamage, scale, locked, icons, columns, rows, x, y, data
0x34 → client MerchantOffers windowId, trades, villagerLevel, experience, isRegularVillager, canRestock
0x35 → client MoveEntityPos entityId, dX, dY, dZ, onGround
0x36 → client MoveEntityPosRot entityId, dX, dY, dZ, yaw, pitch, onGround
0x37 → client MoveMinecartAlongTrack entityId, steps
0x38 → client MoveEntityRot entityId, yaw, pitch, onGround
0x39 → client MoveVehicle x, y, z, yaw, pitch
0x3A → client OpenBook hand
0x3B → client OpenScreen windowId, inventoryType, windowTitle
0x3C → client OpenSignEditor location, isFrontText
0x3D → client Ping id
0x3E → client PongResponse id
0x3F → client PlaceGhostRecipe windowId, recipeDisplay
0x40 → client PlayerAbilities flags, flyingSpeed, walkingSpeed
0x41 → client PlayerChat globalIndex, senderUuid, index, signature, plainMessage, timestamp, salt, previousMessages, unsignedChatContent, filterType, filterTypeMask, type, networkName, networkTargetName
0x42 → client PlayerCombatEnd duration
0x43 → client PlayerCombatEnter
0x44 → client PlayerCombatKill playerId, message
0x45 → client PlayerInfoRemove players
0x46 → client PlayerInfoUpdate action, data
0x47 → client PlayerLookAt feet_eyes, x, y, z, isEntity, entityId, entity_feet_eyes
0x48 → client SynchronizePlayerPosition teleportId, x, y, z, velocityX, velocityY, velocityZ, yaw, pitch, flags
0x49 → client PlayerRotation yaw, relativeYaw, pitch, relativePitch
0x4A → client RecipeBookAdd entries, replace
0x4B → client RecipeBookRemove recipeIds
0x4C → client RecipeBookSettings crafting, furnace, blast, smoker
0x4D → client RemoveEntities entityIds
0x4E → client RemoveMobEffect entityId, effectId
0x4F → client ResetScore entity_name, objective_name
0x50 → client ResourcePackPop uuid
0x51 → client ResourcePackPush uuid, url, hash, forced, promptMessage
0x52 → client Respawn worldState, copyMetadata
0x53 → client RotateHead entityId, headYaw
0x54 → client SectionBlocksUpdate chunkCoordinates, records
0x55 → client SelectAdvancementsTab id
0x56 → client ServerData motd, iconBytes
0x57 → client SetActionBarText text
0x58 → client SetBorderCenter x, z
0x59 → client SetBorderLerpSize oldDiameter, newDiameter, speed
0x5A → client SetBorderSize diameter
0x5B → client SetBorderWarningDelay warningTime
0x5C → client SetBorderWarningDistance warningBlocks
0x5D → client SetCamera cameraId
0x5E → client SetCenterChunk chunkX, chunkZ
0x5F → client SetChunkCacheRadius viewDistance
0x60 → client SetCursorItem contents
0x61 → client DefaultSpawnPosition dimension, position, yaw, pitch
0x62 → client SetDisplayObjective position, name
0x63 → client SetEntityData entityId, metadata
0x64 → client SetEntityLink entityId, vehicleId
0x65 → client SetEntityMotion entityId, velocity
0x66 → client SetEquipment entityId, equipments
0x67 → client SetExperience experienceBar, level, totalExperience
0x68 → client SetHealth health, food, foodSaturation
0x69 → client SetHeldSlot slot
0x6A → client SetObjective name, action, displayText, type, number_format, styling
0x6B → client SetPassengers entityId, passengers
0x6C → client SetPlayerInventory slotId, contents
0x6D → client SetPlayerTeam team, mode, displayName, prefix, suffix, nameTagVisibility, collisionRule, color, flags, players
0x6E → client SetScore itemName, scoreName, value, display_name, number_format, styling
0x6F → client SetSimulationDistance distance
0x70 → client SetSubtitleText text
0x71 → client SetTime gameTime, clockUpdates
0x72 → client SetTitleText text
0x73 → client SetTitlesAnimation fadeIn, stay, fadeOut
0x74 → client SoundEntity sound, soundCategory, entityId, volume, pitch, seed
0x75 → client Sound sound, soundCategory, x, y, z, volume, pitch, seed
0x76 → client StartConfiguration
0x77 → client StopSound flags, source, sound
0x78 → client StoreCookie key, value
0x79 → client SystemChat content, isActionBar
0x7A → client TabList header, footer
0x7B → client TagQuery transactionId, nbt
0x7C → client TakeItemEntity collectedEntityId, collectorEntityId, pickupItemCount
0x7D → client TeleportEntity entityId, x, y, z, velocityX, velocityY, velocityZ, yaw, pitch, flags, onGround
0x7E → client TestInstanceBlockStatus status, size
0x7F → client TickingState tick_rate, is_frozen
0x80 → client TickingStep tick_steps
0x81 → client Transfer host, port
0x82 → client UpdateAdvancements reset, advancementMapping, identifiers, progressMapping, showAdvancements
0x83 → client UpdateAttributes entityId, properties
0x84 → client UpdateMobEffect entityId, effectId, amplifier, duration, flags
0x85 → client UpdateRecipes recipes, stoneCutterRecipes
0x86 → client UpdateTags tags
0x87 → client ProjectilePower id, accelerationPower
0x88 → client CustomReportDetails details
0x89 → client ServerLinks links
0x8A → client Waypoint operation, waypoint
0x8B → client ClearDialog
0x8C → client ShowDialog dialog

Was this page helpful?