← Packet index

Packet 12

AddPlayerPacket

A new player joins the game; the server sends this packet to the other players.

Packet datagramWire order
HeaderID 12varuint
0UUIDmce::UUID · variable
1Player Namestring · variable
2Target Runtime IDActorRuntimeID · variable
3Platform Chat Idstring · variable
4PositionVec3 · variable
5VelocityVec3 · variable
6RotationVec2 · variable
7Y-Head Rotationfloat · 4 bytes
8Carried ItemNetworkItemStackDescriptor · variable
9Player Game Typevarint32 · variable (up to 5 bytes)
10Entity DataSynchedActorDataList · variable
11Synched PropertiesPropertySyncData · variable
12Abilities DataSerializedAbilitiesData · variable
13Actor Linksarray<ActorLink> · variable
14Device Idstring · variable
15Build Platformint32 · 4 bytes

Serialized fields

16 top-level fields
  1. 0UUIDmce::UUID
    1. 0Most Significant Bitsuint64
    2. 1Least Significant Bitsuint64
  2. 1Player Namestring
  3. 2Target Runtime IDActorRuntimeID
    1. 0Actor Runtime IDCompressionvaruint64
  4. 3Platform Chat Idstring
  5. 4PositionVec3
  6. 5VelocityVec3
  7. 6RotationVec2
  8. 7Y-Head Rotationfloat
  9. 9Player Game TypeCompressionEnum-as-ValueGameTypeas varint32
    1. 0Undefined
    2. 1Survival
    3. 2Creative
    4. 3Adventure
    5. 4Default
    6. 5Spectator
    7. 6WorldDefault
  10. 10Entity DataSynchedActorDataList
    1. 0DataDataItemEntryas array<DataItemEntry>
      1. 0IDCompressionvaruint32
      2. 1PayloadoneOf<DataItemBytePayload, DataItemShortPayload, DataItemIntPayload, DataItemFloatPayload, DataItemStringPayload, DataItemCompoundTagPayload, DataItemPosPayload, DataItemInt64Payload, DataItemVec3Payload>
        0DataItemBytePayloadDataItemBytePayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1Valueint8
        1DataItemShortPayloadDataItemShortPayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1Valueint16
        2DataItemIntPayloadDataItemIntPayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1ValueCompressionvarint32
        3DataItemFloatPayloadDataItemFloatPayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1Valuefloat
        4DataItemStringPayloadDataItemStringPayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1Valuestring
        5DataItemCompoundTagPayloadDataItemCompoundTagPayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1Valueunknown
        6DataItemPosPayloadDataItemPosPayload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1ValueBlockPos
          1. 0XCompressionvarint32
          2. 1YCompressionvarint32
          3. 2ZCompressionvarint32
        7DataItemInt64PayloadDataItemInt64Payload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1ValueCompressionvarint64
        8DataItemVec3PayloadDataItemVec3Payload
        1. 0TypeEnum-as-ValueDataItemTypeas uint8
          1. 0Byte
          2. 1Short
          3. 2Int
          4. 3Float
          5. 4String
          6. 5CompoundTag
          7. 6Pos
          8. 7Int64
          9. 8Vec3
        2. 1ValueVec3
  11. 11Synched PropertiesPropertySyncData
    1. 0Int Entries ListPropertySyncData::PropertySyncIntEntryas array<PropertySyncData::PropertySyncIntEntry>
      1. 0Property IndexCompressionvaruint32
      2. 1DataCompressionvarint32
    2. 1Float Entries ListPropertySyncData::PropertySyncFloatEntryas array<PropertySyncData::PropertySyncFloatEntry>
      1. 0Property IndexCompressionvaruint32
      2. 1Datafloat
  12. 12Abilities DataSerializedAbilitiesData
    1. 0Target Player Raw Idint64
    2. 1Player PermissionsEnum-as-ValuePlayerPermissionLevelas int8
      1. 0Visitor
      2. 1Member
      3. 2Operator
      4. 3Custom
    3. 2Command PermissionsEnum-as-ValueCommandPermissionLevelas uint8
      1. 0Any
      2. 1GameDirectors
      3. 2Admin
      4. 3Host
      5. 4Owner
      6. 5Internal
    4. 3LayersSerializedAbilitiesDataSerializedLayeras array<SerializedAbilitiesDataSerializedLayer>
      1. 0SerializedLayeruint16
      2. 1AbilitiesSetuint32
      3. 2AbilityValuesuint32
      4. 3FlySpeedfloat
      5. 4VerticalFlySpeedfloat
      6. 5WalkSpeedfloat
  13. 13Actor LinksActorLinkas array<ActorLink>
    1. 0Target AActorUniqueID
      1. 0Actor Unique IDCompressionvarint64
    2. 1Target BActorUniqueID
      1. 0Actor Unique IDCompressionvarint64
    3. 2TypeEnum-as-ValueActorLinkTypeas uint8
      1. 0None
      2. 1Riding
      3. 2Passenger
    4. 3Immediateboolean
    5. 4Passenger Initiatedboolean
    6. 5Vehicle Angular Velocityfloat
  14. 14Device Idstring
  15. 15Build PlatformEnum-as-ValueBuildPlatformas int32
    1. 0Google
    2. 1iOS
    3. 2OSX
    4. 3Amazon
    5. 4Win32
    6. 5Dedicated
    7. 6Sony
    8. 7Nx
    9. 8Xbox
    10. 9Linux
    11. 10Unknown

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.