← Packet index

Packet 67

ClientboundMapItemDataPacket

Map item data including pixels, decorations, and creation info

Packet datagramWire order
HeaderID 67varuint
0Map IDActorUniqueID · variable
1Dimensionuint8 · 1 byte
2Is Lockedboolean · 1 byte
3Map OriginBlockPos · variable
4Creation Map IDsarray<ActorUniqueID> · variable
5Scaleint8 · 1 byte
6Tracked Actor IDsarray<MapItemTrackedActor UniqueId> · variable
7Decorationsarray<MapDecoration> · variable
8Widthvarint32 · variable (up to 5 bytes)
9Heightvarint32 · variable (up to 5 bytes)
10Start Xvarint32 · variable (up to 5 bytes)
11Start Yvarint32 · variable (up to 5 bytes)
12Pixelsarray<uint32> · variable

Serialized fields

13 top-level fields
  1. 0Map IDActorUniqueID
    1. 0Actor Unique IDCompressionvarint64
  2. 1Dimensionuint8
  3. 2Is Lockedboolean
  4. 3Map OriginBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  5. 4Creation Map IDsoptionalMap IDs for newly created maps. Present only for Creation updates.ActorUniqueIDas array<ActorUniqueID>
    1. 0Actor Unique IDCompressionvarint64
  6. 5ScaleoptionalMap scale. Present whenever any of Creation, DecorationUpdate or TextureUpdate is set.int8
  7. 6Tracked Actor IDsoptionalUnique IDs of tracked actors paired with the Decorations list. Present only for DecorationUpdate.MapItemTrackedActor UniqueIdas array<MapItemTrackedActor UniqueId>
    1. 0TypeDiscriminator for the optional Entity ID / Block Position payload.Enum-as-ValueMapItemTrackedActor Typeas int32
      1. 0Entity
      2. 1BlockEntity
      3. 2Other
    2. 1Entity IDoptionalTracked entity's unique ID. Present only when Type is Entity.ActorUniqueID
      1. 0Actor Unique IDCompressionvarint64
    3. 2Block PositionoptionalTracked block entity position. Present only when Type is BlockEntity.BlockPos
      1. 0XCompressionvarint32
      2. 1YCompressionvarint32
      3. 2ZCompressionvarint32
  8. 7DecorationsoptionalMap decorations paired with Tracked Actor IDs. Present only for DecorationUpdate.MapDecorationas array<MapDecoration>
    1. 0Image TypeEnum-as-ValueMapDecoration::Typeas int8
      1. 0MarkerWhite
      2. 1MarkerGreen
      3. 2MarkerRed
      4. 3MarkerBlue
      5. 4XWhite
      6. 5TriangleRed
      7. 6SquareWhite
      8. 7MarkerSign
      9. 8MarkerPink
      10. 9MarkerOrange
      11. 10MarkerYellow
      12. 11MarkerTeal
      13. 12TriangleGreen
      14. 13SmallSquareWhite
      15. 14Mansion
      16. 15Monument
      17. 16NoDraw
      18. 17VillageDesert
      19. 18VillagePlains
      20. 19VillageSavanna
      21. 20VillageSnowy
      22. 21VillageTaiga
      23. 22JungleTemple
      24. 23WitchHut
      25. 24TrialChambers
      26. 25AbandonedCamp
      27. 26BuriedAncientCity
      28. 27BuriedMineshaft
      29. 28DesertPyramid
      30. 29WarmOceanRuins
      31. 30Count
    2. 1Rotationuint8
    3. 4Labelstring
    4. 5ColorColor
      1. 0Colorint32
  9. 8WidthoptionalWidth of the updated pixel region. Present only for TextureUpdate.Compressionvarint32
  10. 9HeightoptionalHeight of the updated pixel region. Present only for TextureUpdate.Compressionvarint32
  11. 10Start XoptionalX-coordinate of the updated pixel region. Present only for TextureUpdate.Compressionvarint32
  12. 11Start YoptionalY-coordinate of the updated pixel region. Present only for TextureUpdate.Compressionvarint32
  13. 12PixelsoptionalARGB pixel data for the updated region. Present only for TextureUpdate.array<uint32>

Changelog

Stable releases

Changes between stable protocol releases.

Released
Protocol
2193

Packet

1 entry

Changed 1

ClientboundMapItemDataPacket6 changes · ID 67