bedrock-protocol/data/protocol.json
2019-07-14 17:53:52 +02:00

2517 lines
75 KiB
JSON

{
"types": {
"string": [
"pstring",
{
"countType": "i16"
}
],
"lstring": [
"pstring",
{
"countType": "li16"
}
],
"vector3": [
"container",
[
{
"name": "x",
"type": "lf32"
},
{
"name": "y",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
}
]
],
"vector2": [
"container",
[
{
"name": "x",
"type": "f32"
},
{
"name": "y",
"type": "f32"
}
]
],
"playerlocation": [
"array",
{
"countType": "li16",
"type": [
"container",
[
{
"name": "x",
"type": "lf32"
},
{
"name": "y",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "pitch",
"type": "f32"
},
{
"name": "headYaw",
"type": "f32"
}
]
]
}
],
"encapsulated_packet": [
"container",
[
{
"name": "name",
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0xfe": "mcpe"
}
}
]
},
{
"name": "params",
"type": [
"switch",
{
"compareTo": "name",
"fields": {
"mcpe": "mcpe_packet"
}
}
]
}
]
],
"mcpe_packet": [
"container",
[
{
"name": "name",
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0x01": "game_login",
"0x02": "play_status",
"0x03": "server_to_client_handshake",
"0x04": "client_to_server_handshake",
"0x05": "disconnect",
"0x06": "resource_packs_info",
"0x07": "resource_pack_stack",
"0x08": "resource_pack_client_response",
"0x09": "text",
"0x0a": "set_time",
"0x0b": "start_game",
"0x0c": "add_player",
"0x0d": "add_entity",
"0x0e": "remove_entity",
"0x0f": "add_item_entity",
"0x11": "take_item_entity",
"0x12": "move_entity",
"0x13": "move_player",
"0x14": "rider_jump",
"0x15": "update_block",
"0x16": "add_painting",
"0x17": "explode",
"0x18": "level_sound_event_old",
"0x19": "level_event",
"0x1a": "block_event",
"0x1b": "entity_event",
"0x1c": "mob_effect",
"0x1d": "update_attributes",
"0x1e": "inventory_transaction",
"0x1f": "mob_equipment",
"0x20": "mob_armor_equipment",
"0x21": "interact",
"0x22": "block_pick_request",
"0x23": "entity_pick_request",
"0x24": "player_action",
"0x25": "entity_fall",
"0x26": "hurt_armor",
"0x27": "set_entity_data",
"0x28": "set_entity_motion",
"0x29": "set_entity_link",
"0x2a": "set_health",
"0x2b": "set_spawn_position",
"0x2c": "animate",
"0x2d": "respawn",
"0x2e": "container_open",
"0x2f": "container_close",
"0x30": "player_hotbar",
"0x31": "inventory_content",
"0x32": "inventory_slot",
"0x33": "container_set_data",
"0x34": "crafting_data",
"0x35": "crafting_event",
"0x36": "gui_data_pick_item",
"0x37": "adventure_settings",
"0x38": "block_entity_data",
"0x39": "player_input",
"0x3a": "full_chunk_data",
"0x3b": "set_commands_enabled",
"0x3c": "set_difficulty",
"0x3d": "change_dimension",
"0x3e": "set_player_game_type",
"0x3f": "player_list",
"0x40": "simple_event",
"0x41": "telemetry_event",
"0x42": "spawn_experience_orb",
"0x43": "clientbound_map_item_data_",
"0x44": "map_info_request",
"0x45": "request_chunk_radius",
"0x46": "chunk_radius_update",
"0x47": "item_frame_drop_item",
"0x48": "game_rules_changed",
"0x49": "camera",
"0x4a": "boss_event",
"0x4b": "show_credits",
"0x4c": "available_commands",
"0x4d": "command_request",
"0x4e": "command_block_update",
"0x4f": "command_output",
"0x50": "update_trade",
"0x51": "update_equipment",
"0x52": "resource_pack_data_info",
"0x53": "resource_pack_chunk_data",
"0x54": "resource_pack_chunk_request",
"0x55": "transfer",
"0x56": "play_sound",
"0x57": "stop_sound",
"0x58": "set_title",
"0x59": "add_behavior_tree",
"0x5a": "structure_block_update",
"0x5b": "show_store_offer",
"0x5c": "purchase_receipt",
"0x5d": "player_skin",
"0x5e": "sub_client_login",
"0x5f": "initiate_web_socket_connection",
"0x60": "set_last_hurt_by",
"0x61": "book_edit",
"0x62": "npc_request",
"0x63": "photo_transfer",
"0x64": "modal_form_request",
"0x65": "modal_form_response",
"0x66": "server_settings_request",
"0x67": "server_settings_response",
"0x68": "show_profile",
"0x69": "set_default_game_type",
"0x6a": "remove_objective",
"0x6b": "set_display_objective",
"0x6c": "set_score",
"0x6d": "lab_table",
"0x6e": "update_block_synced",
"0x6f": "move_entity_delta",
"0x70": "set_scoreboard_identity_packet",
"0x71": "set_local_player_as_initialized_packet",
"0x72": "update_soft_enum_packet",
"0x73": "network_stack_latency_packet",
"0x75": "script_custom_event_packet",
"0x76": "spawn_particle_effect",
"0x77": "available_entity_identifiers",
"0x78": "level_sound_event_v2",
"0x79": "network_chunk_publisher_update",
"0x7a": "biome_definition_list",
"0x7b": "level_sound_event"
}
}
]
},
{
"name": "params",
"type": [
"switch",
{
"compareTo": "name",
"fields": {
"game_login": "packet_game_login",
"play_status": "packet_play_status",
"server_to_client_handshake": "packet_server_to_client_handshake",
"client_to_server_handshake": "packet_client_to_server_handshake",
"disconnect": "packet_disconnect",
"resource_packs_info": "packet_resource_packs_info",
"resource_pack_stack": "packet_resource_pack_stack",
"resource_pack_client_response": "packet_resource_pack_client_response",
"text": "packet_text",
"set_time": "packet_set_time",
"start_game": "packet_start_game",
"add_player": "packet_add_player",
"add_entity": "packet_add_entity",
"remove_entity": "packet_remove_entity",
"add_item_entity": "packet_add_item_entity",
"take_item_entity": "packet_take_item_entity",
"move_entity": "packet_move_entity",
"move_player": "packet_move_player",
"rider_jump": "packet_rider_jump",
"update_block": "packet_update_block",
"add_painting": "packet_add_painting",
"explode": "packet_explode",
"level_sound_event_old": "packet_level_sound_event_old",
"level_event": "packet_level_event",
"block_event": "packet_block_event",
"entity_event": "packet_entity_event",
"mob_effect": "packet_mob_effect",
"update_attributes": "packet_update_attributes",
"inventory_transaction": "packet_inventory_transaction",
"mob_equipment": "packet_mob_equipment",
"mob_armor_equipment": "packet_mob_armor_equipment",
"interact": "packet_interact",
"block_pick_request": "packet_block_pick_request",
"entity_pick_request": "packet_entity_pick_request",
"player_action": "packet_player_action",
"entity_fall": "packet_entity_fall",
"hurt_armor": "packet_hurt_armor",
"set_entity_data": "packet_set_entity_data",
"set_entity_motion": "packet_set_entity_motion",
"set_entity_link": "packet_set_entity_link",
"set_health": "packet_set_health",
"set_spawn_position": "packet_set_spawn_position",
"animate": "packet_animate",
"respawn": "packet_respawn",
"container_open": "packet_container_open",
"container_close": "packet_container_close",
"player_hotbar": "packet_player_hotbar",
"inventory_content": "packet_inventory_content",
"inventory_slot": "packet_inventory_slot",
"container_set_data": "packet_container_set_data",
"crafting_data": "packet_crafting_data",
"crafting_event": "packet_crafting_event",
"gui_data_pick_item": "packet_gui_data_pick_item",
"adventure_settings": "packet_adventure_settings",
"block_entity_data": "packet_block_entity_data",
"player_input": "packet_player_input",
"full_chunk_data": "packet_full_chunk_data",
"set_commands_enabled": "packet_set_commands_enabled",
"set_difficulty": "packet_set_difficulty",
"change_dimension": "packet_change_dimension",
"set_player_game_type": "packet_set_player_game_type",
"player_list": "packet_player_list",
"simple_event": "packet_simple_event",
"telemetry_event": "packet_telemetry_event",
"spawn_experience_orb": "packet_spawn_experience_orb",
"clientbound_map_item_data_": "packet_clientbound_map_item_data_",
"map_info_request": "packet_map_info_request",
"request_chunk_radius": "packet_request_chunk_radius",
"chunk_radius_update": "packet_chunk_radius_update",
"item_frame_drop_item": "packet_item_frame_drop_item",
"game_rules_changed": "packet_game_rules_changed",
"camera": "packet_camera",
"boss_event": "packet_boss_event",
"show_credits": "packet_show_credits",
"available_commands": "packet_available_commands",
"command_request": "packet_command_request",
"command_block_update": "packet_command_block_update",
"command_output": "packet_command_output",
"update_trade": "packet_update_trade",
"update_equipment": "packet_update_equipment",
"resource_pack_data_info": "packet_resource_pack_data_info",
"resource_pack_chunk_data": "packet_resource_pack_chunk_data",
"resource_pack_chunk_request": "packet_resource_pack_chunk_request",
"transfer": "packet_transfer",
"play_sound": "packet_play_sound",
"stop_sound": "packet_stop_sound",
"set_title": "packet_set_title",
"add_behavior_tree": "packet_add_behavior_tree",
"structure_block_update": "packet_structure_block_update",
"show_store_offer": "packet_show_store_offer",
"purchase_receipt": "packet_purchase_receipt",
"player_skin": "packet_player_skin",
"sub_client_login": "packet_sub_client_login",
"initiate_web_socket_connection": "packet_initiate_web_socket_connection",
"set_last_hurt_by": "packet_set_last_hurt_by",
"book_edit": "packet_book_edit",
"npc_request": "packet_npc_request",
"photo_transfer": "packet_photo_transfer",
"modal_form_request": "packet_modal_form_request",
"modal_form_response": "packet_modal_form_response",
"server_settings_request": "packet_server_settings_request",
"server_settings_response": "packet_server_settings_response",
"show_profile": "packet_show_profile",
"set_default_game_type": "packet_set_default_game_type",
"remove_objective": "packet_remove_objective",
"set_display_objective": "packet_set_display_objective",
"set_score": "packet_set_score",
"lab_table": "packet_lab_table",
"update_block_synced": "packet_update_block_synced",
"move_entity_delta": "packet_move_entity_delta",
"set_scoreboard_identity_packet": "packet_set_scoreboard_identity_packet",
"set_local_player_as_initialized_packet": "packet_set_local_player_as_initialized_packet",
"update_soft_enum_packet": "packet_update_soft_enum_packet",
"network_stack_latency_packet": "packet_network_stack_latency_packet",
"script_custom_event_packet": "packet_script_custom_event_packet",
"spawn_particle_effect": "packet_spawn_particle_effect",
"available_entity_identifiers": "packet_available_entity_identifiers",
"level_sound_event_v2": "packet_level_sound_event_v2",
"network_chunk_publisher_update": "packet_network_chunk_publisher_update",
"biome_definition_list": "packet_biome_definition_list",
"level_sound_event": "packet_level_sound_event"
}
}
]
}
]
],
"packet_game_login": [
"container",
[
{
"name": "protocol",
"type": "i32"
},
{
"name": "edition",
"type": "i8"
},
{
"name": "body",
"type": [
"buffer",
{
"countType": "varint"
}
]
}
]
],
"packet_play_status": [
"container",
[
{
"name": "status",
"type": "i32"
}
]
],
"packet_server_to_client_handshake": [
"container",
[
{
"name": "token",
"type": "string"
}
]
],
"packet_client_to_server_handshake": [
"container",
[]
],
"packet_disconnect": [
"container",
[
{
"name": "hide_disconnect_reason",
"type": "bool"
},
{
"name": "message",
"type": "string"
}
]
],
"packet_resource_packs_info": [
"container",
[
{
"name": "must_accept",
"type": "bool"
},
{
"name": "has_scripts",
"type": "bool"
},
{
"name": "behahaviorpackinfos",
"type": "varint"
},
{
"name": "resourcepackinfos",
"type": "varint"
}
]
],
"packet_resource_pack_stack": [
"container",
[
{
"name": "must_accept",
"type": "bool"
},
{
"name": "behaviorpackidversions",
"type": "varint"
},
{
"name": "resourcepackidversions",
"type": "varint"
},
{
"name": "is_experimental",
"type": "bool"
}
]
],
"packet_resource_pack_client_response": [
"container",
[
{
"name": "response_status",
"type": "u8"
},
{
"name": "resourcepackids",
"type": "varint"
}
]
],
"packet_text": [
"container",
[
{
"name": "type",
"type": "i8"
},
{
"name": "source",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"1": "string",
"3": "string"
},
"default": "void"
}
]
},
{
"name": "message",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"0": "string",
"1": "string",
"2": "string",
"3": "string",
"4": "string",
"5": "string"
},
"default": "void"
}
]
}
]
],
"packet_set_time": [
"container",
[
{
"name": "time",
"type": "varint"
}
]
],
"packet_start_game": [
"container",
[
{
"name": "entity_id_self",
"type": "varint"
},
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "player_gamemode",
"type": "varint"
},
{
"name": "spawn",
"type": "vector3"
},
{
"name": "pitch",
"type": "lf32"
},
{
"name": "yaw",
"type": "lf32"
},
{
"name": "seed",
"type": "varint"
},
{
"name": "dimension",
"type": "varint"
},
{
"name": "generator",
"type": "varint"
},
{
"name": "gamemode",
"type": "varint"
},
{
"name": "difficulty",
"type": "varint"
},
{
"name": "x",
"type": "varint"
},
{
"name": "y",
"type": "varint"
},
{
"name": "z",
"type": "varint"
},
{
"name": "has_achievements_disabled",
"type": "bool"
},
{
"name": "time",
"type": "varint"
},
{
"name": "edu_mode",
"type": "bool"
},
{
"name": "has_edu_features_enabled",
"type": "bool"
},
{
"name": "rain_level",
"type": "lf32"
},
{
"name": "lightning_level",
"type": "lf32"
},
{
"name": "has_confirmed_platform_locked_content",
"type": "bool"
},
{
"name": "is_multiplayer",
"type": "bool"
},
{
"name": "broadcast_to_lan",
"type": "bool"
},
{
"name": "xbox_live_broadcast_mode",
"type": "varint"
},
{
"name": "platform_broadcast_mode",
"type": "varint"
},
{
"name": "enable_commands",
"type": "bool"
},
{
"name": "is_texturepacks_required",
"type": "bool"
},
{
"name": "u8",
"type": "u8"
},
{
"name": "bonus_chest",
"type": "bool"
},
{
"name": "map_enabled",
"type": "bool"
},
{
"name": "permission_level",
"type": "varint"
},
{
"name": "server_chunk_tick_range",
"type": "i32"
},
{
"name": "has_locked_behavior_pack",
"type": "bool"
},
{
"name": "has_locked_resource_pack",
"type": "bool"
},
{
"name": "is_from_locked_world_template",
"type": "bool"
},
{
"name": "use_msa_gamertags_only",
"type": "bool"
},
{
"name": "is_from_world_template",
"type": "bool"
},
{
"name": "is_world_template_option_locked",
"type": "bool"
},
{
"name": "use_v1_villagers",
"type": "bool"
},
{
"name": "level_id",
"type": "string"
},
{
"name": "world_name",
"type": "string"
},
{
"name": "premium_world_template_id",
"type": "string"
},
{
"name": "is_trial",
"type": "bool"
},
{
"name": "current_tick",
"type": "i64"
},
{
"name": "enchantment_seed",
"type": "varint"
},
{
"name": "blockstates",
"type": "u8"
},
{
"name": "itemtable",
"type": "u8"
},
{
"name": "multiplayer_correlation_id",
"type": "string"
}
]
],
"packet_add_player": [
"container",
[
{
"name": "uuid",
"type": "string"
},
{
"name": "username",
"type": "string"
},
{
"name": "entity_id_self",
"type": "varint"
},
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "platform_chat_id",
"type": "string"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "motion",
"type": "vector3"
},
{
"name": "pitch",
"type": "lf32"
},
{
"name": "yaw",
"type": "lf32"
},
{
"name": "head_yaw",
"type": "lf32"
},
{
"name": "item",
"type": "u8"
},
{
"name": "metadata",
"type": "u8"
},
{
"name": "flags",
"type": "varint"
},
{
"name": "command_permission",
"type": "varint"
},
{
"name": "action_permissions",
"type": "varint"
},
{
"name": "permission_level",
"type": "varint"
},
{
"name": "custom_stored_permissions",
"type": "varint"
},
{
"name": "user_id",
"type": "i64"
},
{
"name": "links",
"type": "u8"
},
{
"name": "device_id",
"type": "string"
}
]
],
"packet_add_entity": [
"container",
[
{
"name": "entity_id_self",
"type": "varint"
}
]
],
"packet_remove_entity": [
"container",
[
{
"name": "entity_id_self",
"type": "varint"
}
]
],
"packet_add_item_entity": [
"container",
[
{
"name": "entity_id_self",
"type": "varint"
},
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "item",
"type": "varint"
},
{
"name": "x",
"type": "lf32"
},
{
"name": "y",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
},
{
"name": "speed_x",
"type": "lf32"
},
{
"name": "speed_y",
"type": "lf32"
},
{
"name": "speed_z",
"type": "lf32"
},
{
"name": "metadata",
"type": "varint"
},
{
"name": "is_from_fishing",
"type": "bool"
}
]
],
"packet_take_item_entity": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "target",
"type": "varint"
}
]
],
"packet_move_entity": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "flags",
"type": "u8"
},
{
"name": "position",
"type": "playerlocation"
}
]
],
"packet_move_player": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "x",
"type": "lf32"
},
{
"name": "y",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
},
{
"name": "pitch",
"type": "lf32"
},
{
"name": "yaw",
"type": "lf32"
},
{
"name": "head_yaw",
"type": "lf32"
},
{
"name": "mode",
"type": "u8"
},
{
"name": "on_ground",
"type": "bool"
},
{
"name": "other_runtime_entity_id",
"type": "varint"
}
]
],
"packet_rider_jump": [
"container",
[
{
"name": "unknown",
"type": "varint"
}
]
],
"packet_update_block": [
"container",
[
{
"name": "coordinates",
"type": "varint"
},
{
"name": "block_runtime_id",
"type": "varint"
},
{
"name": "block_priority",
"type": "varint"
},
{
"name": "storage",
"type": "varint"
}
]
],
"packet_add_painting": [
"container",
[
{
"name": "entity_id_self",
"type": "varint"
},
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "coordinates",
"type": "varint"
},
{
"name": "direction",
"type": "varint"
},
{
"name": "title",
"type": "string"
}
]
],
"packet_explode": [
"container",
[
{
"name": "position",
"type": "vector3"
},
{
"name": "radius",
"type": "varint"
},
{
"name": "records",
"type": "varint"
}
]
],
"packet_level_sound_event_old": [
"container",
[
{
"name": "sound_id",
"type": "u8"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "block_id",
"type": "varint"
},
{
"name": "entity_type",
"type": "varint"
},
{
"name": "is_baby_mob",
"type": "bool"
},
{
"name": "is_global",
"type": "bool"
}
]
],
"packet_level_event": [
"container",
[
{
"name": "event_id",
"type": "varint"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "data",
"type": "varint"
}
]
],
"packet_block_event": [
"container",
[
{
"name": "coordinates",
"type": "varint"
},
{
"name": "case_1",
"type": "varint"
},
{
"name": "case_2",
"type": "varint"
}
]
],
"packet_entity_event": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "event_id",
"type": "u8"
},
{
"name": "data",
"type": "varint"
}
]
],
"packet_mob_effect": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "event_id",
"type": "u8"
},
{
"name": "effect_id",
"type": "varint"
},
{
"name": "amplifier",
"type": "varint"
},
{
"name": "particles",
"type": "bool"
},
{
"name": "duration",
"type": "varint"
}
]
],
"packet_update_attributes": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "attributes",
"type": "varint"
}
]
],
"packet_inventory_transaction": [
"container",
[
{
"name": "transaction_type",
"type": "varint"
},
{
"name": "transaction",
"type": "varint"
}
]
],
"packet_mob_equipment": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "item",
"type": "varint"
},
{
"name": "slot",
"type": "u8"
},
{
"name": "selected_slot",
"type": "u8"
},
{
"name": "windows_id",
"type": "u8"
}
]
],
"packet_mob_armor_equipment": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "helmet",
"type": "varint"
},
{
"name": "chestplate",
"type": "varint"
},
{
"name": "leggings",
"type": "varint"
},
{
"name": "boots",
"type": "varint"
}
]
],
"packet_interact": [
"container",
[
{
"name": "action_id",
"type": "u8"
},
{
"name": "target_runtime_entity_id",
"type": "varint"
}
]
],
"packet_block_pick_request": [
"container",
[
{
"name": "x",
"type": "varint"
},
{
"name": "y",
"type": "varint"
},
{
"name": "z",
"type": "varint"
},
{
"name": "add_user_data",
"type": "bool"
},
{
"name": "selected_slot",
"type": "u8"
}
]
],
"packet_entity_pick_request": [
"container",
[
{
"name": "runtime_entity_id",
"type": "u64"
},
{
"name": "selected_slot",
"type": "u8"
}
]
],
"packet_player_action": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "action_id",
"type": "varint"
},
{
"name": "coordinates",
"type": "varint"
},
{
"name": "face",
"type": "varint"
}
]
],
"packet_entity_fall": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "fall_distance",
"type": "lf32"
},
{
"name": "is_in_void",
"type": "bool"
}
]
],
"packet_hurt_armor": [
"container",
[
{
"name": "health",
"type": "varint"
}
]
],
"packet_set_entity_data": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "metadata",
"type": "varint"
}
]
],
"packet_set_entity_motion": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "velocity",
"type": "vector3"
}
]
],
"packet_set_entity_link": [
"container",
[
{
"name": "ridden_id",
"type": "varint"
},
{
"name": "rider_id",
"type": "varint"
},
{
"name": "link_type",
"type": "u8"
},
{
"name": "unknown",
"type": "u8"
}
]
],
"packet_set_health": [
"container",
[
{
"name": "health",
"type": "varint"
}
]
],
"packet_set_spawn_position": [
"container",
[
{
"name": "spawn_type",
"type": "varint"
},
{
"name": "coordinates",
"type": "varint"
},
{
"name": "forced",
"type": "bool"
}
]
],
"packet_animate": [
"container",
[
{
"name": "action_id",
"type": "varint"
},
{
"name": "runtime_entity_id",
"type": "varint"
}
]
],
"packet_respawn": [
"container",
[
{
"name": "x",
"type": "lf32"
},
{
"name": "y",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
}
]
],
"packet_container_open": [
"container",
[
{
"name": "window_id",
"type": "u8"
},
{
"name": "type",
"type": "u8"
},
{
"name": "coordinates",
"type": "varint"
},
{
"name": "runtime_entity_id",
"type": "varint"
}
]
],
"packet_container_close": [
"container",
[
{
"name": "window_id",
"type": "u8"
}
]
],
"packet_player_hotbar": [
"container",
[
{
"name": "selected_slot",
"type": "varint"
},
{
"name": "window_id",
"type": "u8"
},
{
"name": "select_slot_",
"type": "bool"
}
]
],
"packet_inventory_content": [
"container",
[
{
"name": "inventory_id",
"type": "varint"
},
{
"name": "input",
"type": "varint"
}
]
],
"packet_inventory_slot": [
"container",
[
{
"name": "inventory_id",
"type": "varint"
},
{
"name": "slot",
"type": "varint"
},
{
"name": "item",
"type": "varint"
}
]
],
"packet_container_set_data": [
"container",
[
{
"name": "window_id",
"type": "u8"
},
{
"name": "property",
"type": "varint"
},
{
"name": "value",
"type": "varint"
}
]
],
"packet_crafting_data": [
"container",
[
{
"name": "recipes",
"type": "varint"
}
]
],
"packet_crafting_event": [
"container",
[
{
"name": "window_id",
"type": "u8"
},
{
"name": "recipe_type",
"type": "varint"
},
{
"name": "recipe_id",
"type": "string"
},
{
"name": "input",
"type": "varint"
},
{
"name": "result",
"type": "varint"
}
]
],
"packet_gui_data_pick_item": [
"container",
[]
],
"packet_adventure_settings": [
"container",
[
{
"name": "flags",
"type": "varint"
},
{
"name": "command_permission",
"type": "varint"
},
{
"name": "action_permissions",
"type": "varint"
},
{
"name": "permission_level",
"type": "varint"
},
{
"name": "custom_stored_permissions",
"type": "varint"
},
{
"name": "user_id",
"type": "i64"
}
]
],
"packet_block_entity_data": [
"container",
[
{
"name": "coordinates",
"type": "varint"
},
{
"name": "namedtag",
"type": "varint"
}
]
],
"packet_player_input": [
"container",
[
{
"name": "motion_x",
"type": "lf32"
},
{
"name": "motion_z",
"type": "lf32"
},
{
"name": "jumping",
"type": "bool"
},
{
"name": "sneaking",
"type": "bool"
}
]
],
"packet_full_chunk_data": [
"container",
[
{
"name": "chunk_x",
"type": "varint"
},
{
"name": "chunk_z",
"type": "varint"
}
]
],
"packet_set_commands_enabled": [
"container",
[
{
"name": "enabled",
"type": "bool"
}
]
],
"packet_set_difficulty": [
"container",
[
{
"name": "difficulty",
"type": "varint"
}
]
],
"packet_change_dimension": [
"container",
[
{
"name": "dimension",
"type": "varint"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "respawn",
"type": "bool"
}
]
],
"packet_set_player_game_type": [
"container",
[
{
"name": "gamemode",
"type": "varint"
}
]
],
"packet_player_list": [
"container",
[
{
"name": "records",
"type": "varint"
}
]
],
"packet_simple_event": [
"container",
[
{
"name": "event_type",
"type": "u8"
}
]
],
"packet_telemetry_event": [
"container",
[
{
"name": "entity_id_self",
"type": "varint"
},
{
"name": "unk1",
"type": "varint"
},
{
"name": "unk2",
"type": "u8"
}
]
],
"packet_spawn_experience_orb": [
"container",
[
{
"name": "position",
"type": "vector3"
},
{
"name": "count",
"type": "varint"
}
]
],
"packet_clientbound_map_item_data_": [
"container",
[
{
"name": "mapinfo",
"type": "varint"
}
]
],
"packet_map_info_request": [
"container",
[
{
"name": "map_id",
"type": "varint"
}
]
],
"packet_request_chunk_radius": [
"container",
[
{
"name": "chunk_radius",
"type": "varint"
}
]
],
"packet_chunk_radius_update": [
"container",
[
{
"name": "chunk_radius",
"type": "varint"
}
]
],
"packet_item_frame_drop_item": [
"container",
[
{
"name": "coordinates",
"type": "varint"
}
]
],
"packet_game_rules_changed": [
"container",
[
{
"name": "rules",
"type": "u8"
}
]
],
"packet_camera": [
"container",
[
{
"name": "unknown1",
"type": "varint"
},
{
"name": "unknown2",
"type": "varint"
}
]
],
"packet_boss_event": [
"container",
[
{
"name": "boss_entity_id",
"type": "varint"
},
{
"name": "event_type",
"type": "varint"
}
]
],
"packet_show_credits": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "status",
"type": "varint"
}
]
],
"packet_available_commands": [
"container",
[]
],
"packet_command_request": [
"container",
[
{
"name": "command",
"type": "string"
},
{
"name": "command_type",
"type": "varint"
},
{
"name": "unknown_uuid",
"type": "string"
},
{
"name": "request_id",
"type": "string"
},
{
"name": "unknown",
"type": "bool"
}
]
],
"packet_command_block_update": [
"container",
[
{
"name": "is_block",
"type": "bool"
}
]
],
"packet_command_output": [
"container",
[]
],
"packet_update_trade": [
"container",
[
{
"name": "window_id",
"type": "u8"
},
{
"name": "window_type",
"type": "u8"
},
{
"name": "unknown0",
"type": "varint"
},
{
"name": "unknown1",
"type": "varint"
},
{
"name": "unknown2",
"type": "varint"
},
{
"name": "is_willing",
"type": "bool"
},
{
"name": "trader_entity_id",
"type": "varint"
},
{
"name": "player_entity_id",
"type": "varint"
},
{
"name": "display_name",
"type": "string"
},
{
"name": "namedtag",
"type": "varint"
}
]
],
"packet_update_equipment": [
"container",
[
{
"name": "window_id",
"type": "u8"
},
{
"name": "window_type",
"type": "u8"
},
{
"name": "unknown",
"type": "u8"
},
{
"name": "entity_id",
"type": "varint"
},
{
"name": "namedtag",
"type": "varint"
}
]
],
"packet_resource_pack_data_info": [
"container",
[
{
"name": "package_id",
"type": "string"
},
{
"name": "max_chunk_size",
"type": "u32"
},
{
"name": "chunk_count",
"type": "u32"
},
{
"name": "compressed_package_size",
"type": "u64"
}
]
],
"packet_resource_pack_chunk_data": [
"container",
[
{
"name": "package_id",
"type": "string"
},
{
"name": "chunk_index",
"type": "u32"
},
{
"name": "progress",
"type": "u64"
},
{
"name": "length",
"type": "u32"
}
]
],
"packet_resource_pack_chunk_request": [
"container",
[
{
"name": "package_id",
"type": "string"
},
{
"name": "chunk_index",
"type": "u32"
}
]
],
"packet_transfer": [
"container",
[
{
"name": "server_address",
"type": "string"
},
{
"name": "port",
"type": "u8"
}
]
],
"packet_play_sound": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "coordinates",
"type": "varint"
},
{
"name": "volume",
"type": "lf32"
},
{
"name": "pitch",
"type": "lf32"
}
]
],
"packet_stop_sound": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "stop_all",
"type": "bool"
}
]
],
"packet_set_title": [
"container",
[
{
"name": "type",
"type": "varint"
},
{
"name": "text",
"type": "string"
},
{
"name": "fade_in_time",
"type": "varint"
},
{
"name": "stay_time",
"type": "varint"
},
{
"name": "fade_out_time",
"type": "varint"
}
]
],
"packet_add_behavior_tree": [
"container",
[
{
"name": "behaviortree",
"type": "string"
}
]
],
"packet_structure_block_update": [
"container",
[]
],
"packet_show_store_offer": [
"container",
[
{
"name": "unknown0",
"type": "string"
},
{
"name": "unknown1",
"type": "bool"
}
]
],
"packet_purchase_receipt": [
"container",
[]
],
"packet_player_skin": [
"container",
[
{
"name": "uuid",
"type": "string"
},
{
"name": "skin_id",
"type": "string"
},
{
"name": "skin_name",
"type": "string"
},
{
"name": "old_skin_name",
"type": "string"
}
]
],
"packet_sub_client_login": [
"container",
[]
],
"packet_initiate_web_socket_connection": [
"container",
[
{
"name": "server",
"type": "string"
}
]
],
"packet_set_last_hurt_by": [
"container",
[
{
"name": "unknown",
"type": "varint"
}
]
],
"packet_book_edit": [
"container",
[]
],
"packet_npc_request": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "unknown0",
"type": "u8"
},
{
"name": "unknown1",
"type": "string"
},
{
"name": "unknown2",
"type": "u8"
}
]
],
"packet_photo_transfer": [
"container",
[
{
"name": "file_name",
"type": "string"
},
{
"name": "image_data",
"type": "string"
},
{
"name": "unknown2",
"type": "string"
}
]
],
"packet_modal_form_request": [
"container",
[
{
"name": "form_id",
"type": "varint"
},
{
"name": "data",
"type": "string"
}
]
],
"packet_modal_form_response": [
"container",
[
{
"name": "form_id",
"type": "varint"
},
{
"name": "data",
"type": "string"
}
]
],
"packet_server_settings_request": [
"container",
[]
],
"packet_server_settings_response": [
"container",
[
{
"name": "form_id",
"type": "varint"
},
{
"name": "data",
"type": "string"
}
]
],
"packet_show_profile": [
"container",
[
{
"name": "xuid",
"type": "string"
}
]
],
"packet_set_default_game_type": [
"container",
[
{
"name": "gamemode",
"type": "varint"
}
]
],
"packet_remove_objective": [
"container",
[
{
"name": "objective_name",
"type": "string"
}
]
],
"packet_set_display_objective": [
"container",
[
{
"name": "display_slot",
"type": "string"
},
{
"name": "objective_name",
"type": "string"
},
{
"name": "display_name",
"type": "string"
},
{
"name": "criteria_name",
"type": "string"
},
{
"name": "sort_order",
"type": "varint"
}
]
],
"packet_set_score": [
"container",
[
{
"name": "entries",
"type": "u8"
}
]
],
"packet_lab_table": [
"container",
[
{
"name": "useless_byte",
"type": "u8"
},
{
"name": "lab_table_x",
"type": "varint"
},
{
"name": "lab_table_y",
"type": "varint"
},
{
"name": "lab_table_z",
"type": "varint"
},
{
"name": "reaction_type",
"type": "u8"
}
]
],
"packet_update_block_synced": [
"container",
[
{
"name": "coordinates",
"type": "varint"
},
{
"name": "block_runtime_id",
"type": "varint"
},
{
"name": "block_priority",
"type": "varint"
},
{
"name": "data_layer_id",
"type": "varint"
},
{
"name": "unknown0",
"type": "varint"
},
{
"name": "unknown1",
"type": "varint"
}
]
],
"packet_move_entity_delta": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
},
{
"name": "flags",
"type": "u8"
}
]
],
"packet_set_scoreboard_identity_packet": [
"container",
[
{
"name": "entries",
"type": "u8"
}
]
],
"packet_set_local_player_as_initialized_packet": [
"container",
[
{
"name": "runtime_entity_id",
"type": "varint"
}
]
],
"packet_update_soft_enum_packet": [
"container",
[]
],
"packet_network_stack_latency_packet": [
"container",
[
{
"name": "timestamp",
"type": "i64"
},
{
"name": "need_response",
"type": "bool"
}
]
],
"packet_script_custom_event_packet": [
"container",
[
{
"name": "event_name",
"type": "string"
},
{
"name": "event_data",
"type": "string"
}
]
],
"packet_spawn_particle_effect": [
"container",
[
{
"name": "dimension_id",
"type": "u8"
},
{
"name": "entity_id",
"type": "varint"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "particle_name",
"type": "string"
}
]
],
"packet_available_entity_identifiers": [
"container",
[
{
"name": "namedtag",
"type": "varint"
}
]
],
"packet_level_sound_event_v2": [
"container",
[
{
"name": "sound_id",
"type": "u8"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "block_id",
"type": "varint"
},
{
"name": "entity_type",
"type": "string"
},
{
"name": "is_baby_mob",
"type": "bool"
},
{
"name": "is_global",
"type": "bool"
}
]
],
"packet_network_chunk_publisher_update": [
"container",
[
{
"name": "coordinates",
"type": "varint"
},
{
"name": "radius",
"type": "varint"
}
]
],
"packet_biome_definition_list": [
"container",
[
{
"name": "namedtag",
"type": "varint"
}
]
],
"packet_level_sound_event": [
"container",
[
{
"name": "sound_id",
"type": "varint"
},
{
"name": "position",
"type": "vector3"
},
{
"name": "block_id",
"type": "varint"
},
{
"name": "entity_type",
"type": "string"
},
{
"name": "is_baby_mob",
"type": "bool"
},
{
"name": "is_global",
"type": "bool"
}
]
]
}
}