Skip to content

Instantly share code, notes, and snippets.

@Bigjango13
Forked from shoghicp/0.6.1.txt
Last active May 13, 2023 23:00
Show Gist options
  • Save Bigjango13/e4e31caf9f80e41908d867fd71fc98da to your computer and use it in GitHub Desktop.
Save Bigjango13/e4e31caf9f80e41908d867fd71fc98da to your computer and use it in GitHub Desktop.
Minecraft: Pocket Edition 0.6.1 protocol
[C ==> S] 0x82 LoginPacket (username: string, protocol_one: i32, protocol_two: i32)
[C <== S] 0x83 LoginStatusPacket (status: i32)
[C ==> S] 0x84 ReadyPacket (status: u8)
[C <== S] 0x85 MessagePacket (message: string)
[C <== S] 0x86 SetTimePacket (time: u64)
[C <== S] 0x87 StartGamePacket (seed: u64, unknown: i32, gamemode: i32, entity id: i32, x: f32, y: f32, z: f32)
[C <== S] 0x88 AddMobPacket (entity id: i32, type: i32, x: f32, y: f32, z: f32, pitch: i8, yaw: i8, metadata: Metadata)
[C <== S] 0x89 AddPlayerPacket (guid: u64, name: string, entity id: i32, x: f32, y: f32, z: f32, pitch: i8, yaw: i8, held item id: i16, held item meta: i16, metadata: Metadata)
[C <== S] 0x8A RemovePlayerPacket (entity id: i32, guid: GUID)
[C <== S] 0x8D RemoveEntityPacket (entity id: i32)
[C ==> S] 0x9D RequestChunkPacket (x: i32, y: i32)
[C <== S] 0x9E ChunkDataPacket (x: i32, z: i32, chunk: Chunk)
[C <=> S] 0x9F PlayerEquipmentPacket (entity id: i32, item id: u16, data: u16)
[C <=> S] 0xA0 PlayerArmorEquipmentPacket (entity id: i32, head: u8, body: u8, legs: u8, feet: u8)
[C <=> S] 0xAA AnimatePacket (action: u8, entity id: i32)
[C <== S] 0xA5 HurtArmorPacket (amount: i8)
[C <=> S] 0xA8 SetHealthPacket (health: u8)
[C <== S] 0xB4 ChatPacket (message: string)
# Not done (https://wiki.vg/Pocket_Minecraft_Protocol)
[C <== S] 0x8C AddEntityPacket (i32, u8, f32, f32, f32, i32, i16, i16, i16)
[C <== S] 0x8E AddItemEntityPacket (i32, i16, u8, i16, f32, f32, f32, i8, i8, i8)
[C <== S] 0x8F TakeItemEntityPacket (i32, i32)
[C <== S] 0x90 MoveEntityPacket ()
[C ??? S] 0x93 MoveEntityPacket_PosRot (i32, f32, f32, f32, f32, f32)
[C <=> S] 0x94 MovePlayerPacket (i32, f32, f32, f32, f32, f32)
[C ??? S] 0x95 PlaceBlockPacket (i32, i32, i32, u8, u8, u8, u8)
[C ==> S] 0x96 RemoveBlockPacket (i32, i32, i32, u8)
[C <== S] 0x97 UpdateBlockPacket (i32, i32, u8, u8, u8)
[C <== S] 0x98 AddPaintingPacket (i32, i32, i32, i32, i32, string)
[C <== S] 0x99 ExplodePacket (f32, f32, f32, f32, i32, i8, i8, i8)
[C <== S] 0x9A LevelEventPacket (i16, i16, i16, i16, i32)
[C <== S] 0x9B TileEventPacket (i32, i32, i32, i32, i32)
[C <=> S] 0x9C EntityEventPacket (i32, u8)
[C <=> S] 0xA1 InteractPacket (u8, i32, i32)
[C <=> S] 0xA2 UseItemPacket (i32, i32, i32, i32, u16, u8, i32, f32, f32, f32)
[C ==> S] 0xA3 PlayerActionPacket (i32, i32, i32, i32, i32, i32)
[C <== S] 0xA6 SetEntityDataPacket (i32, metadata: Metadata)
[C <== S] 0xA7 SetEntityMotionPacket (i32, i16, i16, i16)
[C <== S] 0xA9 SetSpawnPositionPacket (i32, i32, u8)
[C <=> S] 0xAB RespawnPacket (i32, f32, f32, f32)
[C ==> S] 0xAC SendInventoryPacket (i32, u8, u16, Item, Item)
[C ==> S] 0xAD DropItemPacket (i32, u8, Item)
[C <== S] 0xAE ContainerOpenPacket (u8, u8, u8, string)
[C <=> S] 0xAF ContainerClosePacket (u8)
[C <=> S] 0xB0 ContainerSetSlotPacket (u8, u16, Item)
[C <== S] 0xB1 ContainerSetDataPacket (u8, i16, i16)
[C <== S] 0xB2 ContainerSetContentPacket (u8, i16, Item)
[C ??? S] 0xB3 ContainerAckPacket (u8, i16, Write1, Write0)
[C <=> S] 0xB5 SignUpdatePacket (i16, u8, i16, string)
[C <== S] 0xB6 AdventureSettingsPacket (u32)
# For Blocks: https://mcpirevival.miraheze.org/wiki/Minecraft:_Pi_Edition_Complete_Block_List
# For Items: https://mcpirevival.miraheze.org/wiki/Minecraft:_Pi_Edition_Complete_Item_List
# For Mobs/Entitys: https://mcpirevival.miraheze.org/wiki/Minecraft:_Pi_Edition_Complete_Entity_List
# 4 identified TileEntities:
FurnaceTileEntity
ChestTileEntity
SignTileEntity
NetherReactorTileEntity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment