MCBE
OverviewPacketsSetScore
ID 0x6C · 108Server → ClientUI

SetScore

Sets the scoreboard which is used for 3rd party content.

set-score.bin
struct SetScore {
  varuint32 [] · RemoveScore | ChangePlayerScore | ChangeEntityScore | ChangeFakePlayerScore[] ScoreInfo;
}

Structure

FieldTypeDescription
Score Infovaruint32 count + RemoveScore | ChangePlayerScore | ChangeEntityScore | ChangeFakePlayerScore[]Length-prefixed sequence.

Structure of RemoveScore

FieldTypeDescription
Actionconstant 'remove'Fixed tag written on the wire.
Scoreboard IdScoreboardId
Objective Nameoptional byte + stringPresence flag on the wire; value omitted when absent.

Structure of ChangePlayerScore

FieldTypeDescription
Actionconstant 'changeplayer'Fixed tag written on the wire.
Scoreboard IdScoreboardId
Objective Namestring
Score Valueint32 (LE)
Player IdPlayerScoreboardId

Structure of ChangeEntityScore

FieldTypeDescription
Actionconstant 'changeentity'Fixed tag written on the wire.
Scoreboard IdScoreboardId
Objective Namestring
Score Valueint32 (LE)
Entity IdActorUniqueID

Structure of ChangeFakePlayerScore

FieldTypeDescription
Actionconstant 'changefakeplayer'Fixed tag written on the wire.
Scoreboard IdScoreboardId
Objective Namestring
Score Valueint32 (LE)
Fake Player Namestring

Structure of ScoreboardId

FieldTypeDescription
Raw Idvarint64

Structure of PlayerScoreboardId

FieldTypeDescription
Actor Unique Idvarint64

Notes

  • No special notes.