mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-11-06 21:45:34 +00:00
88 lines
2.6 KiB
JSON
88 lines
2.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "2148583626",
|
|
"x-format-version": "MISSING VERSION",
|
|
"x-minecraft-version": "1.21.120",
|
|
"x-protocol-version": 859,
|
|
"definitions": {
|
|
"641620634": {
|
|
"title": "GameRulesChangedPacketData",
|
|
"type": "object",
|
|
"properties": {
|
|
"Rules List": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/238291841"
|
|
},
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Rules List"
|
|
]
|
|
},
|
|
"4041078967": {
|
|
"title": "GameRulesChangedPacketPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Rule Data": {
|
|
"$ref": "#/definitions/641620634",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Rule Data"
|
|
]
|
|
},
|
|
"238291841": {
|
|
"title": "GameRule",
|
|
"type": "object",
|
|
"properties": {
|
|
"Rule Can Be Modified": {
|
|
"type": "boolean",
|
|
"x-ordinal-index": 1
|
|
},
|
|
"Rule Name": {
|
|
"type": "string",
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Rule Value": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"x-underlying-type": "int32"
|
|
},
|
|
{
|
|
"type": "number",
|
|
"x-underlying-type": "float"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"Rule Can Be Modified",
|
|
"Rule Name",
|
|
"Rule Value"
|
|
]
|
|
}
|
|
},
|
|
"title": "GameRulesChangedPacket",
|
|
"description": "Updates game rules.",
|
|
"type": "object",
|
|
"properties": {
|
|
"mPayload": {
|
|
"$ref": "#/definitions/4041078967",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"$metaProperties": {
|
|
"[cereal:packet]": 72,
|
|
"[cereal:packet_details]": "Informs client about any changes to the game rules."
|
|
}
|
|
} |