Last active
August 29, 2015 14:26
-
-
Save rom1504/1b432d5e7efc278015dd to your computer and use it in GitHub Desktop.
Protocol automatically extracted from wiki.vg/Protocol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "handshaking": { | |
| "toServer": { | |
| "handshake": { | |
| "id": "0x00", | |
| "fields": [ | |
| { | |
| "name": "protocolVersion", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "serverAddress", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "serverPort", | |
| "type": "ushort" | |
| }, | |
| { | |
| "name": "nextState", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "legacy_server_list_ping": { | |
| "id": "0xfe", | |
| "fields": [ | |
| { | |
| "name": "payload", | |
| "type": "ubyte" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "status": { | |
| "toClient": { | |
| "response": { | |
| "id": "0x00", | |
| "fields": [ | |
| { | |
| "name": "jsonResponse", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "pong": { | |
| "id": "0x01", | |
| "fields": [ | |
| { | |
| "name": "payload", | |
| "type": "long" | |
| } | |
| ] | |
| } | |
| }, | |
| "toServer": { | |
| "request": { | |
| "id": "", | |
| "fields": [ | |
| { | |
| "name": "status", | |
| "type": "server" | |
| } | |
| ] | |
| }, | |
| "ping": { | |
| "id": "0x01", | |
| "fields": [ | |
| { | |
| "name": "payload", | |
| "type": "long" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "login": { | |
| "toClient": { | |
| "disconnect": { | |
| "id": "0x00", | |
| "fields": [ | |
| { | |
| "name": "reason", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "encryption_request": { | |
| "id": "0x01", | |
| "fields": [ | |
| { | |
| "name": "serverId", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "publicKeyLength", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "publicKey", | |
| "type": "byte array" | |
| }, | |
| { | |
| "name": "verifyTokenLength", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "verifyToken", | |
| "type": "byte array" | |
| } | |
| ] | |
| }, | |
| "login_success": { | |
| "id": "0x02", | |
| "fields": [ | |
| { | |
| "name": "uuid", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "username", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "set_compression": { | |
| "id": "0x03", | |
| "fields": [ | |
| { | |
| "name": "threshold", | |
| "type": "varint" | |
| } | |
| ] | |
| } | |
| }, | |
| "toServer": { | |
| "login_start": { | |
| "id": "0x00", | |
| "fields": [ | |
| { | |
| "name": "name", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "encryption_response": { | |
| "id": "0x01", | |
| "fields": [ | |
| { | |
| "name": "sharedSecretLength", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "sharedSecret", | |
| "type": "byte array" | |
| }, | |
| { | |
| "name": "verifyTokenLength", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "verifyToken", | |
| "type": "byte array" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "play": { | |
| "toClient": { | |
| "keep_alive": { | |
| "id": "0x00", | |
| "fields": [ | |
| { | |
| "name": "keepAliveId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "join_game": { | |
| "id": "0x01", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "gamemode", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "dimension", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "difficulty", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "maxPlayers", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "levelType", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "reducedDebugInfo", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "chat_message": { | |
| "id": "0x02", | |
| "fields": [ | |
| { | |
| "name": "jsonData", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "position", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "time_update": { | |
| "id": "0x03", | |
| "fields": [ | |
| { | |
| "name": "worldAge", | |
| "type": "long" | |
| }, | |
| { | |
| "name": "timeOfDay", | |
| "type": "long" | |
| } | |
| ] | |
| }, | |
| "entity_equipment": { | |
| "id": "0x04", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "slot", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "item", | |
| "type": "slot" | |
| } | |
| ] | |
| }, | |
| "spawn_position": { | |
| "id": "0x05", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| } | |
| ] | |
| }, | |
| "update_health": { | |
| "id": "0x06", | |
| "fields": [ | |
| { | |
| "name": "health", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "food", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "foodSaturation", | |
| "type": "float" | |
| } | |
| ] | |
| }, | |
| "respawn": { | |
| "id": "0x07", | |
| "fields": [ | |
| { | |
| "name": "dimension", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "difficulty", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "gamemode", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "levelType", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "player_position_and_look": { | |
| "id": "0x08", | |
| "fields": [ | |
| { | |
| "name": "x", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "flags", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "held_item_change": { | |
| "id": "0x09", | |
| "fields": [ | |
| { | |
| "name": "slot", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "use_bed": { | |
| "id": "0x0a", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "location", | |
| "type": "position" | |
| } | |
| ] | |
| }, | |
| "animation": { | |
| "id": "0x0b", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "animation", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "spawn_player": { | |
| "id": "0x0c", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "playerUuid", | |
| "type": "UUID" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "currentItem", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "metadata", | |
| "type": "entityMetadata" | |
| } | |
| ] | |
| }, | |
| "collect_item": { | |
| "id": "0x0d", | |
| "fields": [ | |
| { | |
| "name": "collectedEntityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "collectorEntityId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "spawn_object": { | |
| "id": "0x0e", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "type", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "data", | |
| "type": "[[object data]]" | |
| } | |
| ] | |
| }, | |
| "spawn_mob": { | |
| "id": "rowspan=\"12\"| 0x0f", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "type", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "headPitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "velocityX", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "velocityY", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "velocityZ", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "metadata", | |
| "type": "entityMetadata" | |
| } | |
| ] | |
| }, | |
| "spawn_painting": { | |
| "id": "0x10", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "title", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "direction", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "spawn_experience_orb": { | |
| "id": "0x11", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "count", | |
| "type": "short" | |
| } | |
| ] | |
| }, | |
| "entity_velocity": { | |
| "id": "0x12", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "velocityX", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "velocityY", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "velocityZ", | |
| "type": "short" | |
| } | |
| ] | |
| }, | |
| "destroy_entities": { | |
| "id": "0x13", | |
| "fields": [ | |
| { | |
| "name": "count", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "entityIds", | |
| "type": "array of varint" | |
| } | |
| ] | |
| }, | |
| "entity": { | |
| "id": "0x14", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "entity_relative_move": { | |
| "id": "0x15", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "deltaX", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "deltaY", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "deltaZ", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "entity_look": { | |
| "id": "0x16", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "entity_look_and_relative_move": { | |
| "id": "0x17", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "deltaX", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "deltaY", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "deltaZ", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "entity_teleport": { | |
| "id": "0x18", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "entity_head_look": { | |
| "id": "0x19", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "headYaw", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "entity_status": { | |
| "id": "0x1a", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "entityStatus", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "attach_entity": { | |
| "id": "0x1b", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "vehicleId", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "leash", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "entity_metadata": { | |
| "id": "0x1c", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "metadata", | |
| "type": "entityMetadata" | |
| } | |
| ] | |
| }, | |
| "entity_effect": { | |
| "id": "0x1d", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "effectId", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "amplifier", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "duration", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "hideParticles", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "remove_entity_effect": { | |
| "id": "0x1e", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "effectId", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "set_experience": { | |
| "id": "0x1f", | |
| "fields": [ | |
| { | |
| "name": "experienceBar", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "level", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "totalExperience", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "entity_properties": { | |
| "id": "0x20", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "chunk_data": { | |
| "id": "0x21", | |
| "fields": [ | |
| { | |
| "name": "chunkX", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "chunkZ", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "ground-upContinuous", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "primaryBitMask", | |
| "type": "ushort" | |
| }, | |
| { | |
| "name": "size", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "data", | |
| "type": "[[smp map format#data|chunk]]" | |
| } | |
| ] | |
| }, | |
| "multi_block_change": { | |
| "id": "0x22", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "block_change": { | |
| "id": "0x23", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "blockId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "block_action": { | |
| "id": "0x24", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "byte1", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "byte2", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "blockType", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "block_break_animation": { | |
| "id": "0x25", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "destroyStage", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "map_chunk_bulk": { | |
| "id": "0x26", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "explosion": { | |
| "id": "0x27", | |
| "fields": [ | |
| { | |
| "name": "x", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "radius", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "recordCount", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "records", | |
| "type": "array of (byte, byte, byte)" | |
| }, | |
| { | |
| "name": "playerMotionX", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "playerMotionY", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "playerMotionZ", | |
| "type": "float" | |
| } | |
| ] | |
| }, | |
| "effect": { | |
| "id": "0x28", | |
| "fields": [ | |
| { | |
| "name": "effectId", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "data", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "disableRelativeVolume", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "sound_effect": { | |
| "id": "0x29", | |
| "fields": [ | |
| { | |
| "name": "soundName", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "effectPositionX", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "effectPositionY", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "effectPositionZ", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "volume", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "particle": { | |
| "id": "rowspan=\"11\"| 0x2a", | |
| "fields": [ | |
| { | |
| "name": "particleId", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "longDistance", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "offsetX", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "offsetY", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "offsetZ", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "particleData", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "particleCount", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "data", | |
| "type": "array of varint" | |
| } | |
| ] | |
| }, | |
| "change_game_state": { | |
| "id": "0x2b", | |
| "fields": [ | |
| { | |
| "name": "reason", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "value", | |
| "type": "float" | |
| } | |
| ] | |
| }, | |
| "spawn_global_entity": { | |
| "id": "0x2c", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "type", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "x", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "y", | |
| "type": "int" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "int" | |
| } | |
| ] | |
| }, | |
| "open_window": { | |
| "id": "0x2d", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "windowType", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "windowTitle", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "numberOfSlots", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "entityId", | |
| "type": "optional int" | |
| } | |
| ] | |
| }, | |
| "close_window": { | |
| "id": "0x2e", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "set_slot": { | |
| "id": "0x2f", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "slot", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "slotData", | |
| "type": "slot" | |
| } | |
| ] | |
| }, | |
| "window_items": { | |
| "id": "0x30", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "count", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "slotData", | |
| "type": "slot" | |
| } | |
| ] | |
| }, | |
| "window_property": { | |
| "id": "0x31", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "property", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "value", | |
| "type": "short" | |
| } | |
| ] | |
| }, | |
| "confirm_transaction": { | |
| "id": "0x32", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "actionNumber", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "accepted", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "update_sign": { | |
| "id": "0x33", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "line1", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "line2", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "line3", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "line4", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "maps": { | |
| "id": "rowspan=\"12\"| 0x34", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "update_block_entity": { | |
| "id": "0x35", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "action", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "nbtData", | |
| "type": "restBuffer" | |
| } | |
| ] | |
| }, | |
| "sign_editor_open": { | |
| "id": "0x36", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| } | |
| ] | |
| }, | |
| "statistics": { | |
| "id": "0x37", | |
| "fields": [ | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "player_list_item": { | |
| "id": "rowspan=\"19\"| 0x38", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "player_abilities": { | |
| "id": "0x39", | |
| "fields": [ | |
| { | |
| "name": "flags", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "flyingSpeed", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "walkingSpeed", | |
| "type": "float" | |
| } | |
| ] | |
| }, | |
| "tab-complete": { | |
| "id": "0x3a", | |
| "fields": [ | |
| { | |
| "name": "count", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "matches", | |
| "type": "array of string" | |
| } | |
| ] | |
| }, | |
| "scoreboard_objective": { | |
| "id": "0x3b", | |
| "fields": [ | |
| { | |
| "name": "objectiveName", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "mode", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "objectiveValue", | |
| "type": "optional string" | |
| }, | |
| { | |
| "name": "type", | |
| "type": "optional string" | |
| } | |
| ] | |
| }, | |
| "update_score": { | |
| "id": "0x3c", | |
| "fields": [ | |
| { | |
| "name": "scoreName", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "action", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "objectiveName", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "value", | |
| "type": "optional varint" | |
| } | |
| ] | |
| }, | |
| "display_scoreboard": { | |
| "id": "0x3d", | |
| "fields": [ | |
| { | |
| "name": "position", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "scoreName", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "teams": { | |
| "id": "rowspan=\"10\"| 0x3e", | |
| "fields": [ | |
| { | |
| "name": "teamName", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "", | |
| "type": "1 then the team is removed." | |
| }, | |
| { | |
| "name": "teamDisplayName", | |
| "type": "optional string" | |
| }, | |
| { | |
| "name": "teamPrefix", | |
| "type": "optional string" | |
| }, | |
| { | |
| "name": "teamSuffix", | |
| "type": "optional string" | |
| }, | |
| { | |
| "name": "friendlyFire", | |
| "type": "optional byte" | |
| }, | |
| { | |
| "name": "nameTagVisibility", | |
| "type": "optional string" | |
| }, | |
| { | |
| "name": "color", | |
| "type": "optional byte" | |
| }, | |
| { | |
| "name": "playerCount", | |
| "type": "optional varint" | |
| }, | |
| { | |
| "name": "players", | |
| "type": "optional array of string" | |
| } | |
| ] | |
| }, | |
| "plugin_message": { | |
| "id": "0x3f", | |
| "fields": [ | |
| { | |
| "name": "channel", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "data", | |
| "type": "byte array" | |
| } | |
| ] | |
| }, | |
| "disconnect": { | |
| "id": "0x40", | |
| "fields": [ | |
| { | |
| "name": "reason", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "server_difficulty": { | |
| "id": "0x41", | |
| "fields": [ | |
| { | |
| "name": "difficulty", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "combat_event": { | |
| "id": "0x42", | |
| "fields": [ | |
| { | |
| "name": "event", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "duration", | |
| "type": "optional varint" | |
| }, | |
| { | |
| "name": "playerId", | |
| "type": "optional varint" | |
| }, | |
| { | |
| "name": "entityId", | |
| "type": "optional int" | |
| }, | |
| { | |
| "name": "message", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "camera": { | |
| "id": "0x43", | |
| "fields": [ | |
| { | |
| "name": "cameraId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "world_border": { | |
| "id": "rowspan=\"18\"| 0x44", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "title": { | |
| "id": "0x45", | |
| "fields": [ | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| }, | |
| "set_compression": { | |
| "id": "0x46", | |
| "fields": [ | |
| { | |
| "name": "threshold", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "player_list_header/footer": { | |
| "id": "0x47", | |
| "fields": [ | |
| { | |
| "name": "header", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "footer", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "resource_pack_send": { | |
| "id": "0x48", | |
| "fields": [ | |
| { | |
| "name": "url", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "hash", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "update_entity_nbt": { | |
| "id": "0x49", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "tag", | |
| "type": "restBuffer" | |
| } | |
| ] | |
| } | |
| }, | |
| "toServer": { | |
| "keep_alive": { | |
| "id": "0x00", | |
| "fields": [ | |
| { | |
| "name": "keepAliveId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "chat_message": { | |
| "id": "0x01", | |
| "fields": [ | |
| { | |
| "name": "message", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "use_entity": { | |
| "id": "0x02", | |
| "fields": [ | |
| { | |
| "name": "target", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "type", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "targetX", | |
| "type": "optional float" | |
| }, | |
| { | |
| "name": "targetY", | |
| "type": "optional float" | |
| }, | |
| { | |
| "name": "targetZ", | |
| "type": "optional float" | |
| } | |
| ] | |
| }, | |
| "player": { | |
| "id": "0x03", | |
| "fields": [ | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "player_position": { | |
| "id": "0x04", | |
| "fields": [ | |
| { | |
| "name": "x", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "feetY", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "player_look": { | |
| "id": "0x05", | |
| "fields": [ | |
| { | |
| "name": "yaw", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "player_position_and_look": { | |
| "id": "0x06", | |
| "fields": [ | |
| { | |
| "name": "x", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "feetY", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "z", | |
| "type": "double" | |
| }, | |
| { | |
| "name": "yaw", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "pitch", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "onGround", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "player_digging": { | |
| "id": "0x07", | |
| "fields": [ | |
| { | |
| "name": "status", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "face", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "player_block_placement": null, | |
| "held_item_change": { | |
| "id": "0x09", | |
| "fields": [ | |
| { | |
| "name": "slot", | |
| "type": "short" | |
| } | |
| ] | |
| }, | |
| "animation": { | |
| "id": "", | |
| "fields": [ | |
| { | |
| "name": "play", | |
| "type": "server" | |
| } | |
| ] | |
| }, | |
| "entity_action": { | |
| "id": "0x0b", | |
| "fields": [ | |
| { | |
| "name": "entityId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "actionId", | |
| "type": "varint" | |
| }, | |
| { | |
| "name": "jumpBoost", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "steer_vehicle": { | |
| "id": "0x0c", | |
| "fields": [ | |
| { | |
| "name": "sideways", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "forward", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "flags", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "close_window": { | |
| "id": "0x0d", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "click_window": { | |
| "id": "0x0e", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "ubyte" | |
| }, | |
| { | |
| "name": "slot", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "button", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "actionNumber", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "mode", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "clickedItem", | |
| "type": "slot" | |
| } | |
| ] | |
| }, | |
| "confirm_transaction": { | |
| "id": "0x0f", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "actionNumber", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "accepted", | |
| "type": "bool" | |
| } | |
| ] | |
| }, | |
| "creative_inventory_action": { | |
| "id": "0x10", | |
| "fields": [ | |
| { | |
| "name": "slot", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "clickedItem", | |
| "type": "slot" | |
| } | |
| ] | |
| }, | |
| "enchant_item": { | |
| "id": "0x11", | |
| "fields": [ | |
| { | |
| "name": "windowId", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "enchantment", | |
| "type": "byte" | |
| } | |
| ] | |
| }, | |
| "update_sign": { | |
| "id": "0x12", | |
| "fields": [ | |
| { | |
| "name": "location", | |
| "type": "position" | |
| }, | |
| { | |
| "name": "line1", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "line2", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "line3", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "line4", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "player_abilities": { | |
| "id": "0x13", | |
| "fields": [ | |
| { | |
| "name": "flags", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "flyingSpeed", | |
| "type": "float" | |
| }, | |
| { | |
| "name": "walkingSpeed", | |
| "type": "float" | |
| } | |
| ] | |
| }, | |
| "tab-complete": { | |
| "id": "0x14", | |
| "fields": [ | |
| { | |
| "name": "text", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "hasPosition", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "lookedAtBlock", | |
| "type": "optional position" | |
| } | |
| ] | |
| }, | |
| "client_settings": { | |
| "id": "0x15", | |
| "fields": [ | |
| { | |
| "name": "locale", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "viewDistance", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "chatMode", | |
| "type": "byte" | |
| }, | |
| { | |
| "name": "chatColors", | |
| "type": "bool" | |
| }, | |
| { | |
| "name": "displayedSkinParts", | |
| "type": "ubyte" | |
| } | |
| ] | |
| }, | |
| "client_status": { | |
| "id": "0x16", | |
| "fields": [ | |
| { | |
| "name": "actionId", | |
| "type": "varint" | |
| } | |
| ] | |
| }, | |
| "plugin_message": { | |
| "id": "0x17", | |
| "fields": [ | |
| { | |
| "name": "channel", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "data", | |
| "type": "byte array" | |
| } | |
| ] | |
| }, | |
| "spectate": { | |
| "id": "0x18", | |
| "fields": [ | |
| { | |
| "name": "targetPlayer", | |
| "type": "UUID" | |
| } | |
| ] | |
| }, | |
| "resource_pack_status": { | |
| "id": "0x19", | |
| "fields": [ | |
| { | |
| "name": "hash", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "result", | |
| "type": "varint" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment