1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-06 14:45:14 +00:00
Files
bedrock-protocol-docs/json/SetSpawnPositionPacket.json

112 lines
3.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "323203397",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"2098549906": {
"title": "SetSpawnPositionPacketPayload",
"type": "object",
"properties": {
"Block Position": {
"$ref": "#/definitions/269289973",
"x-ordinal-index": 1
},
"Dimension type": {
"$ref": "#/definitions/2872336518",
"x-ordinal-index": 2
},
"Spawn Block Pos": {
"$ref": "#/definitions/269289973",
"x-ordinal-index": 3
},
"Spawn Position Type": {
"title": "SpawnPositionType",
"type": "string",
"enum": [
"PlayerRespawn",
"WorldSpawn"
],
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression",
"EnumAsValue"
],
"x-ordinal-index": 0
}
},
"required": [
"Block Position",
"Dimension type",
"Spawn Block Pos",
"Spawn Position Type"
]
},
"2872336518": {
"title": "DimensionType",
"type": "object",
"properties": {
"value": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
}
},
"required": [
"value"
]
},
"269289973": {
"title": "NetworkBlockPosition",
"type": "object",
"properties": {
"X": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
},
"Y": {
"type": "integer",
"x-underlying-type": "uint32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 1
},
"Z": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 2
}
},
"required": [
"X",
"Y",
"Z"
]
}
},
"title": "SetSpawnPositionPacket",
"description": "When a player logs in or the SetWorldSpawnCommand is used this is sent from the server to the client. Does not change when using a bed, that is a separate packet (RespawnPacket)",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/2098549906",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 43,
"[cereal:packet_details]": "see RespawnPacket"
}
}