MCBE
OverviewPacketsGameRulesChanged
ID 0x48 · 72Server → ClientGameplay

GameRulesChanged

Informs client about any changes to the game rules.

game-rules-changed.bin
struct GameRulesChanged {
  GameRulesChangedPacketData                   RuleData;
}

Structure

FieldTypeDescription
Rule DataGameRulesChangedPacketData

Structure of GameRulesChangedPacketData

FieldTypeDescription
Rulesvaruint32 count + GameRule[]Length-prefixed sequence.

Structure of GameRule

FieldTypeDescription
Namestring
Can Be Modified By Playerbool
Valuetagged case index (0=None, 1=bool, 2=int32, 3=float32)Variant: an index selects the payload type — see the tables below.

Notes

  • No special notes.