From 25f863c0085ff086dd36fb06fd0542ca7afdf30a Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 22 Jun 2024 21:45:57 -0400 Subject: [PATCH 01/14] Add yaml protocol data for mcpc --- data/dataPaths.json | 3 +- data/pc/latest/proto.yml | 2498 +++++++++++++++++++++ tools/js/compileProtocol.js | 95 +- tools/js/convertMcpcProtocolJsonToYaml.js | 29 + tools/js/package.json | 4 +- 5 files changed, 2584 insertions(+), 45 deletions(-) create mode 100644 data/pc/latest/proto.yml create mode 100644 tools/js/convertMcpcProtocolJsonToYaml.js diff --git a/data/dataPaths.json b/data/dataPaths.json index bf9a0b856..22274868c 100644 --- a/data/dataPaths.json +++ b/data/dataPaths.json @@ -1344,7 +1344,8 @@ "tints": "pc/1.20.2", "mapIcons": "pc/1.20.2", "commands": "pc/1.20.3", - "sounds": "pc/1.20.4" + "sounds": "pc/1.20.4", + "proto": "pc/1.20.4" } }, "bedrock": { diff --git a/data/pc/latest/proto.yml b/data/pc/latest/proto.yml new file mode 100644 index 000000000..3ccd6690e --- /dev/null +++ b/data/pc/latest/proto.yml @@ -0,0 +1,2498 @@ +!version: 1.20.3 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + anonymousNbt: native + anonOptionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + vec3f: + x: f32 + y: f32 + z: f32 + vec4f: + x: f32 + y: f32 + z: f32 + w: f32 + vec3f64: + x: f64 + y: f64 + z: f64 + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: anonOptionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 27: + blockState: varint + if 33: + rotation: f32 + if 42: + item: slot + if 43: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + entityEyeHeight: positionType ? + if minecraft:entity: varint + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 96: + delayInTicksBeforeShown: varint + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + soundSource: varint => + 0: master + 1: music + 2: record + 3: weather + 4: block + 5: hostile + 6: neutral + 7: player + 8: ambient + 9: voice + packedChunkPos: + z: i32 + x: i32 + previousMessages: []varint + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + entityMetadataItem: $compareTo ? + if byte: i8 + if int: varint + if long: varlong + if float: f32 + if string: string + if component: anonymousNbt + if optional_component: [ + "option", + "anonymousNbt" + ] + if item_stack: slot + if boolean: bool + if rotations: + pitch: f32 + yaw: f32 + roll: f32 + if block_pos: position + if optional_block_pos: [ + "option", + "position" + ] + if direction: varint + if optional_uuid: [ + "option", + "UUID" + ] + if block_state: varint + if optional_block_state: optvarint + if compound_tag: anonymousNbt + if particle: particle + if villager_data: + villagerType: varint + villagerProfession: varint + level: varint + if optional_unsigned_int: optvarint + if pose: varint + if cat_variant: varint + if frog_variant: varint + if optional_global_pos: [ + "option", + "string" + ] + if painting_variant: varint + if sniffer_state: varint + if vector3: vec3f + if quaternion: vec4f + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "type": "varint", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + } + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_simple_recipe_format: + category: varint + minecraft_smelting_format: + group: string + category: varint + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: anonOptionalNbt + chat_session?: + uuid: UUID + publicKey: + expireTime: i64 + keyBytes: [ + "buffer", + { + "countType": "varint" + } + ] + keySignature: [ + "buffer", + { + "countType": "varint" + } + ] + game_profile: + name: string + properties: []varint + key: string + value: string + signature?: string + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:style + 19: minecraft:message + 20: minecraft:nbt + 21: minecraft:nbt_tag + 22: minecraft:nbt_path + 23: minecraft:objective + 24: minecraft:objective_criteria + 25: minecraft:operation + 26: minecraft:particle + 27: minecraft:angle + 28: minecraft:rotation + 29: minecraft:scoreboard_slot + 30: minecraft:score_holder + 31: minecraft:swizzle + 32: minecraft:team + 33: minecraft:item_slot + 34: minecraft:resource_location + 35: minecraft:function + 36: minecraft:entity_anchor + 37: minecraft:int_range + 38: minecraft:float_range + 39: minecraft:dimension + 40: minecraft:gamemode + 41: minecraft:time + 42: minecraft:resource_or_tag + 43: minecraft:resource_or_tag_key + 44: minecraft:resource + 45: minecraft:resource_key + 46: minecraft:template_mirror + 47: minecraft:template_rotation + 48: minecraft:heightmap + 49: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + max: flags/max_present ? + if 1: f32 + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + max: flags/max_present ? + if 1: f64 + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + max: flags/max_present ? + if 1: i32 + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + max: flags/max_present ? + if 1: i64 + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:dimension: void + if minecraft:gamemode: void + if minecraft:time: + min: i32 + if minecraft:resource_or_tag: + registry: string + if minecraft:resource_or_tag_key: + registry: string + if minecraft:resource: + registry: string + if minecraft:resource_key: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:heightmap: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request +^login.toServer.types: + packet_login_start: + username: string + playerUUID: UUID + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet_login_acknowledged: + # Empty + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + 0x03: login_acknowledged + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + if login_acknowledged: packet_login_acknowledged +^configuration.toClient.types: + packet_custom_payload: + channel: string + data: restBuffer + packet_disconnect: + reason: anonymousNbt + packet_finish_configuration: + # Empty + packet_keep_alive: + keepAliveId: i64 + packet_ping: + id: i32 + packet_registry_data: + codec: anonymousNbt + packet_remove_resource_pack: + uuid?: UUID + packet_add_resource_pack: + uuid: UUID + url: string + hash: string + forced: bool + promptMessage?: anonymousNbt + packet_feature_flags: + features: string[]varint + packet_tags: + tags: []varint + tagType: string + tags: tags + packet: + name: varint => + 0x00: custom_payload + 0x01: disconnect + 0x02: finish_configuration + 0x03: keep_alive + 0x04: ping + 0x05: registry_data + 0x06: remove_resource_pack + 0x07: add_resource_pack + 0x08: feature_flags + 0x09: tags + params: name ? + if custom_payload: packet_custom_payload + if disconnect: packet_disconnect + if finish_configuration: packet_finish_configuration + if keep_alive: packet_keep_alive + if ping: packet_ping + if registry_data: packet_registry_data + if remove_resource_pack: packet_remove_resource_pack + if add_resource_pack: packet_add_resource_pack + if feature_flags: packet_feature_flags + if tags: packet_tags +^configuration.toServer.types: + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_custom_payload: + channel: string + data: restBuffer + packet_finish_configuration: + # Empty + packet_keep_alive: + keepAliveId: i64 + packet_pong: + id: i32 + packet_resource_pack_receive: + uuid: UUID + result: varint + packet: + name: varint => + 0x00: settings + 0x01: custom_payload + 0x02: finish_configuration + 0x03: keep_alive + 0x04: pong + 0x05: resource_pack_receive + params: name ? + if settings: packet_settings + if custom_payload: packet_custom_payload + if finish_configuration: packet_finish_configuration + if keep_alive: packet_keep_alive + if pong: packet_pong + if resource_pack_receive: packet_resource_pack_receive +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: anonymousNbt + description: anonymousNbt + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + xCord: f32 + yCord: f32 + requirements: []varint + _: string[]varint + sendsTelemtryData: bool + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: anonOptionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: anonymousNbt + if 3: anonymousNbt + health: action ? + if 0: f32 + if 2: f32 + color: action ? + if 0: varint + if 4: varint + dividers: action ? + if 0: varint + if 4: varint + flags: action ? + if 0: u8 + if 5: u8 + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_chunk_batch_finished: + batchSize: varint + packet_chunk_batch_start: + # Empty + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: anonymousNbt + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + entity_feet_eyes: isEntity ? + if true: varint + packet_nbt_query_response: + transactionId: varint + nbt: anonOptionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: anonymousNbt + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_chat_suggestions: + action: varint + entries: string[]varint + packet_custom_payload: + channel: string + data: restBuffer + packet_hide_message: + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + packet_kick_disconnect: + reason: anonymousNbt + packet_profileless_chat: + message: anonymousNbt + type: varint + name: anonymousNbt + target?: anonymousNbt + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f64 + y: f64 + z: f64 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + block_interaction_type: varint + small_explosion_particle: particle + large_explosion_particle: particle + explosion_sound_name: string + sound_range?: f32 + packet_unload_chunk: + chunkZ: i32 + chunkX: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: anonymousNbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + worldNames: string[]varint + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + doLimitedCrafting: bool + worldType: string + worldName: string + hashedSeed: i64 + gameMode: u8 + previousGameMode: i8 + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + portalCooldown: varint + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: anonymousNbt + columns: u8 + rows: columns ? + if 0: void + x: columns ? + if 0: void + y: columns ? + if 0: void + data: columns ? + if 0: void + packet_trade_list: + windowId: varint + trades: []varint + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + isFrontText: bool + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + senderUuid: UUID + index: varint + signature?: [ + "buffer", + { + "count": 256 + } + ] + plainMessage: string + timestamp: i64 + salt: i64 + previousMessages: previousMessages + unsignedChatContent?: anonymousNbt + filterType: varint + filterTypeMask: filterType ? + if 2: i64[]varint + type: varint + networkName: anonymousNbt + networkTargetName?: anonymousNbt + packet_end_combat_event: + duration: varint + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + message: anonymousNbt + packet_player_remove: + players: UUID[]varint + packet_player_info: + action: i8 + data: []varint + uuid: UUID + player: ../action ? + if 1: game_profile + if 3: game_profile + if 5: game_profile + if 7: game_profile + if 9: game_profile + if 11: game_profile + if 13: game_profile + if 15: game_profile + if 17: game_profile + if 19: game_profile + if 21: game_profile + if 23: game_profile + if 25: game_profile + if 27: game_profile + if 29: game_profile + if 31: game_profile + if 33: game_profile + if 35: game_profile + if 37: game_profile + if 39: game_profile + if 41: game_profile + if 43: game_profile + if 45: game_profile + if 47: game_profile + if 49: game_profile + if 51: game_profile + if 53: game_profile + if 55: game_profile + if 57: game_profile + if 59: game_profile + if 61: game_profile + if 63: game_profile + chatSession: ../action ? + if 2: chat_session + if 3: chat_session + if 6: chat_session + if 7: chat_session + if 10: chat_session + if 11: chat_session + if 14: chat_session + if 15: chat_session + if 18: chat_session + if 19: chat_session + if 22: chat_session + if 23: chat_session + if 26: chat_session + if 27: chat_session + if 30: chat_session + if 31: chat_session + if 34: chat_session + if 35: chat_session + if 38: chat_session + if 39: chat_session + if 42: chat_session + if 43: chat_session + if 46: chat_session + if 47: chat_session + if 50: chat_session + if 51: chat_session + if 54: chat_session + if 55: chat_session + if 58: chat_session + if 59: chat_session + if 62: chat_session + if 63: chat_session + gamemode: ../action ? + if 4: varint + if 5: varint + if 6: varint + if 7: varint + if 12: varint + if 13: varint + if 14: varint + if 15: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 36: varint + if 37: varint + if 38: varint + if 39: varint + if 44: varint + if 45: varint + if 46: varint + if 47: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + listed: ../action ? + if 8: bool + if 9: bool + if 10: bool + if 11: bool + if 12: bool + if 13: bool + if 14: bool + if 15: bool + if 24: bool + if 25: bool + if 26: bool + if 27: bool + if 28: bool + if 29: bool + if 30: bool + if 31: bool + if 40: bool + if 41: bool + if 42: bool + if 43: bool + if 44: bool + if 45: bool + if 46: bool + if 47: bool + if 56: bool + if 57: bool + if 58: bool + if 59: bool + if 60: bool + if 61: bool + if 62: bool + if 63: bool + latency: ../action ? + if 16: varint + if 17: varint + if 18: varint + if 19: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 24: varint + if 25: varint + if 26: varint + if 27: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 48: varint + if 49: varint + if 50: varint + if 51: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 56: varint + if 57: varint + if 58: varint + if 59: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + displayName: ../action ? + if 32: [ + "option", + "anonymousNbt" + ] + if 33: [ + "option", + "anonymousNbt" + ] + if 34: [ + "option", + "anonymousNbt" + ] + if 35: [ + "option", + "anonymousNbt" + ] + if 36: [ + "option", + "anonymousNbt" + ] + if 37: [ + "option", + "anonymousNbt" + ] + if 38: [ + "option", + "anonymousNbt" + ] + if 39: [ + "option", + "anonymousNbt" + ] + if 40: [ + "option", + "anonymousNbt" + ] + if 41: [ + "option", + "anonymousNbt" + ] + if 42: [ + "option", + "anonymousNbt" + ] + if 43: [ + "option", + "anonymousNbt" + ] + if 44: [ + "option", + "anonymousNbt" + ] + if 45: [ + "option", + "anonymousNbt" + ] + if 46: [ + "option", + "anonymousNbt" + ] + if 47: [ + "option", + "anonymousNbt" + ] + if 48: [ + "option", + "anonymousNbt" + ] + if 49: [ + "option", + "anonymousNbt" + ] + if 50: [ + "option", + "anonymousNbt" + ] + if 51: [ + "option", + "anonymousNbt" + ] + if 52: [ + "option", + "anonymousNbt" + ] + if 53: [ + "option", + "anonymousNbt" + ] + if 54: [ + "option", + "anonymousNbt" + ] + if 55: [ + "option", + "anonymousNbt" + ] + if 56: [ + "option", + "anonymousNbt" + ] + if 57: [ + "option", + "anonymousNbt" + ] + if 58: [ + "option", + "anonymousNbt" + ] + if 59: [ + "option", + "anonymousNbt" + ] + if 60: [ + "option", + "anonymousNbt" + ] + if 61: [ + "option", + "anonymousNbt" + ] + if 62: [ + "option", + "anonymousNbt" + ] + if 63: [ + "option", + "anonymousNbt" + ] + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_reset_score: + entity_name: string + objective_name?: string + packet_remove_resource_pack: + uuid?: UUID + packet_add_resource_pack: + uuid: UUID + url: string + hash: string + forced: bool + promptMessage?: anonymousNbt + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: i8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + portalCooldown: varint + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: varint + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: anonymousNbt + if 2: anonymousNbt + type: action ? + if 0: varint + if 2: varint + number_format: action ? + if 0: [ + "option", + "varint" + ] + if 2: [ + "option", + "varint" + ] + styling: action ? + if 0: number_format ? + if 1: anonymousNbt + if 2: anonymousNbt + if 2: number_format ? + if 1: anonymousNbt + if 2: anonymousNbt + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: anonymousNbt + if 2: anonymousNbt + friendlyFire: mode ? + if 0: i8 + if 2: i8 + nameTagVisibility: mode ? + if 0: string + if 2: string + collisionRule: mode ? + if 0: string + if 2: string + formatting: mode ? + if 0: varint + if 2: varint + prefix: mode ? + if 0: anonymousNbt + if 2: anonymousNbt + suffix: mode ? + if 0: anonymousNbt + if 2: anonymousNbt + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + packet_scoreboard_score: + itemName: string + scoreName: string + value: varint + display_name?: anonymousNbt + number_format?: varint + styling: number_format ? + if 1: anonymousNbt + if 2: anonymousNbt + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + soundCategory: soundSource + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + sound: flags ? + if 2: string + if 3: string + packet_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + soundCategory: soundSource + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: anonymousNbt + isActionBar: bool + packet_playerlist_header: + header: anonymousNbt + footer: anonymousNbt + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: anonymousNbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd: anonymousNbt + iconBytes?: [ + "buffer", + { + "countType": "varint" + } + ] + enforcesSecureChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + category: varint + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + group: string + category: varint + width: varint + height: varint + ingredients: []$width + _: ingredient[]$height + result: slot + showNotification: bool + if minecraft:crafting_special_armordye: minecraft_simple_recipe_format + if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format + if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format + if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format + if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format + if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format + if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format + if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format + if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing_transform: + template: ingredient + base: ingredient + addition: ingredient + result: slot + if minecraft:smithing_trim: + template: ingredient + base: ingredient + addition: ingredient + if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: anonymousNbt + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_ping_response: + id: i64 + packet_set_title_subtitle: + text: anonymousNbt + packet_set_title_text: + text: anonymousNbt + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet_chunk_biomes: + biomes: []varint + position: packedChunkPos + data: [ + "buffer", + { + "countType": "varint" + } + ] + packet_damage_event: + entityId: varint + sourceTypeId: varint + sourceCauseId: varint + sourceDirectId: varint + sourcePosition?: vec3f64 + packet_hurt_animation: + entityId: varint + yaw: f32 + packet_start_configuration: + # Empty + packet_set_ticking_state: + tick_rate: f32 + is_frozen: bool + packet_step_tick: + tick_steps: varint + packet: + name: varint => + 0x00: bundle_delimiter + 0x01: spawn_entity + 0x02: spawn_entity_experience_orb + 0x03: animation + 0x04: statistics + 0x05: acknowledge_player_digging + 0x06: block_break_animation + 0x07: tile_entity_data + 0x08: block_action + 0x09: block_change + 0x0a: boss_bar + 0x0b: difficulty + 0x0c: chunk_batch_finished + 0x0d: chunk_batch_start + 0x0e: chunk_biomes + 0x0f: clear_titles + 0x10: tab_complete + 0x11: declare_commands + 0x12: close_window + 0x13: window_items + 0x14: craft_progress_bar + 0x15: set_slot + 0x16: set_cooldown + 0x17: chat_suggestions + 0x18: custom_payload + 0x19: damage_event + 0x1a: hide_message + 0x1b: kick_disconnect + 0x1c: profileless_chat + 0x1d: entity_status + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: open_horse_window + 0x22: hurt_animation + 0x23: initialize_world_border + 0x24: keep_alive + 0x25: map_chunk + 0x26: world_event + 0x27: world_particles + 0x28: update_light + 0x29: login + 0x2a: map + 0x2b: trade_list + 0x2c: rel_entity_move + 0x2d: entity_move_look + 0x2e: entity_look + 0x2f: vehicle_move + 0x30: open_book + 0x31: open_window + 0x32: open_sign_entity + 0x33: ping + 0x34: ping_response + 0x35: craft_recipe_response + 0x36: abilities + 0x37: player_chat + 0x38: end_combat_event + 0x39: enter_combat_event + 0x3a: death_combat_event + 0x3b: player_remove + 0x3c: player_info + 0x3d: face_player + 0x3e: position + 0x3f: unlock_recipes + 0x40: entity_destroy + 0x41: remove_entity_effect + 0x42: reset_score + 0x43: remove_resource_pack + 0x44: add_resource_pack + 0x45: respawn + 0x46: entity_head_rotation + 0x47: multi_block_change + 0x48: select_advancement_tab + 0x49: server_data + 0x4a: action_bar + 0x4b: world_border_center + 0x4c: world_border_lerp_size + 0x4d: world_border_size + 0x4e: world_border_warning_delay + 0x4f: world_border_warning_reach + 0x50: camera + 0x51: held_item_slot + 0x52: update_view_position + 0x53: update_view_distance + 0x54: spawn_position + 0x55: scoreboard_display_objective + 0x56: entity_metadata + 0x57: attach_entity + 0x58: entity_velocity + 0x59: entity_equipment + 0x5a: experience + 0x5b: update_health + 0x5c: scoreboard_objective + 0x5d: set_passengers + 0x5e: teams + 0x5f: scoreboard_score + 0x60: simulation_distance + 0x61: set_title_subtitle + 0x62: update_time + 0x63: set_title_text + 0x64: set_title_time + 0x65: entity_sound_effect + 0x66: sound_effect + 0x67: start_configuration + 0x68: stop_sound + 0x69: system_chat + 0x6a: playerlist_header + 0x6b: nbt_query_response + 0x6c: collect + 0x6d: entity_teleport + 0x6e: set_ticking_state + 0x6f: step_tick + 0x70: advancements + 0x71: entity_update_attributes + 0x72: entity_effect + 0x73: declare_recipes + 0x74: tags + params: name ? + if bundle_delimiter: void + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if chunk_batch_finished: packet_chunk_batch_finished + if chunk_batch_start: packet_chunk_batch_start + if chunk_biomes: packet_chunk_biomes + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if chat_suggestions: packet_chat_suggestions + if custom_payload: packet_custom_payload + if damage_event: packet_damage_event + if hide_message: packet_hide_message + if kick_disconnect: packet_kick_disconnect + if profileless_chat: packet_profileless_chat + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if hurt_animation: packet_hurt_animation + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if ping_response: packet_ping_response + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_remove: packet_player_remove + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if reset_score: packet_reset_score + if remove_resource_pack: packet_remove_resource_pack + if add_resource_pack: packet_add_resource_pack + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if start_configuration: packet_start_configuration + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if set_ticking_state: packet_set_ticking_state + if step_tick: packet_step_tick +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "count": 256 + } + ] + messageCount: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature?: [ + "buffer", + { + "count": 256 + } + ] + offset: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_set_difficulty: + newDifficulty: u8 + packet_message_acknowledgement: + count: varint + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + y: mouse ? + if 2: f32 + z: mouse ? + if 2: f32 + hand: mouse ? + if 0: varint + if 2: varint + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + uuid: UUID + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + selection_priority: varint + placement_priority: varint + packet_update_sign: + location: position + isFrontText: bool + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet_chat_session_update: + sessionUUID: UUID + expireTime: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_chunk_batch_received: + chunksPerTick: f32 + packet_configuration_acknowledged: + # Empty + packet_ping_request: + id: i64 + packet_set_slot_state: + slot_id: varint + window_id: varint + state: bool + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: message_acknowledgement + 0x04: chat_command + 0x05: chat_message + 0x06: chat_session_update + 0x07: chunk_batch_received + 0x08: client_command + 0x09: settings + 0x0a: tab_complete + 0x0b: configuration_acknowledged + 0x0c: enchant_item + 0x0d: window_click + 0x0e: close_window + 0x0f: set_slot_state + 0x10: custom_payload + 0x11: edit_book + 0x12: query_entity_nbt + 0x13: use_entity + 0x14: generate_structure + 0x15: keep_alive + 0x16: lock_difficulty + 0x17: position + 0x18: position_look + 0x19: look + 0x1a: flying + 0x1b: vehicle_move + 0x1c: steer_boat + 0x1d: pick_item + 0x1e: ping_request + 0x1f: craft_recipe_request + 0x20: abilities + 0x21: block_dig + 0x22: entity_action + 0x23: steer_vehicle + 0x24: pong + 0x25: recipe_book + 0x26: displayed_recipe + 0x27: name_item + 0x28: resource_pack_receive + 0x29: advancement_tab + 0x2a: select_trade + 0x2b: set_beacon_effect + 0x2c: held_item_slot + 0x2d: update_command_block + 0x2e: update_command_block_minecart + 0x2f: set_creative_slot + 0x30: update_jigsaw_block + 0x31: update_structure_block + 0x32: update_sign + 0x33: arm_animation + 0x34: spectate + 0x35: block_place + 0x36: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if chat_session_update: packet_chat_session_update + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if chunk_batch_received: packet_chunk_batch_received + if configuration_acknowledged: packet_configuration_acknowledged + if ping_request: packet_ping_request + if set_slot_state: packet_set_slot_state diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index 1c253dcf2..8b4571a6d 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -4,66 +4,72 @@ */ const fs = require('fs') const { join } = require('path') +const { parse, compile } = require('protodef-yaml') function getJSON (path) { return JSON.parse(fs.readFileSync(path, 'utf-8')) } // Parse the YML files and turn to JSON -function genProtoSchema () { - const { parse, compile } = require('protodef-yaml') - +function genProtoSchema (createPacketMap) { // Create the packet_map.yml from proto.yml const parsed = parse('./proto.yml') const version = parsed['!version'] - const packets = [] - for (const key in parsed) { - if (key.startsWith('%container')) { - const [, name] = key.split(',') - if (name.startsWith('packet_')) { - const children = parsed[key] - const packetName = name.replace('packet_', '') - const packetID = children['!id'] - packets.push([packetID, packetName, name]) + + if (createPacketMap) { + // On bedrock the packet maps are created automatically here + const packets = [] + for (const key in parsed) { + if (key.startsWith('%container')) { + const [, name] = key.split(',') + if (name.startsWith('packet_')) { + const children = parsed[key] + const packetName = name.replace('packet_', '') + const packetID = children['!id'] + packets.push([packetID, packetName, name]) + } } } + let l1 = '' + let l2 = '' + for (const [id, name, fname] of packets) { + l1 += ` 0x${id.toString(16).padStart(2, '0')}: ${name}\n` + l2 += ` if ${name}: ${fname}\n` + } + // TODO: skip creating packet_map.yml and just generate the ProtoDef map JSON directly + const t = `#Auto-generated from proto.yml, do not modify\n!import: types.yml\nmcpe_packet:\n name: varint =>\n${l1}\n params: name ?\n${l2}` + fs.writeFileSync('./packet_map.yml', t) } - let l1 = '' - let l2 = '' - for (const [id, name, fname] of packets) { - l1 += ` 0x${id.toString(16).padStart(2, '0')}: ${name}\n` - l2 += ` if ${name}: ${fname}\n` - } - // TODO: skip creating packet_map.yml and just generate the ProtoDef map JSON directly - const t = `#Auto-generated from proto.yml, do not modify\n!import: types.yml\nmcpe_packet:\n name: varint =>\n${l1}\n params: name ?\n${l2}` - fs.writeFileSync('./packet_map.yml', t) - compile('./proto.yml', 'proto.json') - return version + const json = compile('./proto.yml') + fs.unlinkSync('./packet_map.yml', { force: true }) // temp file + return [version, json] } -function convert (ver, path) { - process.chdir(path || join(__dirname, '../../data/bedrock/' + ver)) - const version = genProtoSchema() - try { fs.mkdirSync(`../${version}`) } catch {} - fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: getJSON('./proto.json') }, null, 2)) - fs.unlinkSync('./proto.json') // remove temp file - fs.unlinkSync('./packet_map.yml') // remove temp file +function convert (edition, ver, path) { + process.chdir(path || join(__dirname, `../../data/${edition}/${ver}`)) + const [version, json] = genProtoSchema(edition === 'bedrock') + fs.mkdirSync(`../${version}`, { recursive: true }) + if (edition === 'bedrock') { + fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: json }, null, 2)) + } else if (edition === 'pc') { + fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify(json, null, 2)) + } return version } -function validate (ver, path) { - process.chdir(path || join(__dirname, '../../data/bedrock/' + ver)) +function validate (edition, ver, path) { + process.chdir(path || join(__dirname, `../../data/${edition}/${ver}`)) console.log(process.cwd()) - const version = genProtoSchema() + const [version, json] = genProtoSchema(edition === 'bedrock') + + const expected = edition === 'bedrock' + ? JSON.stringify({ types: json }, null, 2) + : JSON.stringify(json, null, 2) - const expected = JSON.stringify({ types: getJSON('./proto.json') }) // If you crash here, no protocol.json was generated - run `npm run build` const actual = JSON.stringify(getJSON(`../${version}/protocol.json`)) - fs.unlinkSync('./proto.json') // remove temp file - fs.unlinkSync('./packet_map.yml') // remove temp file - // Make sure the protocol_expected.json file equals the protocol.json file; otherwise the JSON must be rebuilt if (expected !== actual) { throw Error(`${ver} (${version}) / protocol.json is desynced from yaml, please run 'npm run build'`) @@ -73,13 +79,16 @@ function validate (ver, path) { return version } +const dataPaths = require('../../data/dataPaths.json') function all (fn) { - const versions = require('../../data/dataPaths.json').bedrock - for (const versionId in versions) { - console.log('⏳', fn.name, 'protocol for bedrock', versionId) - const ver = versions[versionId] - if (ver.proto) { - fn(versionId, join(__dirname, '../../data/' + ver.proto)) + for (const edition in dataPaths) { + const versions = dataPaths[edition] + for (const versionId in versions) { + console.log('⏳', fn.name, 'protocol for', edition, versionId) + const paths = versions[versionId] + if (paths.proto) { + fn(edition, versionId, join(__dirname, '../../data/' + paths.proto)) + } } } } diff --git a/tools/js/convertMcpcProtocolJsonToYaml.js b/tools/js/convertMcpcProtocolJsonToYaml.js new file mode 100644 index 000000000..ee084ec7b --- /dev/null +++ b/tools/js/convertMcpcProtocolJsonToYaml.js @@ -0,0 +1,29 @@ +const { genYAML } = require('protodef-yaml') +const fs = require('fs') + +function convert (version) { + let text = '!version: ' + version + '\n\n' + const protocol = require(`../../data/pc/${version}/protocol.json`) + for (const state in protocol) { + const data = protocol[state] + if (state === 'types') { + text += '^types:\n' + text += genYAML(data, 1) + } + if (data.toClient) { + text += `^${state}.toClient.types:\n` + text += genYAML(data.toClient.types, 1) + } + if (data.toServer) { + text += `^${state}.toServer.types:\n` + text += genYAML(data.toServer.types, 1) + } + } + fs.writeFileSync(`../../data/pc/${version}/proto.yml`, text) +} + +if (process.argv.length < 3) { + console.log('Usage: node convertMcpcProtocolJsonToYaml.js ') + process.exit(1) +} +convert(process.argv[2]) \ No newline at end of file diff --git a/tools/js/package.json b/tools/js/package.json index d7384f7bd..83b69b0fe 100644 --- a/tools/js/package.json +++ b/tools/js/package.json @@ -16,7 +16,9 @@ "glob": "^10.2.6", "mocha": "^10.2.0", "protodef-validator": "^1.2.2", - "protodef-yaml": "^1.2.2", "standard": "^16.0.3" + }, + "devDependencies": { + "protodef-yaml": "github:extremeheat/protodef-yaml#segment" } } From 7da82650113129cd276527f5a60b1cc48815a49f Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 22 Jun 2024 21:52:15 -0400 Subject: [PATCH 02/14] update bedrock protocol data for latest protodef-yaml changes Changes only to sorting --- data/bedrock/1.16.201/protocol.json | 288 ++++---- data/bedrock/1.16.210/protocol.json | 628 ++++++++-------- data/bedrock/1.16.220/protocol.json | 628 ++++++++-------- data/bedrock/1.17.0/protocol.json | 628 ++++++++-------- data/bedrock/1.17.10/protocol.json | 628 ++++++++-------- data/bedrock/1.17.30/protocol.json | 662 ++++++++--------- data/bedrock/1.17.40/protocol.json | 662 ++++++++--------- data/bedrock/1.18.0/protocol.json | 662 ++++++++--------- data/bedrock/1.18.11/protocol.json | 662 ++++++++--------- data/bedrock/1.18.30/protocol.json | 662 ++++++++--------- data/bedrock/1.19.1/protocol.json | 688 +++++++++--------- data/bedrock/1.19.10/protocol.json | 750 +++++++++---------- data/bedrock/1.19.20/protocol.json | 750 +++++++++---------- data/bedrock/1.19.21/protocol.json | 750 +++++++++---------- data/bedrock/1.19.30/protocol.json | 750 +++++++++---------- data/bedrock/1.19.40/protocol.json | 750 +++++++++---------- data/bedrock/1.19.50/protocol.json | 782 ++++++++++---------- data/bedrock/1.19.60/protocol.json | 784 ++++++++++---------- data/bedrock/1.19.62/protocol.json | 784 ++++++++++---------- data/bedrock/1.19.70/protocol.json | 810 ++++++++++----------- data/bedrock/1.19.80/protocol.json | 810 ++++++++++----------- data/bedrock/1.20.0/protocol.json | 810 ++++++++++----------- data/bedrock/1.20.10/protocol.json | 816 ++++++++++----------- data/bedrock/1.20.30/protocol.json | 820 ++++++++++----------- data/bedrock/1.20.40/protocol.json | 822 ++++++++++----------- data/bedrock/1.20.50/protocol.json | 822 ++++++++++----------- data/bedrock/1.20.61/protocol.json | 824 ++++++++++----------- data/bedrock/1.20.71/protocol.json | 828 ++++++++++----------- data/bedrock/1.20.80/protocol.json | 828 ++++++++++----------- data/bedrock/1.21.0/protocol.json | 830 +++++++++++----------- tools/js/convertMcpcProtocolJsonToYaml.js | 2 +- 31 files changed, 10960 insertions(+), 10960 deletions(-) diff --git a/data/bedrock/1.16.201/protocol.json b/data/bedrock/1.16.201/protocol.json index 24715e01e..d016ad394 100644 --- a/data/bedrock/1.16.201/protocol.json +++ b/data/bedrock/1.16.201/protocol.json @@ -1,5 +1,36 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -4859,6 +4890,37 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "build_and_mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5531,6 +5593,26 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -6389,6 +6471,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -6974,6 +7073,39 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint", + "flags": { + "ascend": 1, + "descend": 2, + "north_jump": 4, + "jump_down": 8, + "sprint_down": 16, + "change_height": 32, + "jumping": 64, + "auto_jumping_in_water": 128, + "sneaking": 256, + "sneak_down": 512, + "up": 1024, + "down": 2048, + "left": 4096, + "right": 8192, + "up_left": 16384, + "up_right": 32768, + "want_up": 65536, + "want_down": 131072, + "want_down_slow": 262144, + "want_up_slow": 524288, + "sprinting": 1048576, + "ascend_scaffolding": 2097152, + "descend_scaffolding": 4194304, + "sneak_toggle_down": 8388608, + "persist_sneak": 16777216 + } + } + ], "packet_creative_content": [ "container", [ @@ -7071,6 +7203,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -7316,150 +7460,6 @@ "type": "bool" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "build_and_mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664 - } - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint", - "flags": { - "ascend": 1, - "descend": 2, - "north_jump": 4, - "jump_down": 8, - "sprint_down": 16, - "change_height": 32, - "jumping": 64, - "auto_jumping_in_water": 128, - "sneaking": 256, - "sneak_down": 512, - "up": 1024, - "down": 2048, - "left": 4096, - "right": 8192, - "up_left": 16384, - "up_right": 32768, - "want_up": 65536, - "want_down": 131072, - "want_down_slow": 262144, - "want_up_slow": 524288, - "sprinting": 1048576, - "ascend_scaffolding": 2097152, - "descend_scaffolding": 4194304, - "sneak_toggle_down": 8388608, - "persist_sneak": 16777216 - } - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.16.210/protocol.json b/data/bedrock/1.16.210/protocol.json index e945d4c0f..53beb2dea 100644 --- a/data/bedrock/1.16.210/protocol.json +++ b/data/bedrock/1.16.210/protocol.json @@ -1,5 +1,36 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -625,6 +656,119 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special" + ] + } + ], "Link": [ "container", [ @@ -4150,6 +4294,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5023,6 +5180,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5702,6 +5892,26 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -6610,6 +6820,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -7342,35 +7569,81 @@ } ] ], - "packet_creative_content": [ - "container", - [ - { - "name": "items", - "type": "ItemStacks" - } - ] - ], - "packet_player_enchant_options": [ - "container", - [ - { - "name": "enchant_options", - "type": "EnchantOptions" - } - ] - ], - "packet_item_stack_request": [ - "container", - [ - { - "name": "requests", - "type": [ - "array", - { - "countType": "varint", - "type": "ItemStackRequest" - } + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_scaffolding", + "descend_scaffolding", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], + "packet_creative_content": [ + "container", + [ + { + "name": "items", + "type": "ItemStacks" + } + ] + ], + "packet_player_enchant_options": [ + "container", + [ + { + "name": "enchant_options", + "type": "EnchantOptions" + } + ] + ], + "packet_item_stack_request": [ + "container", + [ + { + "name": "requests", + "type": [ + "array", + { + "countType": "varint", + "type": "ItemStackRequest" + } ] } ] @@ -7445,6 +7718,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -7767,291 +8052,6 @@ ] } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_scaffolding", - "descend_scaffolding", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.16.220/protocol.json b/data/bedrock/1.16.220/protocol.json index 257612a8d..ca4930ec7 100644 --- a/data/bedrock/1.16.220/protocol.json +++ b/data/bedrock/1.16.220/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -793,6 +836,119 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special" + ] + } + ], "Link": [ "container", [ @@ -4584,6 +4740,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5476,6 +5645,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5701,6 +5903,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6301,6 +6515,26 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7368,6 +7602,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -8216,11 +8467,57 @@ } ] ], - "packet_creative_content": [ - "container", - [ - { - "name": "items", + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_scaffolding", + "descend_scaffolding", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], + "packet_creative_content": [ + "container", + [ + { + "name": "items", "type": [ "array", { @@ -8343,6 +8640,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -8665,315 +8974,6 @@ ] } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_scaffolding", - "descend_scaffolding", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.17.0/protocol.json b/data/bedrock/1.17.0/protocol.json index 42c9bd877..b0b452b70 100644 --- a/data/bedrock/1.17.0/protocol.json +++ b/data/bedrock/1.17.0/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -796,6 +839,122 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead" + ] + } + ], "Link": [ "container", [ @@ -4662,6 +4821,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5554,6 +5726,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5780,6 +5985,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6380,6 +6597,26 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7447,6 +7684,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -8295,8 +8549,54 @@ } ] ], - "packet_creative_content": [ - "container", + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_scaffolding", + "descend_scaffolding", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], + "packet_creative_content": [ + "container", [ { "name": "items", @@ -8422,6 +8722,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -8775,318 +9087,6 @@ "type": "varint64" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_scaffolding", - "descend_scaffolding", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.17.10/protocol.json b/data/bedrock/1.17.10/protocol.json index b9f8ad82a..13a2b7949 100644 --- a/data/bedrock/1.17.10/protocol.json +++ b/data/bedrock/1.17.10/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -796,6 +839,122 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead" + ] + } + ], "Link": [ "container", [ @@ -4672,6 +4831,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5644,6 +5816,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5870,6 +6075,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6470,6 +6687,26 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7563,6 +7800,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -8411,8 +8665,54 @@ } ] ], - "packet_creative_content": [ - "container", + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], + "packet_creative_content": [ + "container", [ { "name": "items", @@ -8538,6 +8838,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -8949,318 +9261,6 @@ "type": "string" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 6, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.17.30/protocol.json b/data/bedrock/1.17.30/protocol.json index 0c56b9329..d4f9e6f6f 100644 --- a/data/bedrock/1.17.30/protocol.json +++ b/data/bedrock/1.17.30/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -796,6 +839,122 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead" + ] + } + ], "Link": [ "container", [ @@ -4778,6 +4937,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5772,6 +5944,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5998,6 +6203,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6598,6 +6815,31 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7707,20 +7949,37 @@ } ] ], - "packet_set_scoreboard_identity": [ - "container", - [ - { - "name": "action", - "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "register_identity", - "1": "clear_identity" - } - } + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], + "packet_set_scoreboard_identity": [ + "container", + [ + { + "name": "action", + "type": [ + "mapper", + { + "type": "i8", + "mappings": { + "0": "register_identity", + "1": "clear_identity" + } + } ] }, { @@ -8629,6 +8888,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -8756,6 +9061,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -9247,323 +9564,6 @@ "type": "zigzag64" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.17.40/protocol.json b/data/bedrock/1.17.40/protocol.json index 15456982e..dabf94cf2 100644 --- a/data/bedrock/1.17.40/protocol.json +++ b/data/bedrock/1.17.40/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -796,6 +839,122 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead" + ] + } + ], "Link": [ "container", [ @@ -4806,6 +4965,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5773,6 +5945,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -5999,6 +6204,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6599,6 +6816,31 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7708,20 +7950,37 @@ } ] ], - "packet_set_scoreboard_identity": [ - "container", - [ - { - "name": "action", - "type": [ - "mapper", - { - "type": "i8", - "mappings": { - "0": "register_identity", - "1": "clear_identity" - } - } + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], + "packet_set_scoreboard_identity": [ + "container", + [ + { + "name": "action", + "type": [ + "mapper", + { + "type": "i8", + "mappings": { + "0": "register_identity", + "1": "clear_identity" + } + } ] }, { @@ -8630,6 +8889,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -8757,6 +9062,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -9344,323 +9661,6 @@ "type": "zigzag32" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.18.0/protocol.json b/data/bedrock/1.18.0/protocol.json index e0ef980fd..7ca8e666f 100644 --- a/data/bedrock/1.18.0/protocol.json +++ b/data/bedrock/1.18.0/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -796,6 +839,122 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead" + ] + } + ], "Link": [ "container", [ @@ -4820,6 +4979,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5818,6 +5990,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6044,6 +6249,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6644,6 +6861,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7753,15 +8000,32 @@ } ] ], - "packet_set_scoreboard_identity": [ - "container", - [ - { - "name": "action", - "type": [ - "mapper", - { - "type": "i8", + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], + "packet_set_scoreboard_identity": [ + "container", + [ + { + "name": "action", + "type": [ + "mapper", + { + "type": "i8", "mappings": { "0": "register_identity", "1": "clear_identity" @@ -8675,6 +8939,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -8802,6 +9112,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -9406,328 +9728,6 @@ "type": "zigzag32" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.18.11/protocol.json b/data/bedrock/1.18.11/protocol.json index 709b5ab46..b144216b9 100644 --- a/data/bedrock/1.18.11/protocol.json +++ b/data/bedrock/1.18.11/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -796,6 +839,126 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob" + ] + } + ], "Link": [ "container", [ @@ -4855,6 +5018,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5853,6 +6029,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6092,6 +6301,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6702,6 +6923,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7811,11 +8062,28 @@ } ] ], - "packet_set_scoreboard_identity": [ - "container", - [ - { - "name": "action", + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], + "packet_set_scoreboard_identity": [ + "container", + [ + { + "name": "action", "type": [ "mapper", { @@ -8733,6 +9001,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -8860,6 +9174,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -9662,332 +9988,6 @@ "type": "string" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.18.30/protocol.json b/data/bedrock/1.18.30/protocol.json index 58e463444..d2ac04c68 100644 --- a/data/bedrock/1.18.30/protocol.json +++ b/data/bedrock/1.18.30/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -800,6 +843,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -4933,6 +5100,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5936,6 +6116,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6175,6 +6388,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6787,6 +7012,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7896,7 +8151,24 @@ } ] ], - "packet_set_scoreboard_identity": [ + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], + "packet_set_scoreboard_identity": [ "container", [ { @@ -8822,6 +9094,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -8949,6 +9267,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -9900,336 +10230,6 @@ "type": "lf32" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.1/protocol.json b/data/bedrock/1.19.1/protocol.json index e70516d42..90e1d7f8d 100644 --- a/data/bedrock/1.19.1/protocol.json +++ b/data/bedrock/1.19.1/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -800,6 +843,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -4982,6 +5149,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -5979,6 +6159,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6222,6 +6435,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6838,6 +7063,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -7947,7 +8202,24 @@ } ] ], - "packet_set_scoreboard_identity": [ + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], + "packet_set_scoreboard_identity": [ "container", [ { @@ -8887,6 +9159,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9014,6 +9332,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10056,349 +10386,6 @@ } ] ], - "packet_toast_request": [ - "container", - [ - { - "name": "title", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], "RequestPermissions": [ "bitflags", { @@ -10414,6 +10401,19 @@ "teleport": 128 } } + ], + "packet_toast_request": [ + "container", + [ + { + "name": "title", + "type": "string" + }, + { + "name": "message", + "type": "string" + } + ] ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.10/protocol.json b/data/bedrock/1.19.10/protocol.json index a450113dd..33aad56c6 100644 --- a/data/bedrock/1.19.10/protocol.json +++ b/data/bedrock/1.19.10/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -800,6 +843,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -3641,6 +3808,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5059,6 +5253,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6045,6 +6252,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6288,6 +6528,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -6904,8 +7156,38 @@ } ] ], - "packet_command_request": [ - "container", + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], + "packet_command_request": [ + "container", [ { "name": "command", @@ -8013,6 +8295,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -8953,6 +9252,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9080,6 +9425,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10122,6 +10479,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10214,379 +10587,6 @@ "type": "nbt" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.20/protocol.json b/data/bedrock/1.19.20/protocol.json index cf2e88a80..c03f7c9b4 100644 --- a/data/bedrock/1.19.20/protocol.json +++ b/data/bedrock/1.19.20/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -800,6 +843,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -3679,6 +3846,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5129,6 +5323,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6115,6 +6322,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6358,6 +6598,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7000,8 +7252,38 @@ } ] ], - "packet_command_request": [ - "container", + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], + "packet_command_request": [ + "container", [ { "name": "command", @@ -8156,6 +8438,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9118,6 +9417,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9245,6 +9590,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10287,6 +10644,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10406,379 +10779,6 @@ ] } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.21/protocol.json b/data/bedrock/1.19.21/protocol.json index cf2e88a80..c03f7c9b4 100644 --- a/data/bedrock/1.19.21/protocol.json +++ b/data/bedrock/1.19.21/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -800,6 +843,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -3679,6 +3846,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5129,6 +5323,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6115,6 +6322,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6358,6 +6598,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7000,8 +7252,38 @@ } ] ], - "packet_command_request": [ - "container", + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], + "packet_command_request": [ + "container", [ { "name": "command", @@ -8156,6 +8438,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9118,6 +9417,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9245,6 +9590,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10287,6 +10644,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10406,379 +10779,6 @@ ] } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.30/protocol.json b/data/bedrock/1.19.30/protocol.json index 79dd6d888..495b7d88f 100644 --- a/data/bedrock/1.19.30/protocol.json +++ b/data/bedrock/1.19.30/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -800,6 +843,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -3761,6 +3928,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5229,6 +5423,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6215,6 +6422,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6458,6 +6698,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7100,8 +7352,38 @@ } ] ], - "packet_command_request": [ - "container", + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], + "packet_command_request": [ + "container", [ { "name": "command", @@ -8260,6 +8542,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9247,6 +9546,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9374,6 +9719,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10416,6 +10773,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10619,379 +10992,6 @@ "type": "string" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.40/protocol.json b/data/bedrock/1.19.40/protocol.json index b0c2dacce..70e73c220 100644 --- a/data/bedrock/1.19.40/protocol.json +++ b/data/bedrock/1.19.40/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,130 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging" + ] + } + ], "Link": [ "container", [ @@ -3819,6 +3986,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5296,6 +5490,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6287,6 +6494,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6530,6 +6770,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7172,8 +7424,38 @@ } ] ], - "packet_command_request": [ - "container", + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], + "packet_command_request": [ + "container", [ { "name": "command", @@ -8332,6 +8614,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9319,6 +9618,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9446,6 +9791,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10488,6 +10845,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10691,379 +11064,6 @@ "type": "string" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.50/protocol.json b/data/bedrock/1.19.50/protocol.json index 16faf9aec..a5d8911fc 100644 --- a/data/bedrock/1.19.50/protocol.json +++ b/data/bedrock/1.19.50/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,134 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space" + ] + } + ], "Link": [ "container", [ @@ -3833,6 +4004,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5312,6 +5510,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6303,6 +6514,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6546,6 +6790,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7188,6 +7444,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8348,6 +8634,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9337,6 +9640,52 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9464,6 +9813,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10506,6 +10867,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10710,6 +11087,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -10722,397 +11113,6 @@ "type": "vec3f" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.60/protocol.json b/data/bedrock/1.19.60/protocol.json index bfa619a14..b6dab71a3 100644 --- a/data/bedrock/1.19.60/protocol.json +++ b/data/bedrock/1.19.60/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,134 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space" + ] + } + ], "Link": [ "container", [ @@ -3868,6 +4039,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5353,6 +5551,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6344,6 +6555,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6587,6 +6831,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7229,6 +7485,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8393,6 +8679,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9391,6 +9694,53 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9518,6 +9868,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10560,6 +10922,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10764,6 +11142,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -10803,398 +11195,6 @@ ] } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.62/protocol.json b/data/bedrock/1.19.62/protocol.json index b42a5b6f6..246ab9907 100644 --- a/data/bedrock/1.19.62/protocol.json +++ b/data/bedrock/1.19.62/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,134 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space" + ] + } + ], "Link": [ "container", [ @@ -3872,6 +4043,33 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5357,6 +5555,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6348,6 +6559,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6591,6 +6835,18 @@ } ] ], + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], "packet_clientbound_map_item_data": [ "container", [ @@ -7233,6 +7489,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8397,6 +8683,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9395,6 +9698,53 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9522,6 +9872,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10564,6 +10926,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10768,6 +11146,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -10807,398 +11199,6 @@ ] } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.70/protocol.json b/data/bedrock/1.19.70/protocol.json index f4117158c..4c20213e0 100644 --- a/data/bedrock/1.19.70/protocol.json +++ b/data/bedrock/1.19.70/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,138 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching" + ] + } + ], "Link": [ "container", [ @@ -3884,6 +4059,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5375,6 +5578,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6366,6 +6582,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6609,13 +6858,25 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ - { - "name": "map_id", - "type": "zigzag64" - }, + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ + { + "name": "map_id", + "type": "zigzag64" + }, { "name": "update_flags", "type": "UpdateMapFlags" @@ -7251,6 +7512,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8415,6 +8706,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9417,6 +9725,54 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9544,6 +9900,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10586,6 +10954,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10790,6 +11174,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -10866,404 +11264,6 @@ "type": "nbt" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.19.80/protocol.json b/data/bedrock/1.19.80/protocol.json index fc54ce040..710218f3a 100644 --- a/data/bedrock/1.19.80/protocol.json +++ b/data/bedrock/1.19.80/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,138 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching" + ] + } + ], "Link": [ "container", [ @@ -3919,6 +4094,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5428,6 +5631,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6425,6 +6641,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6668,13 +6917,25 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ - { - "name": "map_id", - "type": "zigzag64" - }, + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ + { + "name": "map_id", + "type": "zigzag64" + }, { "name": "update_flags", "type": "UpdateMapFlags" @@ -7314,6 +7575,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8478,6 +8769,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9480,6 +9788,54 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9607,6 +9963,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10649,6 +11017,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10853,6 +11237,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11004,404 +11402,6 @@ "type": "bool" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.0/protocol.json b/data/bedrock/1.20.0/protocol.json index c50f6e119..f1e51ffa6 100644 --- a/data/bedrock/1.20.0/protocol.json +++ b/data/bedrock/1.20.0/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -803,6 +846,138 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching" + ] + } + ], "Link": [ "container", [ @@ -3925,6 +4100,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5438,6 +5641,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6435,6 +6651,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6679,13 +6928,25 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ - { - "name": "map_id", - "type": "zigzag64" - }, + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ + { + "name": "map_id", + "type": "zigzag64" + }, { "name": "update_flags", "type": "UpdateMapFlags" @@ -7325,6 +7586,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8489,6 +8780,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9499,6 +9807,54 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9626,6 +9982,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10668,6 +11036,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10872,6 +11256,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11035,404 +11433,6 @@ "type": "bool" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.10/protocol.json b/data/bedrock/1.20.10/protocol.json index d7b918543..3228eaea3 100644 --- a/data/bedrock/1.20.10/protocol.json +++ b/data/bedrock/1.20.10/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -804,6 +847,139 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling" + ] + } + ], "Link": [ "container", [ @@ -3929,6 +4105,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5444,6 +5648,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6441,6 +6658,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6685,12 +6935,24 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ - { - "name": "map_id", - "type": "zigzag64" + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ + { + "name": "map_id", + "type": "zigzag64" }, { "name": "update_flags", @@ -7395,6 +7657,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8559,6 +8851,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9570,6 +9879,57 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9697,6 +10057,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10739,6 +11111,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -10943,6 +11331,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11128,408 +11530,6 @@ "type": "varint64" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.30/protocol.json b/data/bedrock/1.20.30/protocol.json index 4237c718b..e79a95af8 100644 --- a/data/bedrock/1.20.30/protocol.json +++ b/data/bedrock/1.20.30/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -849,6 +892,139 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling" + ] + } + ], "Link": [ "container", [ @@ -3983,6 +4159,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5567,6 +5771,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6564,6 +6781,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6808,12 +7058,24 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ - { - "name": "map_id", - "type": "zigzag64" + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ + { + "name": "map_id", + "type": "zigzag64" }, { "name": "update_flags", @@ -7518,6 +7780,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8682,6 +8974,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9693,6 +10002,59 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9820,6 +10182,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10862,6 +11236,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11066,6 +11456,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11392,410 +11796,6 @@ "packet_refresh_entitlements": [ "container", [] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.40/protocol.json b/data/bedrock/1.20.40/protocol.json index ad30cc56f..2e8465757 100644 --- a/data/bedrock/1.20.40/protocol.json +++ b/data/bedrock/1.20.40/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -849,6 +892,142 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling", + "timer_flag_1", + "timer_flag_2", + "timer_flag_3" + ] + } + ], "Link": [ "container", [ @@ -4008,6 +4187,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5695,6 +5902,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6692,6 +6912,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6936,9 +7189,21 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ { "name": "map_id", "type": "zigzag64" @@ -7646,6 +7911,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8810,6 +9105,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9821,6 +10133,60 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying", + "received_server_data" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9948,6 +10314,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -10990,6 +11368,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11194,6 +11588,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11520,414 +11928,6 @@ "packet_refresh_entitlements": [ "container", [] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling", - "timer_flag_1", - "timer_flag_2", - "timer_flag_3" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying", - "received_server_data" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.50/protocol.json b/data/bedrock/1.20.50/protocol.json index 5566ae780..8a36dd41c 100644 --- a/data/bedrock/1.20.50/protocol.json +++ b/data/bedrock/1.20.50/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -866,6 +909,142 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling", + "timer_flag_1", + "timer_flag_2", + "timer_flag_3" + ] + } + ], "Link": [ "container", [ @@ -4037,6 +4216,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5730,6 +5937,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6729,6 +6949,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6973,9 +7226,21 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ { "name": "map_id", "type": "zigzag64" @@ -7683,6 +7948,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8857,6 +9152,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9868,6 +10180,60 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying", + "received_server_data" + ] + } + ], "packet_creative_content": [ "container", [ @@ -9995,6 +10361,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -11037,6 +11415,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11241,6 +11635,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11665,414 +12073,6 @@ "type": "vec3f" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling", - "timer_flag_1", - "timer_flag_2", - "timer_flag_3" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying", - "received_server_data" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.61/protocol.json b/data/bedrock/1.20.61/protocol.json index 209d03d01..ddd479c47 100644 --- a/data/bedrock/1.20.61/protocol.json +++ b/data/bedrock/1.20.61/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -866,6 +909,142 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling", + "timer_flag_1", + "timer_flag_2", + "timer_flag_3" + ] + } + ], "Link": [ "container", [ @@ -4041,6 +4220,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5732,6 +5939,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6736,6 +6956,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -6984,9 +7237,21 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ { "name": "map_id", "type": "zigzag64" @@ -7694,6 +7959,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8868,6 +9163,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9874,6 +10186,61 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying", + "received_server_data", + "client_predicted_vehicle" + ] + } + ], "packet_creative_content": [ "container", [ @@ -10001,6 +10368,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -11043,6 +11422,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11247,6 +11642,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11718,415 +12127,6 @@ "type": "vec3f" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling", - "timer_flag_1", - "timer_flag_2", - "timer_flag_3" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying", - "received_server_data", - "client_predicted_vehicle" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.71/protocol.json b/data/bedrock/1.20.71/protocol.json index 682abb566..85f7a7662 100644 --- a/data/bedrock/1.20.71/protocol.json +++ b/data/bedrock/1.20.71/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -866,6 +909,142 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling", + "timer_flag_1", + "timer_flag_2", + "timer_flag_3" + ] + } + ], "Link": [ "container", [ @@ -4065,6 +4244,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5758,6 +5965,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6774,6 +6994,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -7022,9 +7275,21 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", - [ + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", + [ { "name": "map_id", "type": "zigzag64" @@ -7723,6 +7988,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8897,6 +9192,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9911,6 +10223,63 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying", + "received_server_data", + "client_predicted_vehicle", + "paddling_left", + "paddling_right" + ] + } + ], "packet_creative_content": [ "container", [ @@ -10038,6 +10407,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -11080,6 +11461,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11284,6 +11681,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11755,417 +12166,6 @@ "type": "vec3f" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling", - "timer_flag_1", - "timer_flag_2", - "timer_flag_3" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying", - "received_server_data", - "client_predicted_vehicle", - "paddling_left", - "paddling_right" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.20.80/protocol.json b/data/bedrock/1.20.80/protocol.json index 74299f8ff..c97d9a04d 100644 --- a/data/bedrock/1.20.80/protocol.json +++ b/data/bedrock/1.20.80/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -866,6 +909,143 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling", + "timer_flag_1", + "timer_flag_2", + "timer_flag_3", + "body_rotation_blocked" + ] + } + ], "Link": [ "container", [ @@ -4084,6 +4264,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5803,6 +6011,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6820,6 +7041,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -7068,8 +7322,20 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", [ { "name": "map_id", @@ -7769,6 +8035,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -8943,6 +9239,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -9957,6 +10270,63 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying", + "received_server_data", + "client_predicted_vehicle", + "paddling_left", + "paddling_right" + ] + } + ], "packet_creative_content": [ "container", [ @@ -10084,6 +10454,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -11143,6 +11525,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11347,6 +11745,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11820,418 +12232,6 @@ "type": "vec3f" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling", - "timer_flag_1", - "timer_flag_2", - "timer_flag_3", - "body_rotation_blocked" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying", - "received_server_data", - "client_predicted_vehicle", - "paddling_left", - "paddling_right" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/data/bedrock/1.21.0/protocol.json b/data/bedrock/1.21.0/protocol.json index 75a0a7786..c6c831255 100644 --- a/data/bedrock/1.21.0/protocol.json +++ b/data/bedrock/1.21.0/protocol.json @@ -1,5 +1,48 @@ { "types": { + "string": [ + "pstring", + { + "countType": "varint" + } + ], + "ByteArray": [ + "buffer", + { + "countType": "varint" + } + ], + "SignedByteArray": [ + "buffer", + { + "countType": "zigzag32" + } + ], + "LittleString": [ + "pstring", + { + "countType": "li32" + } + ], + "LatinString": [ + "pstring", + { + "countType": "varint", + "encoding": "latin1" + } + ], + "ShortArray": [ + "buffer", + { + "countType": "li16" + } + ], + "ShortString": [ + "pstring", + { + "countType": "li16" + } + ], "varint64": "native", "zigzag32": "native", "zigzag64": "native", @@ -867,6 +910,143 @@ ] } ], + "MetadataFlags1": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "onfire", + "sneaking", + "riding", + "sprinting", + "action", + "invisible", + "tempted", + "inlove", + "saddled", + "powered", + "ignited", + "baby", + "converting", + "critical", + "can_show_nametag", + "always_show_nametag", + "no_ai", + "silent", + "wallclimbing", + "can_climb", + "swimmer", + "can_fly", + "walker", + "resting", + "sitting", + "angry", + "interested", + "charged", + "tamed", + "orphaned", + "leashed", + "sheared", + "gliding", + "elder", + "moving", + "breathing", + "chested", + "stackable", + "showbase", + "rearing", + "vibrating", + "idling", + "evoker_spell", + "charge_attack", + "wasd_controlled", + "can_power_jump", + "can_dash", + "linger", + "has_collision", + "affected_by_gravity", + "fire_immune", + "dancing", + "enchanted", + "show_trident_rope", + "container_private", + "transforming", + "spin_attack", + "swimming", + "bribed", + "pregnant", + "laying_egg", + "rider_can_pick", + "transition_sitting", + "eating", + "laying_down" + ] + } + ], + "MetadataFlags2": [ + "bitflags", + { + "type": "zigzag64", + "big": true, + "flags": [ + "sneezing", + "trusting", + "rolling", + "scared", + "in_scaffolding", + "over_scaffolding", + "fall_through_scaffolding", + "blocking", + "transition_blocking", + "blocked_using_shield", + "blocked_using_damaged_shield", + "sleeping", + "wants_to_wake", + "trade_interest", + "door_breaker", + "breaking_obstruction", + "door_opener", + "illager_captain", + "stunned", + "roaring", + "delayed_attacking", + "avoiding_mobs", + "avoiding_block", + "facing_target_to_range_attack", + "hidden_when_invisible", + "is_in_ui", + "stalking", + "emoting", + "celebrating", + "admiring", + "celebrating_special", + "unknown95", + "ram_attack", + "playing_dead", + "in_ascendable_block", + "over_descendable_block", + "croaking", + "eat_mob", + "jump_goal_jump", + "emerging", + "sniffing", + "digging", + "sonic_boom", + "has_dash_cooldown", + "push_towards_closest_space", + "scenting", + "rising", + "feeling_happy", + "searching", + "crawling", + "timer_flag_1", + "timer_flag_2", + "timer_flag_3", + "body_rotation_blocked" + ] + } + ], "Link": [ "container", [ @@ -4153,6 +4333,34 @@ } } ], + "AbilitySet": [ + "bitflags", + { + "type": "lu32", + "flags": [ + "build", + "mine", + "doors_and_switches", + "open_containers", + "attack_players", + "attack_mobs", + "operator_commands", + "teleport", + "invulnerable", + "flying", + "may_fly", + "instant_build", + "lightning", + "fly_speed", + "walk_speed", + "muted", + "world_builder", + "no_clip", + "privileged_builder", + "count" + ] + } + ], "AbilityLayers": [ "container", [ @@ -5890,6 +6098,19 @@ } ] ], + "UpdateBlockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "neighbors": 1, + "network": 2, + "no_graphic": 4, + "unused": 8, + "priority": 16 + } + } + ], "packet_add_painting": [ "container", [ @@ -6912,6 +7133,39 @@ } ] ], + "AdventureFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "world_immutable": 1, + "no_pvp": 2, + "auto_jump": 32, + "allow_flight": 64, + "no_clip": 128, + "world_builder": 256, + "flying": 512, + "muted": 1024 + } + } + ], + "ActionPermissions": [ + "bitflags", + { + "type": "varint", + "flags": { + "mine": 65537, + "doors_and_switches": 65538, + "open_containers": 65540, + "attack_players": 65544, + "attack_mobs": 65552, + "operator": 65568, + "teleport": 65664, + "build": 65792, + "default": 66048 + } + } + ], "packet_block_entity_data": [ "container", [ @@ -7161,8 +7415,20 @@ } ] ], - "packet_clientbound_map_item_data": [ - "container", + "UpdateMapFlags": [ + "bitflags", + { + "type": "varint", + "flags": [ + "void", + "texture", + "decoration", + "initialisation" + ] + } + ], + "packet_clientbound_map_item_data": [ + "container", [ { "name": "map_id", @@ -7862,6 +8128,36 @@ } ] ], + "CommandFlags": [ + "bitfield", + [ + { + "name": "unused", + "size": 1, + "signed": false + }, + { + "name": "collapse_enum", + "size": 1, + "signed": false + }, + { + "name": "has_semantic_constraint", + "size": 1, + "signed": false + }, + { + "name": "as_chained_command", + "size": 1, + "signed": false + }, + { + "name": "unknown2", + "size": 4, + "signed": false + } + ] + ], "packet_command_request": [ "container", [ @@ -9036,6 +9332,23 @@ } ] ], + "DeltaMoveFlags": [ + "bitflags", + { + "type": "lu16", + "flags": { + "has_x": 1, + "has_y": 2, + "has_z": 4, + "has_rot_x": 8, + "has_rot_y": 16, + "has_rot_z": 32, + "on_ground": 64, + "teleport": 128, + "force_move": 256 + } + } + ], "packet_set_scoreboard_identity": [ "container", [ @@ -10051,6 +10364,64 @@ } ] ], + "InputFlag": [ + "bitflags", + { + "type": "varint64", + "big": true, + "flags": [ + "ascend", + "descend", + "north_jump", + "jump_down", + "sprint_down", + "change_height", + "jumping", + "auto_jumping_in_water", + "sneaking", + "sneak_down", + "up", + "down", + "left", + "right", + "up_left", + "up_right", + "want_up", + "want_down", + "want_down_slow", + "want_up_slow", + "sprinting", + "ascend_block", + "descend_block", + "sneak_toggle_down", + "persist_sneak", + "start_sprinting", + "stop_sprinting", + "start_sneaking", + "stop_sneaking", + "start_swimming", + "stop_swimming", + "start_jumping", + "start_gliding", + "stop_gliding", + "item_interact", + "block_action", + "item_stack_request", + "handled_teleport", + "emoting", + "missed_swing", + "start_crawling", + "stop_crawling", + "start_flying", + "stop_flying", + "received_server_data", + "client_predicted_vehicle", + "paddling_left", + "paddling_right", + "block_breaking_delay_enabled" + ] + } + ], "packet_creative_content": [ "container", [ @@ -10178,6 +10549,18 @@ } ] ], + "ArmorDamageType": [ + "bitflags", + { + "type": "u8", + "flags": { + "head": 1, + "chest": 2, + "legs": 4, + "feet": 8 + } + } + ], "packet_update_player_game_type": [ "container", [ @@ -11250,6 +11633,22 @@ } ] ], + "RequestPermissions": [ + "bitflags", + { + "type": "lu16", + "flags": { + "build": 1, + "mine": 2, + "doors_and_switches": 4, + "open_containers": 8, + "attack_players": 16, + "attack_mobs": 32, + "operator": 64, + "teleport": 128 + } + } + ], "packet_toast_request": [ "container", [ @@ -11454,6 +11853,20 @@ } ] ], + "InputLockFlags": [ + "bitflags", + { + "type": "varint", + "flags": { + "move": 2, + "jump": 4, + "sneak": 8, + "mount": 16, + "dismount": 32, + "rotation": 64 + } + } + ], "packet_update_client_input_locks": [ "container", [ @@ -11936,419 +12349,6 @@ "type": "vec3f" } ] - ], - "string": [ - "pstring", - { - "countType": "varint" - } - ], - "ByteArray": [ - "buffer", - { - "countType": "varint" - } - ], - "SignedByteArray": [ - "buffer", - { - "countType": "zigzag32" - } - ], - "LittleString": [ - "pstring", - { - "countType": "li32" - } - ], - "LatinString": [ - "pstring", - { - "countType": "varint", - "encoding": "latin1" - } - ], - "ShortArray": [ - "buffer", - { - "countType": "li16" - } - ], - "ShortString": [ - "pstring", - { - "countType": "li16" - } - ], - "MetadataFlags1": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "onfire", - "sneaking", - "riding", - "sprinting", - "action", - "invisible", - "tempted", - "inlove", - "saddled", - "powered", - "ignited", - "baby", - "converting", - "critical", - "can_show_nametag", - "always_show_nametag", - "no_ai", - "silent", - "wallclimbing", - "can_climb", - "swimmer", - "can_fly", - "walker", - "resting", - "sitting", - "angry", - "interested", - "charged", - "tamed", - "orphaned", - "leashed", - "sheared", - "gliding", - "elder", - "moving", - "breathing", - "chested", - "stackable", - "showbase", - "rearing", - "vibrating", - "idling", - "evoker_spell", - "charge_attack", - "wasd_controlled", - "can_power_jump", - "can_dash", - "linger", - "has_collision", - "affected_by_gravity", - "fire_immune", - "dancing", - "enchanted", - "show_trident_rope", - "container_private", - "transforming", - "spin_attack", - "swimming", - "bribed", - "pregnant", - "laying_egg", - "rider_can_pick", - "transition_sitting", - "eating", - "laying_down" - ] - } - ], - "MetadataFlags2": [ - "bitflags", - { - "type": "zigzag64", - "big": true, - "flags": [ - "sneezing", - "trusting", - "rolling", - "scared", - "in_scaffolding", - "over_scaffolding", - "fall_through_scaffolding", - "blocking", - "transition_blocking", - "blocked_using_shield", - "blocked_using_damaged_shield", - "sleeping", - "wants_to_wake", - "trade_interest", - "door_breaker", - "breaking_obstruction", - "door_opener", - "illager_captain", - "stunned", - "roaring", - "delayed_attacking", - "avoiding_mobs", - "avoiding_block", - "facing_target_to_range_attack", - "hidden_when_invisible", - "is_in_ui", - "stalking", - "emoting", - "celebrating", - "admiring", - "celebrating_special", - "unknown95", - "ram_attack", - "playing_dead", - "in_ascendable_block", - "over_descendable_block", - "croaking", - "eat_mob", - "jump_goal_jump", - "emerging", - "sniffing", - "digging", - "sonic_boom", - "has_dash_cooldown", - "push_towards_closest_space", - "scenting", - "rising", - "feeling_happy", - "searching", - "crawling", - "timer_flag_1", - "timer_flag_2", - "timer_flag_3", - "body_rotation_blocked" - ] - } - ], - "AbilitySet": [ - "bitflags", - { - "type": "lu32", - "flags": [ - "build", - "mine", - "doors_and_switches", - "open_containers", - "attack_players", - "attack_mobs", - "operator_commands", - "teleport", - "invulnerable", - "flying", - "may_fly", - "instant_build", - "lightning", - "fly_speed", - "walk_speed", - "muted", - "world_builder", - "no_clip", - "privileged_builder", - "count" - ] - } - ], - "UpdateBlockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "neighbors": 1, - "network": 2, - "no_graphic": 4, - "unused": 8, - "priority": 16 - } - } - ], - "AdventureFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "world_immutable": 1, - "no_pvp": 2, - "auto_jump": 32, - "allow_flight": 64, - "no_clip": 128, - "world_builder": 256, - "flying": 512, - "muted": 1024 - } - } - ], - "ActionPermissions": [ - "bitflags", - { - "type": "varint", - "flags": { - "mine": 65537, - "doors_and_switches": 65538, - "open_containers": 65540, - "attack_players": 65544, - "attack_mobs": 65552, - "operator": 65568, - "teleport": 65664, - "build": 65792, - "default": 66048 - } - } - ], - "UpdateMapFlags": [ - "bitflags", - { - "type": "varint", - "flags": [ - "void", - "texture", - "decoration", - "initialisation" - ] - } - ], - "CommandFlags": [ - "bitfield", - [ - { - "name": "unused", - "size": 1, - "signed": false - }, - { - "name": "collapse_enum", - "size": 1, - "signed": false - }, - { - "name": "has_semantic_constraint", - "size": 1, - "signed": false - }, - { - "name": "as_chained_command", - "size": 1, - "signed": false - }, - { - "name": "unknown2", - "size": 4, - "signed": false - } - ] - ], - "DeltaMoveFlags": [ - "bitflags", - { - "type": "lu16", - "flags": { - "has_x": 1, - "has_y": 2, - "has_z": 4, - "has_rot_x": 8, - "has_rot_y": 16, - "has_rot_z": 32, - "on_ground": 64, - "teleport": 128, - "force_move": 256 - } - } - ], - "InputFlag": [ - "bitflags", - { - "type": "varint64", - "big": true, - "flags": [ - "ascend", - "descend", - "north_jump", - "jump_down", - "sprint_down", - "change_height", - "jumping", - "auto_jumping_in_water", - "sneaking", - "sneak_down", - "up", - "down", - "left", - "right", - "up_left", - "up_right", - "want_up", - "want_down", - "want_down_slow", - "want_up_slow", - "sprinting", - "ascend_block", - "descend_block", - "sneak_toggle_down", - "persist_sneak", - "start_sprinting", - "stop_sprinting", - "start_sneaking", - "stop_sneaking", - "start_swimming", - "stop_swimming", - "start_jumping", - "start_gliding", - "stop_gliding", - "item_interact", - "block_action", - "item_stack_request", - "handled_teleport", - "emoting", - "missed_swing", - "start_crawling", - "stop_crawling", - "start_flying", - "stop_flying", - "received_server_data", - "client_predicted_vehicle", - "paddling_left", - "paddling_right", - "block_breaking_delay_enabled" - ] - } - ], - "ArmorDamageType": [ - "bitflags", - { - "type": "u8", - "flags": { - "head": 1, - "chest": 2, - "legs": 4, - "feet": 8 - } - } - ], - "RequestPermissions": [ - "bitflags", - { - "type": "lu16", - "flags": { - "build": 1, - "mine": 2, - "doors_and_switches": 4, - "open_containers": 8, - "attack_players": 16, - "attack_mobs": 32, - "operator": 64, - "teleport": 128 - } - } - ], - "InputLockFlags": [ - "bitflags", - { - "type": "varint", - "flags": { - "move": 2, - "jump": 4, - "sneak": 8, - "mount": 16, - "dismount": 32, - "rotation": 64 - } - } ] } } \ No newline at end of file diff --git a/tools/js/convertMcpcProtocolJsonToYaml.js b/tools/js/convertMcpcProtocolJsonToYaml.js index ee084ec7b..5b1638885 100644 --- a/tools/js/convertMcpcProtocolJsonToYaml.js +++ b/tools/js/convertMcpcProtocolJsonToYaml.js @@ -26,4 +26,4 @@ if (process.argv.length < 3) { console.log('Usage: node convertMcpcProtocolJsonToYaml.js ') process.exit(1) } -convert(process.argv[2]) \ No newline at end of file +convert(process.argv[2]) From 6fb186658e3969cb196704dcfe497b3885766744 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 22 Jun 2024 22:47:32 -0400 Subject: [PATCH 03/14] add pc support to incrementVersion script --- data/dataPaths.json | 5 +- tools/js/incrementVersion.js | 103 +++++++++++++++++++---------------- 2 files changed, 58 insertions(+), 50 deletions(-) diff --git a/data/dataPaths.json b/data/dataPaths.json index 22274868c..9f0a976ba 100644 --- a/data/dataPaths.json +++ b/data/dataPaths.json @@ -1318,7 +1318,8 @@ "loginPacket": "pc/1.20.2", "tints": "pc/1.20.2", "mapIcons": "pc/1.20.2", - "commands": "pc/1.20.3" + "commands": "pc/1.20.3", + "proto": "pc/latest" }, "1.20.4": { "attributes": "pc/1.17", @@ -1345,7 +1346,7 @@ "mapIcons": "pc/1.20.2", "commands": "pc/1.20.3", "sounds": "pc/1.20.4", - "proto": "pc/1.20.4" + "proto": "pc/latest" } }, "bedrock": { diff --git a/tools/js/incrementVersion.js b/tools/js/incrementVersion.js index 83c947685..0dff81952 100644 --- a/tools/js/incrementVersion.js +++ b/tools/js/incrementVersion.js @@ -11,6 +11,7 @@ function writeJSON (path, data) { fs.writeFileSync(path, JSON.stringify(data, null, 2), 'utf-8') } +// Reads and updates the JSON after processing in callback function alterJSON (path, callback) { const jsonContents = getJSON(path) if (callback(jsonContents) !== false) { @@ -18,70 +19,76 @@ function alterJSON (path, callback) { } } -function pcProtocol (version, protocol) { - throw new Error('Not Implemented') -} - -function bedrockProtocol (version, protocol) { - const dataRoot = join(data, 'bedrock') - if (fs.existsSync(join(data, 'bedrock', version))) { - console.log(`data/bedrock/${version} already exists`) - process.exit(1) - } +function updateProtocol (edition, version, protocolVersionNumber) { + const dataRoot = join(data, edition) + const protocolVersionsPath = join(dataRoot, 'common', 'protocolVersions.json') + const versionsPath = join(dataRoot, 'common', 'versions.json') + const versionPath = join(dataRoot, version, 'version.json') - const protocolVersion = { - version: parseInt(protocol), + const protocolVersionsEntry = { + version: parseInt(protocolVersionNumber), minecraftVersion: version, majorVersion: version.split('.').slice(0, 2).join('.'), releaseType: 'release' } - alterJSON(join(data, 'dataPaths.json'), dataPaths => { - let latest = null - const paths = dataPaths.bedrock - Object.entries(paths).forEach(([ver, values]) => { - if (values.proto === 'bedrock/latest') { - latest = ver + let didUpdateProtocol = false + + // Move the latest/proto.yml to its associated folder defined in the !version meta field + const latestProtoPath = join(dataRoot, 'latest', 'proto.yml') + const protoYml = fs.readFileSync(latestProtoPath, 'utf-8') + const oldProtoVersion = protoYml.match(/!version: ([0-9.]+)/)[1] + // Check if $oldVersion/proto.yml already exists + const oldProtoPath = join(dataRoot, oldProtoVersion, 'proto.yml') + if (fs.existsSync(oldProtoPath)) { + console.log(`Can't move ${latestProtoPath} to ${oldProtoPath} because the file already exists.`) + } else { + fs.copyFileSync(latestProtoPath, oldProtoPath) + if (edition === 'bedrock') { + fs.copyFileSync(join(dataRoot, 'latest', 'types.yml'), join(dataRoot, oldProtoPath, 'types.yml')) + } + didUpdateProtocol = true + // Update references to the old version in the dataPaths.json file + alterJSON(join(data, 'dataPaths.json'), dataPaths => { + for (const v in dataPaths[edition]) { + const e = dataPaths[edition][v] + // if .proto points to latest, update it to the old version + if (e.proto === `${edition}/latest`) { + e.proto = `${edition}/${oldProtoVersion}` + } } }) + } - if (latest === null) { - console.log('Unable to determine previous version.') - process.exit(1) + // Update commons/protocolVersions.json (pc does this auto with cron) + alterJSON(protocolVersionsPath, protoVers => { + if (!protoVers.find(v => v.version === protocolVersionsEntry.version)) { + protoVers.unshift(protocolVersionsEntry) } - - paths[version] = Object.assign({}, paths[latest]) - paths[version].version = `bedrock/${version}` - paths[version].protocol = `bedrock/${version}` - paths[latest].proto = `bedrock/${latest}` - paths[latest].types = `bedrock/${latest}` - fs.copyFileSync( - join(dataRoot, 'latest', 'proto.yml'), - join(dataRoot, latest, 'proto.yml')) - fs.copyFileSync( - join(dataRoot, 'latest', 'types.yml'), - join(dataRoot, latest, 'types.yml')) }) - - alterJSON(join(dataRoot, 'common', 'protocolVersions.json'), protoVers => { - protoVers.unshift(protocolVersion) - }) - - alterJSON(join(dataRoot, 'common', 'versions.json'), versions => { - versions.push(version) + // Update commons/version.json + alterJSON(versionsPath, versions => { + if (!versions.includes(version)) { + versions.push(version) + } }) - fs.mkdirSync(join(dataRoot, version)) - writeJSON(join(dataRoot, version, 'version.json'), protocolVersion) + // Update the $version/version.json file + fs.mkdirSync(join(dataRoot, version), { recursive: true }) + if (!fs.existsSync(versionPath)) { + writeJSON(versionPath, protocolVersionsEntry) + } - const protoYml = fs.readFileSync(join(dataRoot, 'latest', 'proto.yml'), 'utf-8') - const protoYmlUpdate = protoYml.replace(/!version: [0-9.]+/, `!version: ${version}`) - fs.writeFileSync(join(dataRoot, 'latest', 'proto.yml'), protoYmlUpdate, 'utf-8') + // Update the '!version' meta field in the latest/proto.yml + if (didUpdateProtocol) { + const protoYmlUpdate = protoYml.replace(/!version: [0-9.]+/, `!version: ${version}`) + fs.writeFileSync(join(dataRoot, 'latest', 'proto.yml'), protoYmlUpdate, 'utf-8') + } } const platforms = { - bedrock: bedrockProtocol, - pc: pcProtocol + bedrock: updateProtocol, + pc: updateProtocol } if (process.argv.length !== 5) { @@ -96,4 +103,4 @@ if (platforms[platform] === undefined) { process.exit(1) } -platforms[platform](version, protocol) +platforms[platform](platform, version, protocol) From 084a4138ed71850f32d24752d015909a78d3e47b Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 23 Jun 2024 00:21:37 -0400 Subject: [PATCH 04/14] update build --- data/pc/1.20.3/protocol.json | 470 +++++++++++----------- data/pc/latest/proto.yml | 63 +++ tools/js/compileProtocol.js | 4 +- tools/js/convertMcpcProtocolJsonToYaml.js | 5 +- 4 files changed, 312 insertions(+), 230 deletions(-) diff --git a/data/pc/1.20.3/protocol.json b/data/pc/1.20.3/protocol.json index 88d85de47..b84081403 100644 --- a/data/pc/1.20.3/protocol.json +++ b/data/pc/1.20.3/protocol.json @@ -121,7 +121,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -291,7 +292,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -482,7 +484,8 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -1220,7 +1223,8 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -1239,7 +1243,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1318,8 +1323,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1333,7 +1338,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1373,8 +1379,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1388,7 +1394,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1421,8 +1428,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1436,7 +1443,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1562,11 +1570,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1583,7 +1591,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1659,10 +1668,10 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response", + "3": "login_acknowledged" } } ] @@ -1678,7 +1687,8 @@ "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response", "login_acknowledged": "packet_login_acknowledged" - } + }, + "default": "void" } ] } @@ -1835,16 +1845,16 @@ { "type": "varint", "mappings": { - "0x00": "custom_payload", - "0x01": "disconnect", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "ping", - "0x05": "registry_data", - "0x06": "remove_resource_pack", - "0x07": "add_resource_pack", - "0x08": "feature_flags", - "0x09": "tags" + "0": "custom_payload", + "1": "disconnect", + "2": "finish_configuration", + "3": "keep_alive", + "4": "ping", + "5": "registry_data", + "6": "remove_resource_pack", + "7": "add_resource_pack", + "8": "feature_flags", + "9": "tags" } } ] @@ -1866,7 +1876,8 @@ "add_resource_pack": "packet_add_resource_pack", "feature_flags": "packet_feature_flags", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -1971,12 +1982,12 @@ { "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "custom_payload", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "pong", - "0x05": "resource_pack_receive" + "0": "settings", + "1": "custom_payload", + "2": "finish_configuration", + "3": "keep_alive", + "4": "pong", + "5": "resource_pack_receive" } } ] @@ -1994,7 +2005,8 @@ "keep_alive": "packet_keep_alive", "pong": "packet_pong", "resource_pack_receive": "packet_resource_pack_receive" - } + }, + "default": "void" } ] } @@ -3477,14 +3489,14 @@ { "compareTo": "columns", "fields": { - "0": "void" + "0": [ + "buffer", + { + "countType": "varint" + } + ] }, - "default": [ - "buffer", - { - "countType": "varint" - } - ] + "default": "void" } ] } @@ -5526,7 +5538,8 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } + }, + "default": "void" } ] } @@ -5856,123 +5869,123 @@ { "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "hide_message", - "0x1b": "kick_disconnect", - "0x1c": "profileless_chat", - "0x1d": "entity_status", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "open_horse_window", - "0x22": "hurt_animation", - "0x23": "initialize_world_border", - "0x24": "keep_alive", - "0x25": "map_chunk", - "0x26": "world_event", - "0x27": "world_particles", - "0x28": "update_light", - "0x29": "login", - "0x2a": "map", - "0x2b": "trade_list", - "0x2c": "rel_entity_move", - "0x2d": "entity_move_look", - "0x2e": "entity_look", - "0x2f": "vehicle_move", - "0x30": "open_book", - "0x31": "open_window", - "0x32": "open_sign_entity", - "0x33": "ping", - "0x34": "ping_response", - "0x35": "craft_recipe_response", - "0x36": "abilities", - "0x37": "player_chat", - "0x38": "end_combat_event", - "0x39": "enter_combat_event", - "0x3a": "death_combat_event", - "0x3b": "player_remove", - "0x3c": "player_info", - "0x3d": "face_player", - "0x3e": "position", - "0x3f": "unlock_recipes", - "0x40": "entity_destroy", - "0x41": "remove_entity_effect", - "0x42": "reset_score", - "0x43": "remove_resource_pack", - "0x44": "add_resource_pack", - "0x45": "respawn", - "0x46": "entity_head_rotation", - "0x47": "multi_block_change", - "0x48": "select_advancement_tab", - "0x49": "server_data", - "0x4a": "action_bar", - "0x4b": "world_border_center", - "0x4c": "world_border_lerp_size", - "0x4d": "world_border_size", - "0x4e": "world_border_warning_delay", - "0x4f": "world_border_warning_reach", - "0x50": "camera", - "0x51": "held_item_slot", - "0x52": "update_view_position", - "0x53": "update_view_distance", - "0x54": "spawn_position", - "0x55": "scoreboard_display_objective", - "0x56": "entity_metadata", - "0x57": "attach_entity", - "0x58": "entity_velocity", - "0x59": "entity_equipment", - "0x5a": "experience", - "0x5b": "update_health", - "0x5c": "scoreboard_objective", - "0x5d": "set_passengers", - "0x5e": "teams", - "0x5f": "scoreboard_score", - "0x60": "simulation_distance", - "0x61": "set_title_subtitle", - "0x62": "update_time", - "0x63": "set_title_text", - "0x64": "set_title_time", - "0x65": "entity_sound_effect", - "0x66": "sound_effect", - "0x67": "start_configuration", - "0x68": "stop_sound", - "0x69": "system_chat", - "0x6a": "playerlist_header", - "0x6b": "nbt_query_response", - "0x6c": "collect", - "0x6d": "entity_teleport", - "0x6e": "set_ticking_state", - "0x6f": "step_tick", - "0x70": "advancements", - "0x71": "entity_update_attributes", - "0x72": "entity_effect", - "0x73": "declare_recipes", - "0x74": "tags" + "0": "bundle_delimiter", + "1": "spawn_entity", + "2": "spawn_entity_experience_orb", + "3": "animation", + "4": "statistics", + "5": "acknowledge_player_digging", + "6": "block_break_animation", + "7": "tile_entity_data", + "8": "block_action", + "9": "block_change", + "10": "boss_bar", + "11": "difficulty", + "12": "chunk_batch_finished", + "13": "chunk_batch_start", + "14": "chunk_biomes", + "15": "clear_titles", + "16": "tab_complete", + "17": "declare_commands", + "18": "close_window", + "19": "window_items", + "20": "craft_progress_bar", + "21": "set_slot", + "22": "set_cooldown", + "23": "chat_suggestions", + "24": "custom_payload", + "25": "damage_event", + "26": "hide_message", + "27": "kick_disconnect", + "28": "profileless_chat", + "29": "entity_status", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "open_horse_window", + "34": "hurt_animation", + "35": "initialize_world_border", + "36": "keep_alive", + "37": "map_chunk", + "38": "world_event", + "39": "world_particles", + "40": "update_light", + "41": "login", + "42": "map", + "43": "trade_list", + "44": "rel_entity_move", + "45": "entity_move_look", + "46": "entity_look", + "47": "vehicle_move", + "48": "open_book", + "49": "open_window", + "50": "open_sign_entity", + "51": "ping", + "52": "ping_response", + "53": "craft_recipe_response", + "54": "abilities", + "55": "player_chat", + "56": "end_combat_event", + "57": "enter_combat_event", + "58": "death_combat_event", + "59": "player_remove", + "60": "player_info", + "61": "face_player", + "62": "position", + "63": "unlock_recipes", + "64": "entity_destroy", + "65": "remove_entity_effect", + "66": "reset_score", + "67": "remove_resource_pack", + "68": "add_resource_pack", + "69": "respawn", + "70": "entity_head_rotation", + "71": "multi_block_change", + "72": "select_advancement_tab", + "73": "server_data", + "74": "action_bar", + "75": "world_border_center", + "76": "world_border_lerp_size", + "77": "world_border_size", + "78": "world_border_warning_delay", + "79": "world_border_warning_reach", + "80": "camera", + "81": "held_item_slot", + "82": "update_view_position", + "83": "update_view_distance", + "84": "spawn_position", + "85": "scoreboard_display_objective", + "86": "entity_metadata", + "87": "attach_entity", + "88": "entity_velocity", + "89": "entity_equipment", + "90": "experience", + "91": "update_health", + "92": "scoreboard_objective", + "93": "set_passengers", + "94": "teams", + "95": "scoreboard_score", + "96": "simulation_distance", + "97": "set_title_subtitle", + "98": "update_time", + "99": "set_title_text", + "100": "set_title_time", + "101": "entity_sound_effect", + "102": "sound_effect", + "103": "start_configuration", + "104": "stop_sound", + "105": "system_chat", + "106": "playerlist_header", + "107": "nbt_query_response", + "108": "collect", + "109": "entity_teleport", + "110": "set_ticking_state", + "111": "step_tick", + "112": "advancements", + "113": "entity_update_attributes", + "114": "entity_effect", + "115": "declare_recipes", + "116": "tags" } } ] @@ -6101,7 +6114,8 @@ "tags": "packet_tags", "set_ticking_state": "packet_set_ticking_state", "step_tick": "packet_step_tick" - } + }, + "default": "void" } ] } @@ -7098,7 +7112,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -7193,61 +7208,61 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "chunk_batch_received", - "0x08": "client_command", - "0x09": "settings", - "0x0a": "tab_complete", - "0x0b": "configuration_acknowledged", - "0x0c": "enchant_item", - "0x0d": "window_click", - "0x0e": "close_window", - "0x0f": "set_slot_state", - "0x10": "custom_payload", - "0x11": "edit_book", - "0x12": "query_entity_nbt", - "0x13": "use_entity", - "0x14": "generate_structure", - "0x15": "keep_alive", - "0x16": "lock_difficulty", - "0x17": "position", - "0x18": "position_look", - "0x19": "look", - "0x1a": "flying", - "0x1b": "vehicle_move", - "0x1c": "steer_boat", - "0x1d": "pick_item", - "0x1e": "ping_request", - "0x1f": "craft_recipe_request", - "0x20": "abilities", - "0x21": "block_dig", - "0x22": "entity_action", - "0x23": "steer_vehicle", - "0x24": "pong", - "0x25": "recipe_book", - "0x26": "displayed_recipe", - "0x27": "name_item", - "0x28": "resource_pack_receive", - "0x29": "advancement_tab", - "0x2a": "select_trade", - "0x2b": "set_beacon_effect", - "0x2c": "held_item_slot", - "0x2d": "update_command_block", - "0x2e": "update_command_block_minecart", - "0x2f": "set_creative_slot", - "0x30": "update_jigsaw_block", - "0x31": "update_structure_block", - "0x32": "update_sign", - "0x33": "arm_animation", - "0x34": "spectate", - "0x35": "block_place", - "0x36": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "message_acknowledgement", + "4": "chat_command", + "5": "chat_message", + "6": "chat_session_update", + "7": "chunk_batch_received", + "8": "client_command", + "9": "settings", + "10": "tab_complete", + "11": "configuration_acknowledged", + "12": "enchant_item", + "13": "window_click", + "14": "close_window", + "15": "set_slot_state", + "16": "custom_payload", + "17": "edit_book", + "18": "query_entity_nbt", + "19": "use_entity", + "20": "generate_structure", + "21": "keep_alive", + "22": "lock_difficulty", + "23": "position", + "24": "position_look", + "25": "look", + "26": "flying", + "27": "vehicle_move", + "28": "steer_boat", + "29": "pick_item", + "30": "ping_request", + "31": "craft_recipe_request", + "32": "abilities", + "33": "block_dig", + "34": "entity_action", + "35": "steer_vehicle", + "36": "pong", + "37": "recipe_book", + "38": "displayed_recipe", + "39": "name_item", + "40": "resource_pack_receive", + "41": "advancement_tab", + "42": "select_trade", + "43": "set_beacon_effect", + "44": "held_item_slot", + "45": "update_command_block", + "46": "update_command_block_minecart", + "47": "set_creative_slot", + "48": "update_jigsaw_block", + "49": "update_structure_block", + "50": "update_sign", + "51": "arm_animation", + "52": "spectate", + "53": "block_place", + "54": "use_item" } } ] @@ -7314,7 +7329,8 @@ "configuration_acknowledged": "packet_configuration_acknowledged", "ping_request": "packet_ping_request", "set_slot_state": "packet_set_slot_state" - } + }, + "default": "void" } ] } @@ -7323,4 +7339,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/latest/proto.yml b/data/pc/latest/proto.yml index 3ccd6690e..bcc6279b4 100644 --- a/data/pc/latest/proto.yml +++ b/data/pc/latest/proto.yml @@ -92,14 +92,17 @@ positionType: string entityId: positionType ? if minecraft:entity: varint + default: void entityEyeHeight: positionType ? if minecraft:entity: varint + default: void destination: positionType ? if minecraft:block: position if minecraft:entity: varint ticks: varint if 96: delayInTicksBeforeShown: varint + default: void ingredient: slot[]varint position: [ "bitfield", @@ -144,6 +147,7 @@ "count": 256 } ] + default: void entityMetadataItem: $compareTo ? if byte: i8 if int: varint @@ -341,6 +345,7 @@ children: varint[]varint redirectNode: flags/has_redirect_node ? if 1: varint + default: void extraNodeData: flags/command_node_type ? if 0: void if 1: @@ -423,8 +428,10 @@ ] min: flags/min_present ? if 1: f32 + default: void max: flags/max_present ? if 1: f32 + default: void if brigadier:double: flags: [ "bitfield", @@ -448,8 +455,10 @@ ] min: flags/min_present ? if 1: f64 + default: void max: flags/max_present ? if 1: f64 + default: void if brigadier:integer: flags: [ "bitfield", @@ -473,8 +482,10 @@ ] min: flags/min_present ? if 1: i32 + default: void max: flags/max_present ? if 1: i32 + default: void if brigadier:long: flags: [ "bitfield", @@ -498,8 +509,10 @@ ] min: flags/min_present ? if 1: i64 + default: void max: flags/max_present ? if 1: i64 + default: void if brigadier:string: varint => 0: SINGLE_WORD 1: QUOTABLE_PHRASE @@ -586,6 +599,7 @@ if minecraft:uuid: void suggestionType: ../flags/has_custom_suggestions ? if 1: string + default: void ^handshaking.toClient.types: packet: name: varint => @@ -860,6 +874,7 @@ ] backgroundTexture: flags/has_background_texture ? if 1: string + default: void xCord: f32 yCord: f32 requirements: []varint @@ -893,18 +908,23 @@ title: action ? if 0: anonymousNbt if 3: anonymousNbt + default: void health: action ? if 0: f32 if 2: f32 + default: void color: action ? if 0: varint if 4: varint + default: void dividers: action ? if 0: varint if 4: varint + default: void flags: action ? if 0: u8 if 5: u8 + default: void packet_difficulty: difficulty: u8 difficultyLocked: bool @@ -930,8 +950,10 @@ isEntity: bool entityId: isEntity ? if true: varint + default: void entity_feet_eyes: isEntity ? if true: varint + default: void packet_nbt_query_response: transactionId: varint nbt: anonOptionalNbt @@ -995,6 +1017,7 @@ "count": 256 } ] + default: void packet_kick_disconnect: reason: anonymousNbt packet_profileless_chat: @@ -1120,12 +1143,21 @@ columns: u8 rows: columns ? if 0: void + default: u8 x: columns ? if 0: void + default: u8 y: columns ? if 0: void + default: u8 data: columns ? if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] packet_trade_list: windowId: varint trades: []varint @@ -1197,6 +1229,7 @@ filterType: varint filterTypeMask: filterType ? if 2: i64[]varint + default: void type: varint networkName: anonymousNbt networkTargetName?: anonymousNbt @@ -1246,6 +1279,7 @@ if 59: game_profile if 61: game_profile if 63: game_profile + default: void chatSession: ../action ? if 2: chat_session if 3: chat_session @@ -1279,6 +1313,7 @@ if 59: chat_session if 62: chat_session if 63: chat_session + default: void gamemode: ../action ? if 4: varint if 5: varint @@ -1312,6 +1347,7 @@ if 61: varint if 62: varint if 63: varint + default: void listed: ../action ? if 8: bool if 9: bool @@ -1345,6 +1381,7 @@ if 61: bool if 62: bool if 63: bool + default: void latency: ../action ? if 16: varint if 17: varint @@ -1378,6 +1415,7 @@ if 61: varint if 62: varint if 63: varint + default: void displayName: ../action ? if 32: [ "option", @@ -1507,6 +1545,7 @@ "option", "anonymousNbt" ] + default: void packet_position: x: f64 y: f64 @@ -1528,6 +1567,7 @@ recipes1: string[]varint recipes2: action ? if 0: string[]varint + default: void packet_entity_destroy: entityIds: varint[]varint packet_remove_entity_effect: @@ -1617,9 +1657,11 @@ displayText: action ? if 0: anonymousNbt if 2: anonymousNbt + default: void type: action ? if 0: varint if 2: varint + default: void number_format: action ? if 0: [ "option", @@ -1629,13 +1671,17 @@ "option", "varint" ] + default: void styling: action ? if 0: number_format ? if 1: anonymousNbt if 2: anonymousNbt + default: void if 2: number_format ? if 1: anonymousNbt if 2: anonymousNbt + default: void + default: void packet_set_passengers: entityId: varint passengers: varint[]varint @@ -1645,28 +1691,36 @@ name: mode ? if 0: anonymousNbt if 2: anonymousNbt + default: void friendlyFire: mode ? if 0: i8 if 2: i8 + default: void nameTagVisibility: mode ? if 0: string if 2: string + default: void collisionRule: mode ? if 0: string if 2: string + default: void formatting: mode ? if 0: varint if 2: varint + default: void prefix: mode ? if 0: anonymousNbt if 2: anonymousNbt + default: void suffix: mode ? if 0: anonymousNbt if 2: anonymousNbt + default: void players: mode ? if 0: string[]varint if 3: string[]varint if 4: string[]varint + default: void packet_scoreboard_score: itemName: string scoreName: string @@ -1676,6 +1730,7 @@ styling: number_format ? if 1: anonymousNbt if 2: anonymousNbt + default: void packet_spawn_position: location: position angle: f32 @@ -1688,6 +1743,7 @@ if 0: resource: string range?: f32 + default: void soundCategory: soundSource entityId: varint volume: f32 @@ -1698,15 +1754,18 @@ source: flags ? if 1: varint if 3: varint + default: void sound: flags ? if 2: string if 3: string + default: void packet_sound_effect: soundId: varint soundEvent: soundId ? if 0: resource: string range?: f32 + default: void soundCategory: soundSource x: i32 y: i32 @@ -2243,13 +2302,17 @@ mouse: varint x: mouse ? if 2: f32 + default: void y: mouse ? if 2: f32 + default: void z: mouse ? if 2: f32 + default: void hand: mouse ? if 0: varint if 2: varint + default: void sneaking: bool packet_generate_structure: location: position diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index 8b4571a6d..078109b46 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -42,7 +42,7 @@ function genProtoSchema (createPacketMap) { } const json = compile('./proto.yml') - fs.unlinkSync('./packet_map.yml', { force: true }) // temp file + fs.rmSync('./packet_map.yml', { force: true }) // temp file return [version, json] } @@ -68,7 +68,7 @@ function validate (edition, ver, path) { : JSON.stringify(json, null, 2) // If you crash here, no protocol.json was generated - run `npm run build` - const actual = JSON.stringify(getJSON(`../${version}/protocol.json`)) + const actual = JSON.stringify(getJSON(`../${version}/protocol.json`), null, 2) // Make sure the protocol_expected.json file equals the protocol.json file; otherwise the JSON must be rebuilt if (expected !== actual) { diff --git a/tools/js/convertMcpcProtocolJsonToYaml.js b/tools/js/convertMcpcProtocolJsonToYaml.js index 5b1638885..aa89c97cf 100644 --- a/tools/js/convertMcpcProtocolJsonToYaml.js +++ b/tools/js/convertMcpcProtocolJsonToYaml.js @@ -19,7 +19,10 @@ function convert (version) { text += genYAML(data.toServer.types, 1) } } - fs.writeFileSync(`../../data/pc/${version}/proto.yml`, text) + const outFile = `../../data/pc/${version}/proto.yml` + const absPath = fs.realpathSync(`../../data/pc/${version}/`) + '/proto.yml' + console.log(`Wrote to ${absPath}`) + fs.writeFileSync(outFile, text) } if (process.argv.length < 3) { From 6fc56e38d4d7271f90438376a1d8dc3ffc579b65 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 23 Jun 2024 01:56:37 -0400 Subject: [PATCH 05/14] update pc proto.yml to add class name comments --- data/pc/latest/proto.yml | 1113 ++++++++++++++++++++++---------------- 1 file changed, 657 insertions(+), 456 deletions(-) diff --git a/data/pc/latest/proto.yml b/data/pc/latest/proto.yml index bcc6279b4..1e6f922d6 100644 --- a/data/pc/latest/proto.yml +++ b/data/pc/latest/proto.yml @@ -1,4 +1,5 @@ !version: 1.20.3 +!StartDocs: true ^types: varint: native @@ -35,28 +36,28 @@ "countType": "varint" } ] - vec3f: + vec3f: x: f32 y: f32 z: f32 - vec4f: + vec4f: x: f32 y: f32 z: f32 w: f32 - vec3f64: + vec3f64: x: f64 y: f64 z: f64 - slot: + slot: present: bool _: present ? if false: void - if true: + if true: itemId: varint itemCount: i8 nbtData: anonOptionalNbt - particle: + particle: particleId: varint data: [ "particleData", @@ -65,16 +66,16 @@ } ] particleData: $compareTo ? - if 2: + if 2: blockState: varint - if 3: + if 3: blockState: varint - if 14: + if 14: red: f32 green: f32 blue: f32 scale: f32 - if 15: + if 15: fromRed: f32 fromGreen: f32 fromBlue: f32 @@ -82,13 +83,13 @@ toRed: f32 toGreen: f32 toBlue: f32 - if 27: + if 27: blockState: varint - if 33: + if 33: rotation: f32 - if 42: + if 42: item: slot - if 43: + if 43: positionType: string entityId: positionType ? if minecraft:entity: varint @@ -100,7 +101,7 @@ if minecraft:block: position if minecraft:entity: varint ticks: varint - if 96: + if 96: delayInTicksBeforeShown: varint default: void ingredient: slot[]varint @@ -135,7 +136,7 @@ 7: player 8: ambient 9: voice - packedChunkPos: + packedChunkPos: z: i32 x: i32 previousMessages: []varint @@ -161,7 +162,7 @@ ] if item_stack: slot if boolean: bool - if rotations: + if rotations: pitch: f32 yaw: f32 roll: f32 @@ -179,7 +180,7 @@ if optional_block_state: optvarint if compound_tag: anonymousNbt if particle: particle - if villager_data: + if villager_data: villagerType: varint villagerProfession: varint level: varint @@ -258,9 +259,9 @@ ] } ] - minecraft_simple_recipe_format: + minecraft_simple_recipe_format: category: varint - minecraft_smelting_format: + minecraft_smelting_format: group: string category: varint ingredient: ingredient @@ -270,7 +271,7 @@ tags: []varint tagName: string entries: varint[]varint - chunkBlockEntity: + chunkBlockEntity: _: [ "bitfield", [ @@ -289,9 +290,9 @@ y: i16 type: varint nbtData: anonOptionalNbt - chat_session?: + chat_session?: uuid: UUID - publicKey: + publicKey: expireTime: i64 keyBytes: [ "buffer", @@ -305,13 +306,13 @@ "countType": "varint" } ] - game_profile: + game_profile: name: string properties: []varint key: string value: string signature?: string - command_node: + command_node: flags: [ "bitfield", [ @@ -348,9 +349,9 @@ default: void extraNodeData: flags/command_node_type ? if 0: void - if 1: + if 1: name: string - if 2: + if 2: name: string parser: varint => 0: brigadier:bool @@ -405,7 +406,7 @@ 49: minecraft:uuid properties: parser ? if brigadier:bool: void - if brigadier:float: + if brigadier:float: flags: [ "bitfield", [ @@ -432,7 +433,7 @@ max: flags/max_present ? if 1: f32 default: void - if brigadier:double: + if brigadier:double: flags: [ "bitfield", [ @@ -459,7 +460,7 @@ max: flags/max_present ? if 1: f64 default: void - if brigadier:integer: + if brigadier:integer: flags: [ "bitfield", [ @@ -486,7 +487,7 @@ max: flags/max_present ? if 1: i32 default: void - if brigadier:long: + if brigadier:long: flags: [ "bitfield", [ @@ -583,15 +584,15 @@ if minecraft:float_range: void if minecraft:dimension: void if minecraft:gamemode: void - if minecraft:time: + if minecraft:time: min: i32 - if minecraft:resource_or_tag: + if minecraft:resource_or_tag: registry: string - if minecraft:resource_or_tag_key: + if minecraft:resource_or_tag_key: registry: string - if minecraft:resource: + if minecraft:resource: registry: string - if minecraft:resource_key: + if minecraft:resource_key: registry: string if minecraft:template_mirror: void if minecraft:template_rotation: void @@ -601,18 +602,18 @@ if 1: string default: void ^handshaking.toClient.types: - packet: + packet: name: varint => params: ["switch",{"compareTo":"name","fields":{}}] ^handshaking.toServer.types: - packet_set_protocol: + packet_set_protocol: protocolVersion: varint serverHost: string serverPort: u16 nextState: varint - packet_legacy_server_list_ping: + packet_legacy_server_list_ping: payload: u8 - packet: + packet: name: varint => 0x00: set_protocol 0xfe: legacy_server_list_ping @@ -620,11 +621,13 @@ if set_protocol: packet_set_protocol if legacy_server_list_ping: packet_legacy_server_list_ping ^status.toClient.types: - packet_server_info: + # MC: ClientboundStatusResponsePacket + packet_server_info: response: string - packet_ping: + # MC: ClientboundPongResponsePacket + packet_ping: time: i64 - packet: + packet: name: varint => 0x00: server_info 0x01: ping @@ -632,11 +635,13 @@ if server_info: packet_server_info if ping: packet_ping ^status.toServer.types: - packet_ping_start: + # MC: ServerboundStatusRequestPacket + packet_ping_start: # Empty - packet_ping: + # MC: ServerboundPingRequestPacket + packet_ping: time: i64 - packet: + packet: name: varint => 0x00: ping_start 0x01: ping @@ -644,9 +649,11 @@ if ping_start: packet_ping_start if ping: packet_ping ^login.toClient.types: - packet_disconnect: + # MC: ClientboundLoginDisconnectPacket + packet_disconnect: reason: string - packet_encryption_begin: + # MC: ClientboundHelloPacket + packet_encryption_begin: serverId: string publicKey: [ "buffer", @@ -660,26 +667,29 @@ "countType": "varint" } ] - packet_success: + # MC: ClientboundGameProfilePacket + packet_success: uuid: UUID username: string properties: []varint name: string value: string signature?: string - packet_compress: + # MC: ClientboundLoginCompressionPacket + packet_compress: threshold: varint - packet_login_plugin_request: + # MC: ClientboundCustomQueryPacket + packet_login_plugin_request: messageId: varint channel: string data: restBuffer - packet: + packet: name: varint => - 0x00: disconnect - 0x01: encryption_begin - 0x02: success - 0x03: compress - 0x04: login_plugin_request + - disconnect + - encryption_begin + - success + - compress + - login_plugin_request params: name ? if disconnect: packet_disconnect if encryption_begin: packet_encryption_begin @@ -687,10 +697,12 @@ if compress: packet_compress if login_plugin_request: packet_login_plugin_request ^login.toServer.types: - packet_login_start: + # MC: ServerboundHelloPacket + packet_login_start: username: string playerUUID: UUID - packet_encryption_begin: + # MC: ServerboundKeyPacket + packet_encryption_begin: sharedSecret: [ "buffer", { @@ -703,62 +715,74 @@ "countType": "varint" } ] - packet_login_plugin_response: + # MC: ServerboundCustomQueryAnswerPacket + packet_login_plugin_response: messageId: varint data?: restBuffer - packet_login_acknowledged: + # MC: ServerboundLoginAcknowledgedPacket + packet_login_acknowledged: # Empty - packet: + packet: name: varint => - 0x00: login_start - 0x01: encryption_begin - 0x02: login_plugin_response - 0x03: login_acknowledged + - login_start + - encryption_begin + - login_plugin_response + - login_acknowledged params: name ? if login_start: packet_login_start if encryption_begin: packet_encryption_begin if login_plugin_response: packet_login_plugin_response if login_acknowledged: packet_login_acknowledged ^configuration.toClient.types: - packet_custom_payload: + # MC: ClientboundCustomPayloadPacket + packet_custom_payload: channel: string data: restBuffer - packet_disconnect: + # MC: ClientboundDisconnectPacket + packet_disconnect: reason: anonymousNbt - packet_finish_configuration: + # MC: ClientboundFinishConfigurationPacket + packet_finish_configuration: # Empty - packet_keep_alive: + # MC: ClientboundKeepAlivePacket + packet_keep_alive: keepAliveId: i64 - packet_ping: + # MC: ClientboundPingPacket + packet_ping: id: i32 - packet_registry_data: + # MC: ClientboundRegistryDataPacket + packet_registry_data: codec: anonymousNbt - packet_remove_resource_pack: + # MC: ClientboundResourcePackPopPacket + packet_remove_resource_pack: uuid?: UUID - packet_add_resource_pack: + # MC: ClientboundResourcePackPushPacket + packet_add_resource_pack: uuid: UUID url: string hash: string forced: bool promptMessage?: anonymousNbt - packet_feature_flags: + # MC: ClientboundUpdateEnabledFeaturesPacket + packet_feature_flags: features: string[]varint - packet_tags: + # MC: ClientboundUpdateTagsPacket + packet_tags: tags: []varint tagType: string tags: tags - packet: + packet: name: varint => - 0x00: custom_payload - 0x01: disconnect - 0x02: finish_configuration - 0x03: keep_alive - 0x04: ping - 0x05: registry_data - 0x06: remove_resource_pack - 0x07: add_resource_pack - 0x08: feature_flags - 0x09: tags + - custom_payload + - disconnect + - finish_configuration + - keep_alive + - ping + - registry_data + - remove_resource_pack + - add_resource_pack + - feature_flags + - tags params: name ? if custom_payload: packet_custom_payload if disconnect: packet_disconnect @@ -771,7 +795,8 @@ if feature_flags: packet_feature_flags if tags: packet_tags ^configuration.toServer.types: - packet_settings: + # MC: ServerboundClientInformationPacket + packet_settings: locale: string viewDistance: i8 chatFlags: varint @@ -780,26 +805,31 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool - packet_custom_payload: + # MC: ServerboundCustomPayloadPacket + packet_custom_payload: channel: string data: restBuffer - packet_finish_configuration: + # MC: ServerboundFinishConfigurationPacket + packet_finish_configuration: # Empty - packet_keep_alive: + # MC: ServerboundKeepAlivePacket + packet_keep_alive: keepAliveId: i64 - packet_pong: + # MC: ServerboundPongPacket + packet_pong: id: i32 - packet_resource_pack_receive: + # MC: ServerboundResourcePackPacket + packet_resource_pack_receive: uuid: UUID result: varint - packet: + packet: name: varint => - 0x00: settings - 0x01: custom_payload - 0x02: finish_configuration - 0x03: keep_alive - 0x04: pong - 0x05: resource_pack_receive + - settings + - custom_payload + - finish_configuration + - keep_alive + - pong + - resource_pack_receive params: name ? if settings: packet_settings if custom_payload: packet_custom_payload @@ -808,7 +838,8 @@ if pong: packet_pong if resource_pack_receive: packet_resource_pack_receive ^play.toClient.types: - packet_spawn_entity: + # MC: ClientboundAddEntityPacket + packet_spawn_entity: entityId: varint objectUUID: UUID type: varint @@ -822,27 +853,31 @@ velocityX: i16 velocityY: i16 velocityZ: i16 - packet_spawn_entity_experience_orb: + # MC: ClientboundAddExperienceOrbPacket + packet_spawn_entity_experience_orb: entityId: varint x: f64 y: f64 z: f64 count: i16 - packet_animation: + # MC: ClientboundAnimatePacket + packet_animation: entityId: varint animation: u8 - packet_statistics: + # MC: ClientboundAwardStatsPacket + packet_statistics: entries: []varint categoryId: varint statisticId: varint value: varint - packet_advancements: + # MC: ClientboundUpdateAdvancementsPacket + packet_advancements: reset: bool advancementMapping: []varint key: string - value: + value: parentId?: string - displayData?: + displayData?: title: anonymousNbt description: anonymousNbt icon: slot @@ -886,23 +921,28 @@ value: []varint criterionIdentifier: string criterionProgress?: i64 - packet_block_break_animation: + # MC: ClientboundBlockDestructionPacket + packet_block_break_animation: entityId: varint location: position destroyStage: i8 - packet_tile_entity_data: + # MC: ClientboundBlockEntityDataPacket + packet_tile_entity_data: location: position action: varint nbtData: anonOptionalNbt - packet_block_action: + # MC: ClientboundBlockEventPacket + packet_block_action: location: position byte1: u8 byte2: u8 blockId: varint - packet_block_change: + # MC: ClientboundBlockUpdatePacket + packet_block_change: location: position type: varint - packet_boss_bar: + # MC: ClientboundBossEventPacket + packet_boss_bar: entityUUID: UUID action: varint title: action ? @@ -925,24 +965,30 @@ if 0: u8 if 5: u8 default: void - packet_difficulty: + # MC: ClientboundChangeDifficultyPacket + packet_difficulty: difficulty: u8 difficultyLocked: bool - packet_chunk_batch_finished: + # MC: ClientboundChunkBatchFinishedPacket + packet_chunk_batch_finished: batchSize: varint - packet_chunk_batch_start: + # MC: ClientboundChunkBatchStartPacket + packet_chunk_batch_start: # Empty - packet_tab_complete: + # MC: ClientboundCommandSuggestionsPacket + packet_tab_complete: transactionId: varint start: varint length: varint matches: []varint match: string tooltip?: anonymousNbt - packet_declare_commands: + # MC: ClientboundCommandsPacket + packet_declare_commands: nodes: command_node[]varint rootIndex: varint - packet_face_player: + # MC: ClientboundPlayerLookAtPacket + packet_face_player: feet_eyes: varint x: f64 y: f64 @@ -954,10 +1000,12 @@ entity_feet_eyes: isEntity ? if true: varint default: void - packet_nbt_query_response: + # MC: ClientboundTagQueryPacket + packet_nbt_query_response: transactionId: varint nbt: anonOptionalNbt - packet_multi_block_change: + # MC: ClientboundSectionBlocksUpdatePacket + packet_multi_block_change: chunkCoordinates: [ "bitfield", [ @@ -979,36 +1027,45 @@ ] ] records: varint[]varint - packet_close_window: + # MC: ClientboundContainerClosePacket + packet_close_window: windowId: u8 - packet_open_window: + # MC: ClientboundOpenScreenPacket + packet_open_window: windowId: varint inventoryType: varint windowTitle: anonymousNbt - packet_window_items: + # MC: ClientboundContainerSetContentPacket + packet_window_items: windowId: u8 stateId: varint items: slot[]varint carriedItem: slot - packet_craft_progress_bar: + # MC: ClientboundContainerSetDataPacket + packet_craft_progress_bar: windowId: u8 property: i16 value: i16 - packet_set_slot: + # MC: ClientboundContainerSetSlotPacket + packet_set_slot: windowId: i8 stateId: varint slot: i16 item: slot - packet_set_cooldown: + # MC: ClientboundCooldownPacket + packet_set_cooldown: itemID: varint cooldownTicks: varint - packet_chat_suggestions: + # MC: ClientboundCustomChatCompletionsPacket + packet_chat_suggestions: action: varint entries: string[]varint - packet_custom_payload: + # MC: ClientboundCustomPayloadPacket + packet_custom_payload: channel: string data: restBuffer - packet_hide_message: + # MC: ClientboundDeleteChatPacket + packet_hide_message: id: varint signature: id ? if 0: [ @@ -1018,17 +1075,21 @@ } ] default: void - packet_kick_disconnect: + # MC: ClientboundDisconnectPacket + packet_kick_disconnect: reason: anonymousNbt - packet_profileless_chat: + # MC: ClientboundDisguisedChatPacket + packet_profileless_chat: message: anonymousNbt type: varint name: anonymousNbt target?: anonymousNbt - packet_entity_status: + # MC: ClientboundEntityEventPacket + packet_entity_status: entityId: i32 entityStatus: i8 - packet_explosion: + # MC: ClientboundExplodePacket + packet_explosion: x: f64 y: f64 z: f64 @@ -1045,19 +1106,24 @@ large_explosion_particle: particle explosion_sound_name: string sound_range?: f32 - packet_unload_chunk: + # MC: ClientboundForgetLevelChunkPacket + packet_unload_chunk: chunkZ: i32 chunkX: i32 - packet_game_state_change: + # MC: ClientboundGameEventPacket + packet_game_state_change: reason: u8 gameMode: f32 - packet_open_horse_window: + # MC: ClientboundHorseScreenOpenPacket + packet_open_horse_window: windowId: u8 nbSlots: varint entityId: i32 - packet_keep_alive: + # MC: ClientboundKeepAlivePacket + packet_keep_alive: keepAliveId: i64 - packet_map_chunk: + # MC: ClientboundLevelChunkWithLightPacket + packet_map_chunk: x: i32 z: i32 heightmaps: anonymousNbt @@ -1076,12 +1142,14 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_world_event: + # MC: ClientboundLevelEventPacket + packet_world_event: effectId: i32 location: position data: i32 global: bool - packet_world_particles: + # MC: ClientboundLevelParticlesPacket + packet_world_particles: particleId: varint longDistance: bool x: f64 @@ -1098,7 +1166,8 @@ "compareTo": "particleId" } ] - packet_update_light: + # MC: ClientboundLightUpdatePacket + packet_update_light: chunkX: varint chunkZ: varint skyLightMask: i64[]varint @@ -1109,7 +1178,8 @@ _: u8[]varint blockLight: []varint _: u8[]varint - packet_login: + # MC: ClientboundLoginPacket + packet_login: entityId: i32 isHardcore: bool worldNames: string[]varint @@ -1126,11 +1196,12 @@ previousGameMode: i8 isDebug: bool isFlat: bool - death?: + death?: dimensionName: string location: position portalCooldown: varint - packet_map: + # MC: ClientboundMapItemDataPacket + packet_map: itemDamage: varint scale: i8 locked: bool @@ -1158,7 +1229,8 @@ "countType": "varint" } ] - packet_trade_list: + # MC: ClientboundMerchantOffersPacket + packet_trade_list: windowId: varint trades: []varint inputItem1: slot @@ -1175,13 +1247,15 @@ experience: varint isRegularVillager: bool canRestock: bool - packet_rel_entity_move: + # MC: ClientboundMoveEntityPacket.Pos + packet_rel_entity_move: entityId: varint dX: i16 dY: i16 dZ: i16 onGround: bool - packet_entity_move_look: + # MC: ClientboundMoveEntityPacket.PosRot + packet_entity_move_look: entityId: varint dX: i16 dY: i16 @@ -1189,30 +1263,37 @@ yaw: i8 pitch: i8 onGround: bool - packet_entity_look: + # MC: ClientboundMoveEntityPacket.Rot + packet_entity_look: entityId: varint yaw: i8 pitch: i8 onGround: bool - packet_vehicle_move: + # MC: ClientboundMoveVehiclePacket + packet_vehicle_move: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 - packet_open_book: + # MC: ClientboundOpenBookPacket + packet_open_book: hand: varint - packet_open_sign_entity: + # MC: ClientboundOpenSignEditorPacket + packet_open_sign_entity: location: position isFrontText: bool - packet_craft_recipe_response: + # MC: ClientboundPlaceGhostRecipePacket + packet_craft_recipe_response: windowId: i8 recipe: string - packet_abilities: + # MC: ClientboundPlayerAbilitiesPacket + packet_abilities: flags: i8 flyingSpeed: f32 walkingSpeed: f32 - packet_player_chat: + # MC: ClientboundPlayerChatPacket + packet_player_chat: senderUuid: UUID index: varint signature?: [ @@ -1233,16 +1314,21 @@ type: varint networkName: anonymousNbt networkTargetName?: anonymousNbt - packet_end_combat_event: + # MC: ClientboundPlayerCombatEndPacket + packet_end_combat_event: duration: varint - packet_enter_combat_event: + # MC: ClientboundPlayerCombatEnterPacket + packet_enter_combat_event: # Empty - packet_death_combat_event: + # MC: ClientboundPlayerCombatKillPacket + packet_death_combat_event: playerId: varint message: anonymousNbt - packet_player_remove: + # MC: ClientboundPlayerInfoRemovePacket + packet_player_remove: players: UUID[]varint - packet_player_info: + # MC: ClientboundPlayerInfoUpdatePacket + packet_player_info: action: i8 data: []varint uuid: UUID @@ -1546,7 +1632,8 @@ "anonymousNbt" ] default: void - packet_position: + # MC: ClientboundPlayerPositionPacket + packet_position: x: f64 y: f64 z: f64 @@ -1554,7 +1641,8 @@ pitch: f32 flags: i8 teleportId: varint - packet_unlock_recipes: + # MC: ClientboundRecipePacket + packet_unlock_recipes: action: varint craftingBookOpen: bool filteringCraftable: bool @@ -1568,23 +1656,29 @@ recipes2: action ? if 0: string[]varint default: void - packet_entity_destroy: + # MC: ClientboundRemoveEntitiesPacket + packet_entity_destroy: entityIds: varint[]varint - packet_remove_entity_effect: + # MC: ClientboundRemoveMobEffectPacket + packet_remove_entity_effect: entityId: varint effectId: varint - packet_reset_score: + # MC: ClientboundResetScorePacket + packet_reset_score: entity_name: string objective_name?: string - packet_remove_resource_pack: + # MC: ClientboundResourcePackPopPacket + packet_remove_resource_pack: uuid?: UUID - packet_add_resource_pack: + # MC: ClientboundResourcePackPushPacket + packet_add_resource_pack: uuid: UUID url: string hash: string forced: bool promptMessage?: anonymousNbt - packet_respawn: + # MC: ClientboundRespawnPacket + packet_respawn: dimension: string worldName: string hashedSeed: i64 @@ -1592,38 +1686,48 @@ previousGamemode: u8 isDebug: bool isFlat: bool - death?: + death?: dimensionName: string location: position portalCooldown: varint copyMetadata: bool - packet_entity_head_rotation: + # MC: ClientboundRotateHeadPacket + packet_entity_head_rotation: entityId: varint headYaw: i8 - packet_camera: + # MC: ClientboundSetCameraPacket + packet_camera: cameraId: varint - packet_held_item_slot: + # MC: ClientboundSetCarriedItemPacket + packet_held_item_slot: slot: i8 - packet_update_view_position: + # MC: ClientboundSetChunkCacheCenterPacket + packet_update_view_position: chunkX: varint chunkZ: varint - packet_update_view_distance: + # MC: ClientboundSetChunkCacheRadiusPacket + packet_update_view_distance: viewDistance: varint - packet_scoreboard_display_objective: + # MC: ClientboundSetDisplayObjectivePacket + packet_scoreboard_display_objective: position: varint name: string - packet_entity_metadata: + # MC: ClientboundSetEntityDataPacket + packet_entity_metadata: entityId: varint metadata: entityMetadata - packet_attach_entity: + # MC: ClientboundSetEntityLinkPacket + packet_attach_entity: entityId: i32 vehicleId: i32 - packet_entity_velocity: + # MC: ClientboundSetEntityMotionPacket + packet_entity_velocity: entityId: varint velocityX: i16 velocityY: i16 velocityZ: i16 - packet_entity_equipment: + # MC: ClientboundSetEquipmentPacket + packet_entity_equipment: entityId: varint equipments: [ "topBitSetTerminatedArray", @@ -1643,15 +1747,18 @@ ] } ] - packet_experience: + # MC: ClientboundSetExperiencePacket + packet_experience: experienceBar: f32 level: varint totalExperience: varint - packet_update_health: + # MC: ClientboundSetHealthPacket + packet_update_health: health: f32 food: varint foodSaturation: f32 - packet_scoreboard_objective: + # MC: ClientboundSetObjectivePacket + packet_scoreboard_objective: name: string action: i8 displayText: action ? @@ -1682,10 +1789,12 @@ if 2: anonymousNbt default: void default: void - packet_set_passengers: + # MC: ClientboundSetPassengersPacket + packet_set_passengers: entityId: varint passengers: varint[]varint - packet_teams: + # MC: ClientboundSetPlayerTeamPacket + packet_teams: team: string mode: i8 name: mode ? @@ -1721,7 +1830,8 @@ if 3: string[]varint if 4: string[]varint default: void - packet_scoreboard_score: + # MC: ClientboundSetScorePacket + packet_scoreboard_score: itemName: string scoreName: string value: varint @@ -1731,16 +1841,19 @@ if 1: anonymousNbt if 2: anonymousNbt default: void - packet_spawn_position: + # MC: ClientboundSetDefaultSpawnPositionPacket + packet_spawn_position: location: position angle: f32 - packet_update_time: + # MC: ClientboundSetTimePacket + packet_update_time: age: i64 time: i64 - packet_entity_sound_effect: + # MC: ClientboundSoundEntityPacket + packet_entity_sound_effect: soundId: varint soundEvent: soundId ? - if 0: + if 0: resource: string range?: f32 default: void @@ -1749,7 +1862,8 @@ volume: f32 pitch: f32 seed: i64 - packet_stop_sound: + # MC: ClientboundStopSoundPacket + packet_stop_sound: flags: i8 source: flags ? if 1: varint @@ -1759,10 +1873,11 @@ if 2: string if 3: string default: void - packet_sound_effect: + # MC: ClientboundSoundPacket + packet_sound_effect: soundId: varint soundEvent: soundId ? - if 0: + if 0: resource: string range?: f32 default: void @@ -1773,17 +1888,21 @@ volume: f32 pitch: f32 seed: i64 - packet_system_chat: + # MC: ClientboundSystemChatPacket + packet_system_chat: content: anonymousNbt isActionBar: bool - packet_playerlist_header: + # MC: ClientboundTabListPacket + packet_playerlist_header: header: anonymousNbt footer: anonymousNbt - packet_collect: + # MC: ClientboundTakeItemEntityPacket + packet_collect: collectedEntityId: varint collectorEntityId: varint pickupItemCount: varint - packet_entity_teleport: + # MC: ClientboundTeleportEntityPacket + packet_entity_teleport: entityId: varint x: f64 y: f64 @@ -1791,7 +1910,8 @@ yaw: i8 pitch: i8 onGround: bool - packet_entity_update_attributes: + # MC: ClientboundUpdateAttributesPacket + packet_entity_update_attributes: entityId: varint properties: []varint key: string @@ -1800,16 +1920,19 @@ uuid: UUID amount: f64 operation: i8 - packet_entity_effect: + # MC: ClientboundUpdateMobEffectPacket + packet_entity_effect: entityId: varint effectId: varint amplifier: i8 duration: varint hideParticles: i8 factorCodec?: anonymousNbt - packet_select_advancement_tab: + # MC: ClientboundSelectAdvancementsTabPacket + packet_select_advancement_tab: id?: string - packet_server_data: + # MC: ClientboundServerDataPacket + packet_server_data: motd: anonymousNbt iconBytes?: [ "buffer", @@ -1818,17 +1941,18 @@ } ] enforcesSecureChat: bool - packet_declare_recipes: + # MC: ClientboundUpdateRecipesPacket + packet_declare_recipes: recipes: []varint type: string recipeId: string data: type ? - if minecraft:crafting_shapeless: + if minecraft:crafting_shapeless: group: string category: varint ingredients: ingredient[]varint result: slot - if minecraft:crafting_shaped: + if minecraft:crafting_shaped: group: string category: varint width: varint @@ -1855,29 +1979,33 @@ if minecraft:blasting: minecraft_smelting_format if minecraft:smoking: minecraft_smelting_format if minecraft:campfire_cooking: minecraft_smelting_format - if minecraft:stonecutting: + if minecraft:stonecutting: group: string ingredient: ingredient result: slot - if minecraft:smithing_transform: + if minecraft:smithing_transform: template: ingredient base: ingredient addition: ingredient result: slot - if minecraft:smithing_trim: + if minecraft:smithing_trim: template: ingredient base: ingredient addition: ingredient if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format - packet_tags: + # MC: ClientboundUpdateTagsPacket + packet_tags: tags: []varint tagType: string tags: tags - packet_acknowledge_player_digging: + # MC: ClientboundBlockChangedAckPacket + packet_acknowledge_player_digging: sequenceId: varint - packet_clear_titles: + # MC: ClientboundClearTitlesPacket + packet_clear_titles: reset: bool - packet_initialize_world_border: + # MC: ClientboundInitializeBorderPacket + packet_initialize_world_border: x: f64 z: f64 oldDiameter: f64 @@ -1886,36 +2014,49 @@ portalTeleportBoundary: varint warningBlocks: varint warningTime: varint - packet_action_bar: + # MC: ClientboundSetActionBarTextPacket + packet_action_bar: text: anonymousNbt - packet_world_border_center: + # MC: ClientboundSetBorderCenterPacket + packet_world_border_center: x: f64 z: f64 - packet_world_border_lerp_size: + # MC: ClientboundSetBorderLerpSizePacket + packet_world_border_lerp_size: oldDiameter: f64 newDiameter: f64 speed: varint - packet_world_border_size: + # MC: ClientboundSetBorderSizePacket + packet_world_border_size: diameter: f64 - packet_world_border_warning_delay: + # MC: ClientboundSetBorderWarningDelayPacket + packet_world_border_warning_delay: warningTime: varint - packet_world_border_warning_reach: + # MC: ClientboundSetBorderWarningDistancePacket + packet_world_border_warning_reach: warningBlocks: varint - packet_ping: + # MC: ClientboundPingPacket + packet_ping: id: i32 - packet_ping_response: + # MC: ClientboundPongResponsePacket + packet_ping_response: id: i64 - packet_set_title_subtitle: + # MC: ClientboundSetSubtitleTextPacket + packet_set_title_subtitle: text: anonymousNbt - packet_set_title_text: + # MC: ClientboundSetTitleTextPacket + packet_set_title_text: text: anonymousNbt - packet_set_title_time: + # MC: ClientboundSetTitlesAnimationPacket + packet_set_title_time: fadeIn: i32 stay: i32 fadeOut: i32 - packet_simulation_distance: + # MC: ClientboundSetSimulationDistancePacket + packet_simulation_distance: distance: varint - packet_chunk_biomes: + # MC: ClientboundChunksBiomesPacket + packet_chunk_biomes: biomes: []varint position: packedChunkPos data: [ @@ -1924,141 +2065,146 @@ "countType": "varint" } ] - packet_damage_event: + # MC: ClientboundDamageEventPacket + packet_damage_event: entityId: varint sourceTypeId: varint sourceCauseId: varint sourceDirectId: varint sourcePosition?: vec3f64 - packet_hurt_animation: + # MC: ClientboundHurtAnimationPacket + packet_hurt_animation: entityId: varint yaw: f32 - packet_start_configuration: + # MC: ClientboundStartConfigurationPacket + packet_start_configuration: # Empty - packet_set_ticking_state: + # MC: ClientboundTickingStatePacket + packet_set_ticking_state: tick_rate: f32 is_frozen: bool - packet_step_tick: + # MC: ClientboundTickingStepPacket + packet_step_tick: tick_steps: varint - packet: + packet: name: varint => - 0x00: bundle_delimiter - 0x01: spawn_entity - 0x02: spawn_entity_experience_orb - 0x03: animation - 0x04: statistics - 0x05: acknowledge_player_digging - 0x06: block_break_animation - 0x07: tile_entity_data - 0x08: block_action - 0x09: block_change - 0x0a: boss_bar - 0x0b: difficulty - 0x0c: chunk_batch_finished - 0x0d: chunk_batch_start - 0x0e: chunk_biomes - 0x0f: clear_titles - 0x10: tab_complete - 0x11: declare_commands - 0x12: close_window - 0x13: window_items - 0x14: craft_progress_bar - 0x15: set_slot - 0x16: set_cooldown - 0x17: chat_suggestions - 0x18: custom_payload - 0x19: damage_event - 0x1a: hide_message - 0x1b: kick_disconnect - 0x1c: profileless_chat - 0x1d: entity_status - 0x1e: explosion - 0x1f: unload_chunk - 0x20: game_state_change - 0x21: open_horse_window - 0x22: hurt_animation - 0x23: initialize_world_border - 0x24: keep_alive - 0x25: map_chunk - 0x26: world_event - 0x27: world_particles - 0x28: update_light - 0x29: login - 0x2a: map - 0x2b: trade_list - 0x2c: rel_entity_move - 0x2d: entity_move_look - 0x2e: entity_look - 0x2f: vehicle_move - 0x30: open_book - 0x31: open_window - 0x32: open_sign_entity - 0x33: ping - 0x34: ping_response - 0x35: craft_recipe_response - 0x36: abilities - 0x37: player_chat - 0x38: end_combat_event - 0x39: enter_combat_event - 0x3a: death_combat_event - 0x3b: player_remove - 0x3c: player_info - 0x3d: face_player - 0x3e: position - 0x3f: unlock_recipes - 0x40: entity_destroy - 0x41: remove_entity_effect - 0x42: reset_score - 0x43: remove_resource_pack - 0x44: add_resource_pack - 0x45: respawn - 0x46: entity_head_rotation - 0x47: multi_block_change - 0x48: select_advancement_tab - 0x49: server_data - 0x4a: action_bar - 0x4b: world_border_center - 0x4c: world_border_lerp_size - 0x4d: world_border_size - 0x4e: world_border_warning_delay - 0x4f: world_border_warning_reach - 0x50: camera - 0x51: held_item_slot - 0x52: update_view_position - 0x53: update_view_distance - 0x54: spawn_position - 0x55: scoreboard_display_objective - 0x56: entity_metadata - 0x57: attach_entity - 0x58: entity_velocity - 0x59: entity_equipment - 0x5a: experience - 0x5b: update_health - 0x5c: scoreboard_objective - 0x5d: set_passengers - 0x5e: teams - 0x5f: scoreboard_score - 0x60: simulation_distance - 0x61: set_title_subtitle - 0x62: update_time - 0x63: set_title_text - 0x64: set_title_time - 0x65: entity_sound_effect - 0x66: sound_effect - 0x67: start_configuration - 0x68: stop_sound - 0x69: system_chat - 0x6a: playerlist_header - 0x6b: nbt_query_response - 0x6c: collect - 0x6d: entity_teleport - 0x6e: set_ticking_state - 0x6f: step_tick - 0x70: advancements - 0x71: entity_update_attributes - 0x72: entity_effect - 0x73: declare_recipes - 0x74: tags + - bundle_delimiter + - spawn_entity + - spawn_entity_experience_orb + - animation + - statistics + - acknowledge_player_digging + - block_break_animation + - tile_entity_data + - block_action + - block_change + - boss_bar + - difficulty + - chunk_batch_finished + - chunk_batch_start + - chunk_biomes + - clear_titles + - tab_complete + - declare_commands + - close_window + - window_items + - craft_progress_bar + - set_slot + - set_cooldown + - chat_suggestions + - custom_payload + - damage_event + - hide_message + - kick_disconnect + - profileless_chat + - entity_status + - explosion + - unload_chunk + - game_state_change + - open_horse_window + - hurt_animation + - initialize_world_border + - keep_alive + - map_chunk + - world_event + - world_particles + - update_light + - login + - map + - trade_list + - rel_entity_move + - entity_move_look + - entity_look + - vehicle_move + - open_book + - open_window + - open_sign_entity + - ping + - ping_response + - craft_recipe_response + - abilities + - player_chat + - end_combat_event + - enter_combat_event + - death_combat_event + - player_remove + - player_info + - face_player + - position + - unlock_recipes + - entity_destroy + - remove_entity_effect + - reset_score + - remove_resource_pack + - add_resource_pack + - respawn + - entity_head_rotation + - multi_block_change + - select_advancement_tab + - server_data + - action_bar + - world_border_center + - world_border_lerp_size + - world_border_size + - world_border_warning_delay + - world_border_warning_reach + - camera + - held_item_slot + - update_view_position + - update_view_distance + - spawn_position + - scoreboard_display_objective + - entity_metadata + - attach_entity + - entity_velocity + - entity_equipment + - experience + - update_health + - scoreboard_objective + - set_passengers + - teams + - scoreboard_score + - simulation_distance + - set_title_subtitle + - update_time + - set_title_text + - set_title_time + - entity_sound_effect + - sound_effect + - start_configuration + - stop_sound + - system_chat + - playerlist_header + - nbt_query_response + - collect + - entity_teleport + - set_ticking_state + - step_tick + - advancements + - entity_update_attributes + - entity_effect + - declare_recipes + - tags params: name ? if bundle_delimiter: void if spawn_entity: packet_spawn_entity @@ -2178,12 +2324,15 @@ if set_ticking_state: packet_set_ticking_state if step_tick: packet_step_tick ^play.toServer.types: - packet_teleport_confirm: + # MC: ServerboundAcceptTeleportationPacket + packet_teleport_confirm: teleportId: varint - packet_query_block_nbt: + # MC: ServerboundBlockEntityTagQuery + packet_query_block_nbt: transactionId: varint location: position - packet_chat_command: + # MC: ServerboundChatCommandPacket + packet_chat_command: command: string timestamp: i64 salt: i64 @@ -2202,7 +2351,8 @@ "count": 3 } ] - packet_chat_message: + # MC: ServerboundChatPacket + packet_chat_message: message: string timestamp: i64 salt: i64 @@ -2219,36 +2369,47 @@ "count": 3 } ] - packet_set_difficulty: + # MC: ServerboundChangeDifficultyPacket + packet_set_difficulty: newDifficulty: u8 - packet_message_acknowledgement: + # MC: ServerboundChatAckPacket + packet_message_acknowledgement: count: varint - packet_edit_book: + # MC: ServerboundEditBookPacket + packet_edit_book: hand: varint pages: string[]varint title?: string - packet_query_entity_nbt: + # MC: ServerboundEntityTagQuery + packet_query_entity_nbt: transactionId: varint entityId: varint - packet_pick_item: + # MC: ServerboundPickItemPacket + packet_pick_item: slot: varint - packet_name_item: + # MC: ServerboundRenameItemPacket + packet_name_item: name: string - packet_select_trade: + # MC: ServerboundSelectTradePacket + packet_select_trade: slot: varint - packet_set_beacon_effect: + # MC: ServerboundSetBeaconPacket + packet_set_beacon_effect: primary_effect?: varint secondary_effect?: varint - packet_update_command_block: + # MC: ServerboundSetCommandBlockPacket + packet_update_command_block: location: position command: string mode: varint flags: u8 - packet_update_command_block_minecart: + # MC: ServerboundSetCommandMinecartPacket + packet_update_command_block_minecart: entityId: varint command: string track_output: bool - packet_update_structure_block: + # MC: ServerboundSetStructureBlockPacket + packet_update_structure_block: location: position action: varint mode: varint @@ -2265,12 +2426,15 @@ integrity: f32 seed: varint flags: u8 - packet_tab_complete: + # MC: ServerboundCommandSuggestionPacket + packet_tab_complete: transactionId: varint text: string - packet_client_command: + # MC: ServerboundClientCommandPacket + packet_client_command: actionId: varint - packet_settings: + # MC: ServerboundClientInformationPacket + packet_settings: locale: string viewDistance: i8 chatFlags: varint @@ -2279,10 +2443,12 @@ mainHand: varint enableTextFiltering: bool enableServerListing: bool - packet_enchant_item: + # MC: ServerboundContainerButtonClickPacket + packet_enchant_item: windowId: i8 enchantment: i8 - packet_window_click: + # MC: ServerboundContainerClickPacket + packet_window_click: windowId: u8 stateId: varint slot: i16 @@ -2292,12 +2458,15 @@ location: i16 item: slot cursorItem: slot - packet_close_window: + # MC: ServerboundContainerClosePacket + packet_close_window: windowId: u8 - packet_custom_payload: + # MC: ServerboundCustomPayloadPacket + packet_custom_payload: channel: string data: restBuffer - packet_use_entity: + # MC: ServerboundInteractPacket + packet_use_entity: target: varint mouse: varint x: mouse ? @@ -2314,75 +2483,95 @@ if 2: varint default: void sneaking: bool - packet_generate_structure: + # MC: ServerboundJigsawGeneratePacket + packet_generate_structure: location: position levels: varint keepJigsaws: bool - packet_keep_alive: + # MC: ServerboundKeepAlivePacket + packet_keep_alive: keepAliveId: i64 - packet_lock_difficulty: + # MC: ServerboundLockDifficultyPacket + packet_lock_difficulty: locked: bool - packet_position: + # MC: ServerboundMovePlayerPacket.Pos + packet_position: x: f64 y: f64 z: f64 onGround: bool - packet_position_look: + # MC: ServerboundMovePlayerPacket.PosRot + packet_position_look: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 onGround: bool - packet_look: + # MC: ServerboundMovePlayerPacket.Rot + packet_look: yaw: f32 pitch: f32 onGround: bool - packet_flying: + # MC: ServerboundMovePlayerPacket.StatusOnly + packet_flying: onGround: bool - packet_vehicle_move: + # MC: ServerboundMoveVehiclePacket + packet_vehicle_move: x: f64 y: f64 z: f64 yaw: f32 pitch: f32 - packet_steer_boat: + # MC: ServerboundPaddleBoatPacket + packet_steer_boat: leftPaddle: bool rightPaddle: bool - packet_craft_recipe_request: + # MC: ServerboundPlaceRecipePacket + packet_craft_recipe_request: windowId: i8 recipe: string makeAll: bool - packet_abilities: + # MC: ServerboundPlayerAbilitiesPacket + packet_abilities: flags: i8 - packet_block_dig: + # MC: ServerboundPlayerActionPacket + packet_block_dig: status: varint location: position face: i8 sequence: varint - packet_entity_action: + # MC: ServerboundPlayerCommandPacket + packet_entity_action: entityId: varint actionId: varint jumpBoost: varint - packet_steer_vehicle: + # MC: ServerboundPlayerInputPacket + packet_steer_vehicle: sideways: f32 forward: f32 jump: u8 - packet_displayed_recipe: + # MC: ServerboundRecipeBookSeenRecipePacket + packet_displayed_recipe: recipeId: string - packet_recipe_book: + # MC: ServerboundRecipeBookChangeSettingsPacket + packet_recipe_book: bookId: varint bookOpen: bool filterActive: bool - packet_resource_pack_receive: + # MC: ServerboundResourcePackPacket + packet_resource_pack_receive: uuid: UUID result: varint - packet_held_item_slot: + # MC: ServerboundSetCarriedItemPacket + packet_held_item_slot: slotId: i16 - packet_set_creative_slot: + # MC: ServerboundSetCreativeModeSlotPacket + packet_set_creative_slot: slot: i16 item: slot - packet_update_jigsaw_block: + # MC: ServerboundSetJigsawBlockPacket + packet_update_jigsaw_block: location: position name: string target: string @@ -2391,18 +2580,22 @@ jointType: string selection_priority: varint placement_priority: varint - packet_update_sign: + # MC: ServerboundSignUpdatePacket + packet_update_sign: location: position isFrontText: bool text1: string text2: string text3: string text4: string - packet_arm_animation: + # MC: ServerboundSwingPacket + packet_arm_animation: hand: varint - packet_spectate: + # MC: ServerboundTeleportToEntityPacket + packet_spectate: target: UUID - packet_block_place: + # MC: ServerboundUseItemOnPacket + packet_block_place: hand: varint location: position direction: varint @@ -2411,17 +2604,21 @@ cursorZ: f32 insideBlock: bool sequence: varint - packet_use_item: + # MC: ServerboundUseItemPacket + packet_use_item: hand: varint sequence: varint - packet_advancement_tab: + # MC: ServerboundSeenAdvancementsPacket + packet_advancement_tab: action: varint tabId: action ? if 0: string if 1: void - packet_pong: + # MC: ServerboundPongPacket + packet_pong: id: i32 - packet_chat_session_update: + # MC: ServerboundChatSessionUpdatePacket + packet_chat_session_update: sessionUUID: UUID expireTime: i64 publicKey: [ @@ -2436,73 +2633,77 @@ "countType": "varint" } ] - packet_chunk_batch_received: + # MC: ServerboundChunkBatchReceivedPacket + packet_chunk_batch_received: chunksPerTick: f32 - packet_configuration_acknowledged: + # MC: ServerboundConfigurationAcknowledgedPacket + packet_configuration_acknowledged: # Empty - packet_ping_request: + # MC: ServerboundPingRequestPacket + packet_ping_request: id: i64 - packet_set_slot_state: + # MC: ServerboundContainerSlotStateChangedPacket + packet_set_slot_state: slot_id: varint window_id: varint state: bool - packet: + packet: name: varint => - 0x00: teleport_confirm - 0x01: query_block_nbt - 0x02: set_difficulty - 0x03: message_acknowledgement - 0x04: chat_command - 0x05: chat_message - 0x06: chat_session_update - 0x07: chunk_batch_received - 0x08: client_command - 0x09: settings - 0x0a: tab_complete - 0x0b: configuration_acknowledged - 0x0c: enchant_item - 0x0d: window_click - 0x0e: close_window - 0x0f: set_slot_state - 0x10: custom_payload - 0x11: edit_book - 0x12: query_entity_nbt - 0x13: use_entity - 0x14: generate_structure - 0x15: keep_alive - 0x16: lock_difficulty - 0x17: position - 0x18: position_look - 0x19: look - 0x1a: flying - 0x1b: vehicle_move - 0x1c: steer_boat - 0x1d: pick_item - 0x1e: ping_request - 0x1f: craft_recipe_request - 0x20: abilities - 0x21: block_dig - 0x22: entity_action - 0x23: steer_vehicle - 0x24: pong - 0x25: recipe_book - 0x26: displayed_recipe - 0x27: name_item - 0x28: resource_pack_receive - 0x29: advancement_tab - 0x2a: select_trade - 0x2b: set_beacon_effect - 0x2c: held_item_slot - 0x2d: update_command_block - 0x2e: update_command_block_minecart - 0x2f: set_creative_slot - 0x30: update_jigsaw_block - 0x31: update_structure_block - 0x32: update_sign - 0x33: arm_animation - 0x34: spectate - 0x35: block_place - 0x36: use_item + - teleport_confirm + - query_block_nbt + - set_difficulty + - message_acknowledgement + - chat_command + - chat_message + - chat_session_update + - chunk_batch_received + - client_command + - settings + - tab_complete + - configuration_acknowledged + - enchant_item + - window_click + - close_window + - set_slot_state + - custom_payload + - edit_book + - query_entity_nbt + - use_entity + - generate_structure + - keep_alive + - lock_difficulty + - position + - position_look + - look + - flying + - vehicle_move + - steer_boat + - pick_item + - ping_request + - craft_recipe_request + - abilities + - block_dig + - entity_action + - steer_vehicle + - pong + - recipe_book + - displayed_recipe + - name_item + - resource_pack_receive + - advancement_tab + - select_trade + - set_beacon_effect + - held_item_slot + - update_command_block + - update_command_block_minecart + - set_creative_slot + - update_jigsaw_block + - update_structure_block + - update_sign + - arm_animation + - spectate + - block_place + - use_item params: name ? if teleport_confirm: packet_teleport_confirm if query_block_nbt: packet_query_block_nbt From 18a1d623c4391e7e25e556b926d501f98c0d7988 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 23 Jun 2024 19:32:54 -0400 Subject: [PATCH 06/14] Update package.json --- tools/js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/js/package.json b/tools/js/package.json index 83b69b0fe..bbe0ae638 100644 --- a/tools/js/package.json +++ b/tools/js/package.json @@ -19,6 +19,6 @@ "standard": "^16.0.3" }, "devDependencies": { - "protodef-yaml": "github:extremeheat/protodef-yaml#segment" + "protodef-yaml": "^1.5.0" } } From c1cfb83ffba253be3177a5bd3c7caec77344734a Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 23 Jun 2024 23:44:01 +0000 Subject: [PATCH 07/14] update incrementVersion script and add to doc --- doc/add-data-new-version.md | 1 + tools/js/incrementVersion.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/doc/add-data-new-version.md b/doc/add-data-new-version.md index fbd74f20e..02191974b 100644 --- a/doc/add-data-new-version.md +++ b/doc/add-data-new-version.md @@ -28,6 +28,7 @@ For bedrock edition see [bedrock.md](bedrock.md) * All files that say Yes for auto can be gotten from [minecraft-data-auto-updater][9] (that uses [minecraft-data-generator-server][2]). This is the preferred way to extract the data. +* **Note**, there is a script inside the `tools/js` folder that can be run with `npm run version` with usage of `npm run version {version} {protocol_version}` to automatically copy over old data including the protocol in support for a new version and update entries in the dataPaths.json. After generating and creating the new files for the version in its own directory, the version must be added to dataPaths.json in the data folder. Additionally in data/pc/common the versions.json file needs to be updated with the new version. diff --git a/tools/js/incrementVersion.js b/tools/js/incrementVersion.js index 0dff81952..9ce72b043 100644 --- a/tools/js/incrementVersion.js +++ b/tools/js/incrementVersion.js @@ -50,13 +50,19 @@ function updateProtocol (edition, version, protocolVersionNumber) { didUpdateProtocol = true // Update references to the old version in the dataPaths.json file alterJSON(join(data, 'dataPaths.json'), dataPaths => { + let latestVersionData for (const v in dataPaths[edition]) { const e = dataPaths[edition][v] // if .proto points to latest, update it to the old version if (e.proto === `${edition}/latest`) { e.proto = `${edition}/${oldProtoVersion}` } + latestVersionData = e } + if (!dataPaths[edition][version]) { + dataPaths[edition][version] = latestVersionData + } + latestVersionData.proto = `${edition}/latest` }) } From f4de3fcde022324afca5e15896e3b5e0d842df19 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Tue, 2 Jul 2024 14:49:19 -0400 Subject: [PATCH 08/14] Update incrementVersion.js Fix not updating protocol/version in dataPath for newest version --- tools/js/incrementVersion.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/js/incrementVersion.js b/tools/js/incrementVersion.js index 9ce72b043..6acf6d228 100644 --- a/tools/js/incrementVersion.js +++ b/tools/js/incrementVersion.js @@ -63,6 +63,8 @@ function updateProtocol (edition, version, protocolVersionNumber) { dataPaths[edition][version] = latestVersionData } latestVersionData.proto = `${edition}/latest` + latestVersionData.protocol = `${edition}/${version}` + latestVersionData.version = `${edition}/${version}` }) } From fc79191ab18d52da598335d570b1eb6e3a1e808b Mon Sep 17 00:00:00 2001 From: extremeheat Date: Tue, 2 Jul 2024 22:29:31 +0000 Subject: [PATCH 09/14] add doc for protocol --- data/pc/1.20.3/protocol.json | 14 ++-- doc/add-data-new-version.md | 2 + doc/protocol.md | 154 +++++++++++++++++++++++++++++++++++ tools/js/compileProtocol.js | 2 +- 4 files changed, 164 insertions(+), 8 deletions(-) create mode 100644 doc/protocol.md diff --git a/data/pc/1.20.3/protocol.json b/data/pc/1.20.3/protocol.json index b84081403..f90a2cd36 100644 --- a/data/pc/1.20.3/protocol.json +++ b/data/pc/1.20.3/protocol.json @@ -3489,14 +3489,14 @@ { "compareTo": "columns", "fields": { - "0": [ - "buffer", - { - "countType": "varint" - } - ] + "0": "void" }, - "default": "void" + "default": [ + "buffer", + { + "countType": "varint" + } + ] } ] } diff --git a/doc/add-data-new-version.md b/doc/add-data-new-version.md index 02191974b..7bac1a632 100644 --- a/doc/add-data-new-version.md +++ b/doc/add-data-new-version.md @@ -33,6 +33,8 @@ For bedrock edition see [bedrock.md](bedrock.md) After generating and creating the new files for the version in its own directory, the version must be added to dataPaths.json in the data folder. Additionally in data/pc/common the versions.json file needs to be updated with the new version. +## Protocol data +* See [protocol.md] for information on the protocol and how to update the data [1]: https://wiki.vg/Pre-release_protocol [2]: https://github.com/PrismarineJS/minecraft-data-generator-server diff --git a/doc/protocol.md b/doc/protocol.md new file mode 100644 index 000000000..63c7b4fbf --- /dev/null +++ b/doc/protocol.md @@ -0,0 +1,154 @@ +## Updating Minecraft protocols + +The protocol data is manually updated. It is updated by looking at changes made to the Minecraft protocol through various sources. + +### Sources +#### Minecraft Java Edition +* https://wiki.vg/Protocol -- a manually updated version of the Minecraft protocol +* [Minecraft source code changes](https://github.com/extremeheat/extracted_minecraft_data/tree/clientlatest) - comparing decompiled Java output for the current version against the previous version + +#### Minecraft Bedrock Edition +* [PocketMine](https://github.com/pmmp/PocketMine-MP) - PHP +* [gophertunnel](https://github.com/Sandertv/gophertunnel) - Go +* [CloudburstMC](https://github.com/CloudburstMC/Protocol) - Java + +### Protocol schema + +This project uses ProtoDef's schema for representing Minecraft protocol packets in JSON. These protocol.json files can then be used to generate code to serialize and deserialize Minecraft packets in any language. See the documentation for [node-protodef here](https://github.com/ProtoDef-io/node-protodef) for a Node.js implementation. In PrismarineJS/minecraft-protocol and PrismarineJS/bedrock-protocol, JavaScript code is generated from the JSON through the node-protodef compiler. + +#### YAML syntax + +For easier maintainability, the protocol JSON is generated from a more human readable YAML format. You can read more [here](https://github.com/extremeheat/protodef-yaml). Some documentation is below. + +These YAML files can be found in data/pc/latest and data/bedrock/latest. Old protocol YAML data can be found in `data//`. + +In bedrock data, types and packets are sperated into proto.yml and types.yml files. On pc there is one single proto.yml file with all packets and types for all the states, and these states are sperated under different top-level regions like `^handshaking.toClient.types` and `^play.toServer.types` (which both inherit from the top `^types`). + +```yml +# This defines a new data structure, a ProtoDef container. +Position: + # Variable `x` in this struct has a type of `li32`, a little-endian 32-bit integer + x: li32 + # `z` is a 32-bit LE *unsigned* integer + z: lu32 + # `b` is a 32-bit LE floating point + y: lf32 + +# Fields starting with `packet_` are structs representing Minecraft packets +packet_player_position: + # Fields starting with ! are ignored by the parser. '!id' is used by the parser when generating the packet map + !id: 0x29 # This packet is ID #0x29 + !bound: client # `client` or `server` bound, just for documentation purposes. This has no other effect. + + # Read `on_ground` as a boolean + on_ground: bool + # Read `position` as custom data type `Position` defined above. + position: Position + + # Reads a 8-bit unsigned integer, then maps it to a string + movement_reason: u8 => + 0: player_jump + 1: player_autojump + 2: player_sneak + 3: player_sprint + 4: player_fall + + # A `_` as a field name declares an anonymous data structure which will be inlined. Adding a '?' at the end will start a `switch` statement + _: movement_reason ? + # if the condition matches to the string "player_jump" or "player_autojump", there is a data struct that needs to be read + if player_jump or player_autojump: + # read `original_position` as a `Position` + original_position: Position + jump_tick: li64 + # if the condition matches "player_fall", read the containing field + if player_fall: + original_position: Position + default: void + + # Another way to declare a switch, without an anonymous structure. `player_hunger` will be read as a 8-bit int if movement_reason == "player_sprint" + player_hunger: movement_reason ? + if player_sprint: u8 + # The default statement as in a switch statement + default: void + + # Square brackets notate an array. At the left is the type of the array values, at the right is the type of + # the length prefix. If no type at the left is specified, the type is defined below. + + # Reads an array of `Position`, length-prefixed with a ProtoBuf-type unsigned variable length integer (VarInt) + last_positions: Position[]varint + + # Reads an array, length-prefixed with a zigzag-encoded signed VarInt + # The data structure for the array is defined underneath + keys_down: []zigzag32 + up: bool + down: bool + shift: bool +``` + +The above roughly translates to the following JavaScript code to read a packet: +```js +function read_position(stream) { + const ret = {} + ret.x = stream.readLI32() + ret.z = stream.readLU32() + ret.y = stream.readLF32() + return ret +} + +function read_player_position(stream) { + const ret = {} + ret.on_ground = Boolean(stream.readU8()) + ret.position = read_position(stream) + let __movement_reason = stream.readU8() + let movement_reason = { 0: 'player_jump', 1: 'player_autojump', 2: 'player_sneak', 3: 'player_sprint', 4: 'player_fall' }[__movement_reason] + switch (movement_reason) { + case 'player_jump': + case 'player_autojump': + ret.original_position = read_position(stream) + ret.jump_tick = stream.readLI64() + break + case 'player_fall': + ret.original_position = read_position(stream) + break + default: break + } + ret.player_hunger = undefined + if (movement_reason == 'player_sprint') ret.player_hunger = stream.readU8() + ret.last_positions = [] + let __latest_positions_len = stream.readUnsignedVarInt() + for (let i = 0; i < __latest_positions_len; i++) { + ret.last_positions.push(read_player_position(stream)) + } + ret.keys_down = [] + let __keys_down_len = stream.readZigZagVarInt() + for (let i = 0; i < __keys_down_len; i++) { + const ret1 = {} + ret1.up = Boolean(stream.readU8()) + ret1.down = Boolean(stream.readU8()) + ret1.shift = Boolean(stream.readU8()) + ret.keys_down.push(ret1) + } + return ret +} +``` + +and the results in the following JSON for the packet: +```json +{ + "on_ground": false, + "position": { "x": 0, "y": 2, "z": 0 }, + "movement_reason": "player_jump", + "original_position": { "x": 0, "y": 0, "z": 0 }, + "jump_tick": 494894984, + "last_positions": [{ "x": 0, "y": 1, "z": 0 }], + "keys_down": [] +} +``` + +Custom ProtoDef types can be inlined as JSON: +```yml +string: ["pstring",{"countType":"varint"}] +``` + +#### Compiling to JSON +Once the protocol YAML files have been updated, run `npm run build` inside `tools/js` to generate protocol.json for each of the protocol YAML files. \ No newline at end of file diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index 078109b46..bc6449891 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -98,7 +98,7 @@ if (!module.parent) { if (!process.argv[2]) { all(convert) } else { // build the specified version - convert(process.argv[2]) + convert(process.argv[2], process.argv[3]) } } From ba09bf23b199bcc6f0c0c33ac7db4bca3d16a4ab Mon Sep 17 00:00:00 2001 From: extremeheat Date: Wed, 3 Jul 2024 06:07:09 +0000 Subject: [PATCH 10/14] convert old pc protocols to yaml --- data/dataPaths.json | 144 +- data/pc/0.30c/proto.yml | 138 ++ data/pc/0.30c/protocol.json | 56 +- data/pc/1.10-pre1/proto.yml | 1101 +++++++++ data/pc/1.10-pre1/protocol.json | 307 +-- data/pc/1.10/proto.yml | 1101 +++++++++ data/pc/1.10/protocol.json | 307 +-- data/pc/1.11/proto.yml | 1103 +++++++++ data/pc/1.11/protocol.json | 307 +-- data/pc/1.12-pre4/proto.yml | 1174 ++++++++++ data/pc/1.12-pre4/protocol.json | 359 +-- data/pc/1.12.1/proto.yml | 1200 ++++++++++ data/pc/1.12.1/protocol.json | 379 ++-- data/pc/1.12.2/proto.yml | 1200 ++++++++++ data/pc/1.12.2/protocol.json | 379 ++-- data/pc/1.12/proto.yml | 1202 ++++++++++ data/pc/1.12/protocol.json | 383 ++-- data/pc/1.13.1/proto.yml | 1632 ++++++++++++++ data/pc/1.13.1/protocol.json | 1325 ++++++----- data/pc/1.13.2-pre1/proto.yml | 1633 ++++++++++++++ data/pc/1.13.2-pre1/protocol.json | 741 +++--- data/pc/1.13.2-pre2/proto.yml | 1633 ++++++++++++++ data/pc/1.13.2-pre2/protocol.json | 741 +++--- data/pc/1.13.2/proto.yml | 1633 ++++++++++++++ data/pc/1.13.2/protocol.json | 741 +++--- data/pc/1.13/proto.yml | 1631 ++++++++++++++ data/pc/1.13/protocol.json | 1317 ++++++----- data/pc/1.14.1/proto.yml | 1717 ++++++++++++++ data/pc/1.14.1/protocol.json | 874 +++---- data/pc/1.14.3/proto.yml | 1718 ++++++++++++++ data/pc/1.14.3/protocol.json | 874 +++---- data/pc/1.14.4/proto.yml | 1726 ++++++++++++++ data/pc/1.14.4/protocol.json | 884 ++++---- data/pc/1.14/proto.yml | 1717 ++++++++++++++ data/pc/1.14/protocol.json | 874 +++---- data/pc/1.15.1/proto.yml | 1730 ++++++++++++++ data/pc/1.15.1/protocol.json | 898 ++++---- data/pc/1.15.2/proto.yml | 1730 ++++++++++++++ data/pc/1.15.2/protocol.json | 898 ++++---- data/pc/1.15/proto.yml | 1730 ++++++++++++++ data/pc/1.15/protocol.json | 898 ++++---- data/pc/1.16-rc1/proto.yml | 1762 +++++++++++++++ data/pc/1.16-rc1/protocol.json | 970 ++++---- data/pc/1.16.1/proto.yml | 1762 +++++++++++++++ data/pc/1.16.1/protocol.json | 970 ++++---- data/pc/1.16.2/proto.yml | 1776 +++++++++++++++ data/pc/1.16.2/protocol.json | 962 ++++---- data/pc/1.16/proto.yml | 1762 +++++++++++++++ data/pc/1.16/protocol.json | 970 ++++---- data/pc/1.17.1/proto.yml | 1800 +++++++++++++++ data/pc/1.17.1/protocol.json | 382 ++-- data/pc/1.17/proto.yml | 1796 +++++++++++++++ data/pc/1.17/protocol.json | 382 ++-- data/pc/1.18.2/proto.yml | 1836 +++++++++++++++ data/pc/1.18.2/protocol.json | 384 ++-- data/pc/1.18/proto.yml | 1836 +++++++++++++++ data/pc/1.18/protocol.json | 384 ++-- data/pc/1.19.2/proto.yml | 2085 +++++++++++++++++ data/pc/1.19.2/protocol.json | 401 ++-- data/pc/1.19.3/proto.yml | 2322 +++++++++++++++++++ data/pc/1.19.3/protocol.json | 720 +++--- data/pc/1.19.4/proto.yml | 2413 ++++++++++++++++++++ data/pc/1.19.4/protocol.json | 394 ++-- data/pc/1.19/proto.yml | 1990 ++++++++++++++++ data/pc/1.19/protocol.json | 393 ++-- data/pc/1.20.2/proto.yml | 2508 +++++++++++++++++++++ data/pc/1.20.2/protocol.json | 444 ++-- data/pc/1.20/proto.yml | 2409 ++++++++++++++++++++ data/pc/1.20/protocol.json | 394 ++-- data/pc/1.7/proto.yml | 922 ++++++++ data/pc/1.7/protocol.json | 226 +- data/pc/1.8/proto.yml | 1035 +++++++++ data/pc/1.8/protocol.json | 284 +-- data/pc/1.9.1-pre2/proto.yml | 1109 +++++++++ data/pc/1.9.1-pre2/protocol.json | 302 +-- data/pc/1.9.2/proto.yml | 1109 +++++++++ data/pc/1.9.2/protocol.json | 302 +-- data/pc/1.9.4/proto.yml | 1102 +++++++++ data/pc/1.9.4/protocol.json | 307 +-- data/pc/1.9/proto.yml | 1109 +++++++++ data/pc/1.9/protocol.json | 302 +-- data/pc/15w40b/proto.yml | 1070 +++++++++ data/pc/15w40b/protocol.json | 292 +-- data/pc/16w20a/proto.yml | 1102 +++++++++ data/pc/16w20a/protocol.json | 307 +-- data/pc/16w35a/proto.yml | 1102 +++++++++ data/pc/16w35a/protocol.json | 307 +-- data/pc/17w15a/proto.yml | 1165 ++++++++++ data/pc/17w15a/protocol.json | 338 +-- data/pc/17w18b/proto.yml | 1163 ++++++++++ data/pc/17w18b/protocol.json | 354 +-- data/pc/17w50a/proto.yml | 1418 ++++++++++++ data/pc/17w50a/protocol.json | 1171 ++++++---- data/pc/20w13b/proto.yml | 1732 ++++++++++++++ data/pc/20w13b/protocol.json | 899 ++++---- data/pc/21w07a/proto.yml | 1785 +++++++++++++++ data/pc/21w07a/protocol.json | 1050 +++++---- tools/js/convertMcpcProtocolJsonToYaml.js | 39 +- 98 files changed, 88983 insertions(+), 12762 deletions(-) create mode 100644 data/pc/0.30c/proto.yml create mode 100644 data/pc/1.10-pre1/proto.yml create mode 100644 data/pc/1.10/proto.yml create mode 100644 data/pc/1.11/proto.yml create mode 100644 data/pc/1.12-pre4/proto.yml create mode 100644 data/pc/1.12.1/proto.yml create mode 100644 data/pc/1.12.2/proto.yml create mode 100644 data/pc/1.12/proto.yml create mode 100644 data/pc/1.13.1/proto.yml create mode 100644 data/pc/1.13.2-pre1/proto.yml create mode 100644 data/pc/1.13.2-pre2/proto.yml create mode 100644 data/pc/1.13.2/proto.yml create mode 100644 data/pc/1.13/proto.yml create mode 100644 data/pc/1.14.1/proto.yml create mode 100644 data/pc/1.14.3/proto.yml create mode 100644 data/pc/1.14.4/proto.yml create mode 100644 data/pc/1.14/proto.yml create mode 100644 data/pc/1.15.1/proto.yml create mode 100644 data/pc/1.15.2/proto.yml create mode 100644 data/pc/1.15/proto.yml create mode 100644 data/pc/1.16-rc1/proto.yml create mode 100644 data/pc/1.16.1/proto.yml create mode 100644 data/pc/1.16.2/proto.yml create mode 100644 data/pc/1.16/proto.yml create mode 100644 data/pc/1.17.1/proto.yml create mode 100644 data/pc/1.17/proto.yml create mode 100644 data/pc/1.18.2/proto.yml create mode 100644 data/pc/1.18/proto.yml create mode 100644 data/pc/1.19.2/proto.yml create mode 100644 data/pc/1.19.3/proto.yml create mode 100644 data/pc/1.19.4/proto.yml create mode 100644 data/pc/1.19/proto.yml create mode 100644 data/pc/1.20.2/proto.yml create mode 100644 data/pc/1.20/proto.yml create mode 100644 data/pc/1.7/proto.yml create mode 100644 data/pc/1.8/proto.yml create mode 100644 data/pc/1.9.1-pre2/proto.yml create mode 100644 data/pc/1.9.2/proto.yml create mode 100644 data/pc/1.9.4/proto.yml create mode 100644 data/pc/1.9/proto.yml create mode 100644 data/pc/15w40b/proto.yml create mode 100644 data/pc/16w20a/proto.yml create mode 100644 data/pc/16w35a/proto.yml create mode 100644 data/pc/17w15a/proto.yml create mode 100644 data/pc/17w18b/proto.yml create mode 100644 data/pc/17w50a/proto.yml create mode 100644 data/pc/20w13b/proto.yml create mode 100644 data/pc/21w07a/proto.yml diff --git a/data/dataPaths.json b/data/dataPaths.json index e4b6e200b..b960927b3 100644 --- a/data/dataPaths.json +++ b/data/dataPaths.json @@ -3,7 +3,8 @@ "0.30c": { "blocks": "pc/0.30c", "protocol": "pc/0.30c", - "version": "pc/0.30c" + "version": "pc/0.30c", + "proto": "pc/0.30c" }, "1.7": { "attributes": "pc/1.7", @@ -24,7 +25,8 @@ "foods": "pc/1.7", "particles": "pc/1.7", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.7" }, "1.8": { "attributes": "pc/1.8", @@ -45,7 +47,8 @@ "foods": "pc/1.8", "particles": "pc/1.8", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.8" }, "15w40b": { "attributes": "pc/1.9", @@ -65,7 +68,8 @@ "language": "pc/1.9", "particles": "pc/15w40b", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/15w40b" }, "1.9": { "attributes": "pc/1.9", @@ -86,7 +90,8 @@ "foods": "pc/1.9", "particles": "pc/1.9", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.9" }, "1.9.1-pre2": { "attributes": "pc/1.9", @@ -107,7 +112,8 @@ "foods": "pc/1.9", "particles": "pc/1.9", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.9.1-pre2" }, "1.9.2": { "attributes": "pc/1.9", @@ -129,7 +135,8 @@ "foods": "pc/1.9", "particles": "pc/1.9", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.9.2" }, "1.9.4": { "attributes": "pc/1.9", @@ -151,7 +158,8 @@ "particles": "pc/1.9", "tints": "pc/1.16.2", "mapIcons": "pc/1.7", - "sounds": "pc/1.9.4" + "sounds": "pc/1.9.4", + "proto": "pc/1.9.4" }, "16w20a": { "attributes": "pc/1.9", @@ -172,7 +180,8 @@ "foods": "pc/1.9", "particles": "pc/1.10", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/16w20a" }, "1.10-pre1": { "attributes": "pc/1.9", @@ -193,7 +202,8 @@ "foods": "pc/1.9", "particles": "pc/1.10", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.10-pre1" }, "1.10": { "attributes": "pc/1.10", @@ -214,7 +224,8 @@ "foods": "pc/1.10", "particles": "pc/1.10", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/1.10" }, "1.10.1": { "attributes": "pc/1.10", @@ -278,7 +289,8 @@ "foods": "pc/1.10", "particles": "pc/1.10", "tints": "pc/1.16.2", - "mapIcons": "pc/1.7" + "mapIcons": "pc/1.7", + "proto": "pc/16w35a" }, "1.11": { "attributes": "pc/1.11", @@ -300,7 +312,8 @@ "foods": "pc/1.11", "particles": "pc/1.11", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/1.11" }, "1.11.2": { "attributes": "pc/1.11", @@ -344,7 +357,8 @@ "foods": "pc/1.11", "particles": "pc/1.11", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/17w15a" }, "17w18b": { "attributes": "pc/1.11", @@ -365,7 +379,8 @@ "foods": "pc/1.11", "particles": "pc/1.11", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/17w18b" }, "1.12-pre4": { "attributes": "pc/1.11", @@ -386,7 +401,8 @@ "foods": "pc/1.11", "particles": "pc/1.11", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/1.12-pre4" }, "1.12": { "attributes": "pc/1.12", @@ -407,7 +423,8 @@ "foods": "pc/1.12", "particles": "pc/1.12", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/1.12" }, "1.12.1": { "attributes": "pc/1.12", @@ -428,7 +445,8 @@ "foods": "pc/1.12", "particles": "pc/1.12", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/1.12.1" }, "1.12.2": { "attributes": "pc/1.12", @@ -450,7 +468,8 @@ "particles": "pc/1.12", "tints": "pc/1.16.2", "mapIcons": "pc/1.11", - "sounds": "pc/1.12.2" + "sounds": "pc/1.12.2", + "proto": "pc/1.12.2" }, "17w50a": { "attributes": "pc/1.12", @@ -471,7 +490,8 @@ "foods": "pc/1.12", "particles": "pc/17w50a", "tints": "pc/1.16.2", - "mapIcons": "pc/1.11" + "mapIcons": "pc/1.11", + "proto": "pc/17w50a" }, "1.13": { "attributes": "pc/1.13", @@ -493,7 +513,8 @@ "particles": "pc/1.13", "commands": "pc/1.13", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.13" }, "1.13.1": { "attributes": "pc/1.13", @@ -515,7 +536,8 @@ "particles": "pc/1.13", "commands": "pc/1.13.1", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.13.1" }, "1.13.2-pre1": { "attributes": "pc/1.13", @@ -536,7 +558,8 @@ "foods": "pc/1.13.2", "particles": "pc/1.13", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.13.2-pre1" }, "1.13.2-pre2": { "attributes": "pc/1.13", @@ -557,7 +580,8 @@ "foods": "pc/1.13.2", "particles": "pc/1.13", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.13.2-pre2" }, "1.13.2": { "attributes": "pc/1.13", @@ -580,7 +604,8 @@ "commands": "pc/1.13.2", "tints": "pc/1.16.2", "mapIcons": "pc/1.13", - "sounds": "pc/1.13.2" + "sounds": "pc/1.13.2", + "proto": "pc/1.13.2" }, "1.14": { "attributes": "pc/1.14", @@ -605,7 +630,8 @@ "commands": "pc/1.14", "tints": "pc/1.16.2", "mapIcons": "pc/1.13", - "sounds": "pc/1.14" + "sounds": "pc/1.14", + "proto": "pc/1.14" }, "1.14.1": { "attributes": "pc/1.14", @@ -629,7 +655,8 @@ "entityLoot": "pc/1.14.4", "commands": "pc/1.14.1", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.14.1" }, "1.14.3": { "attributes": "pc/1.14", @@ -653,7 +680,8 @@ "entityLoot": "pc/1.14.4", "commands": "pc/1.14.3", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.14.3" }, "1.14.4": { "attributes": "pc/1.14", @@ -678,7 +706,8 @@ "commands": "pc/1.14.4", "tints": "pc/1.16.2", "mapIcons": "pc/1.13", - "sounds": "pc/1.14.4" + "sounds": "pc/1.14.4", + "proto": "pc/1.14.4" }, "1.15": { "attributes": "pc/1.15", @@ -703,7 +732,8 @@ "commands": "pc/1.15", "tints": "pc/1.16.2", "mapIcons": "pc/1.13", - "sounds": "pc/1.15" + "sounds": "pc/1.15", + "proto": "pc/1.15" }, "1.15.1": { "attributes": "pc/1.15", @@ -727,7 +757,8 @@ "entityLoot": "pc/1.15.2", "commands": "pc/1.15.1", "tints": "pc/1.16.2", - "mapIcons": "pc/1.13" + "mapIcons": "pc/1.13", + "proto": "pc/1.15.1" }, "1.15.2": { "attributes": "pc/1.15", @@ -752,7 +783,8 @@ "commands": "pc/1.15.2", "tints": "pc/1.16.2", "mapIcons": "pc/1.13", - "sounds": "pc/1.15.2" + "sounds": "pc/1.15.2", + "proto": "pc/1.15.2" }, "20w13b": { "attributes": "pc/1.16", @@ -775,7 +807,8 @@ "blockLoot": "pc/1.16.1", "entityLoot": "pc/1.16.1", "tints": "pc/1.16.2", - "mapIcons": "pc/1.16" + "mapIcons": "pc/1.16", + "proto": "pc/20w13b" }, "20w14a": { "attributes": "pc/1.16", @@ -821,7 +854,8 @@ "blockLoot": "pc/1.16.1", "entityLoot": "pc/1.16.1", "tints": "pc/1.16.2", - "mapIcons": "pc/1.16" + "mapIcons": "pc/1.16", + "proto": "pc/1.16-rc1" }, "1.16": { "attributes": "pc/1.16", @@ -847,7 +881,8 @@ "loginPacket": "pc/1.16", "tints": "pc/1.16.2", "mapIcons": "pc/1.16", - "sounds": "pc/1.16" + "sounds": "pc/1.16", + "proto": "pc/1.16" }, "1.16.1": { "attributes": "pc/1.16", @@ -872,7 +907,8 @@ "commands": "pc/1.16.1", "loginPacket": "pc/1.16", "tints": "pc/1.16.2", - "mapIcons": "pc/1.16" + "mapIcons": "pc/1.16", + "proto": "pc/1.16.1" }, "1.16.2": { "attributes": "pc/1.16", @@ -897,7 +933,8 @@ "commands": "pc/1.16.2", "loginPacket": "pc/1.16.2", "tints": "pc/1.16.2", - "mapIcons": "pc/1.16" + "mapIcons": "pc/1.16", + "proto": "pc/1.16.2" }, "1.16.3": { "attributes": "pc/1.16", @@ -994,7 +1031,8 @@ "entityLoot": "pc/1.16.2", "loginPacket": "pc/1.16.2", "tints": "pc/1.16.2", - "mapIcons": "pc/1.16" + "mapIcons": "pc/1.16", + "proto": "pc/21w07a" }, "1.17": { "attributes": "pc/1.17", @@ -1019,7 +1057,8 @@ "loginPacket": "pc/1.17", "tints": "pc/1.17", "mapIcons": "pc/1.16", - "sounds": "pc/1.17" + "sounds": "pc/1.17", + "proto": "pc/1.17" }, "1.17.1": { "attributes": "pc/1.17", @@ -1044,7 +1083,8 @@ "loginPacket": "pc/1.17", "tints": "pc/1.17", "mapIcons": "pc/1.16", - "sounds": "pc/1.17" + "sounds": "pc/1.17", + "proto": "pc/1.17.1" }, "1.18": { "attributes": "pc/1.17", @@ -1069,7 +1109,8 @@ "loginPacket": "pc/1.18", "tints": "pc/1.17", "mapIcons": "pc/1.16", - "sounds": "pc/1.18" + "sounds": "pc/1.18", + "proto": "pc/1.18" }, "1.18.1": { "attributes": "pc/1.17", @@ -1118,7 +1159,8 @@ "loginPacket": "pc/1.18.2", "tints": "pc/1.17", "mapIcons": "pc/1.16", - "sounds": "pc/1.18" + "sounds": "pc/1.18", + "proto": "pc/1.18.2" }, "1.19": { "attributes": "pc/1.17", @@ -1143,7 +1185,8 @@ "loginPacket": "pc/1.19", "tints": "pc/1.19", "mapIcons": "pc/1.16", - "sounds": "pc/1.19" + "sounds": "pc/1.19", + "proto": "pc/1.19" }, "1.19.2": { "attributes": "pc/1.17", @@ -1168,7 +1211,8 @@ "loginPacket": "pc/1.19.2", "tints": "pc/1.19.2", "mapIcons": "pc/1.16", - "sounds": "pc/1.19.2" + "sounds": "pc/1.19.2", + "proto": "pc/1.19.2" }, "1.19.3": { "attributes": "pc/1.17", @@ -1192,7 +1236,8 @@ "entityLoot": "pc/1.19", "loginPacket": "pc/1.19.2", "tints": "pc/1.19.3", - "mapIcons": "pc/1.16" + "mapIcons": "pc/1.16", + "proto": "pc/1.19.3" }, "1.19.4": { "attributes": "pc/1.17", @@ -1217,7 +1262,8 @@ "loginPacket": "pc/1.19.2", "tints": "pc/1.19.4", "mapIcons": "pc/1.16", - "sounds": "pc/1.19.2" + "sounds": "pc/1.19.2", + "proto": "pc/1.19.4" }, "1.20": { "attributes": "pc/1.17", @@ -1242,7 +1288,8 @@ "loginPacket": "pc/1.20", "tints": "pc/1.20", "mapIcons": "pc/1.16", - "sounds": "pc/1.20.1" + "sounds": "pc/1.20.1", + "proto": "pc/1.20" }, "1.20.1": { "attributes": "pc/1.17", @@ -1293,7 +1340,8 @@ "tints": "pc/1.20.2", "mapIcons": "pc/1.20.2", "commands": "pc/1.20.2", - "sounds": "pc/1.20.2" + "sounds": "pc/1.20.2", + "proto": "pc/1.20.2" }, "1.20.3": { "attributes": "pc/1.17", diff --git a/data/pc/0.30c/proto.yml b/data/pc/0.30c/proto.yml new file mode 100644 index 000000000..bb0427d67 --- /dev/null +++ b/data/pc/0.30c/proto.yml @@ -0,0 +1,138 @@ +!version: 0.30c + +^types: + u8: native + string: native + i8: native + i16: native + byte_array: native + +^toServer.types: + packet_player_identification: + protocol_version: u8 + username: string + verification_key: string + unused: i8 + packet_set_block: + x: i16 + y: i16 + z: i16 + mode: u8 + block_type: u8 + packet_position: + player_id: u8 + x: i16 + y: i16 + z: i16 + yaw: u8 + pitch: u8 + packet_message: + unused: u8 + message: string + packet: + name: u8 => + 0x00: player_identification + 0x05: set_block + 0x08: position + 0x0d: message + params: name ? + if player_identification: packet_player_identification + if set_block: packet_set_block + if position: packet_position + if message: packet_message + +^toClient.types: + packet_server_identification: + protocol_version: u8 + server_name: string + server_motd: string + user_type: i8 + packet_ping: + # Empty + packet_level_initialize: + # Empty + packet_level_data_chunk: + chunk_data: byte_array + percent_complete: u8 + packet_level_finalize: + x_size: i16 + y_size: i16 + z_size: i16 + packet_set_block: + x: i16 + y: i16 + z: i16 + block_type: u8 + packet_spawn_player: + player_id: i8 + player_name: string + x: i16 + y: i16 + z: i16 + yaw: u8 + pitch: u8 + packet_player_teleport: + player_id: i8 + x: i16 + y: i16 + z: i16 + yaw: u8 + pitch: u8 + packet_position_and_orientation_update: + player_id: i8 + change_in_x: i8 + change_in_y: i8 + change_in_z: i8 + yaw: i8 + pitch: i8 + packet_position_update: + player_id: i8 + change_in_x: i8 + change_in_y: i8 + change_in_z: i8 + packet_orientation_update: + player_id: i8 + yaw: u8 + pitch: u8 + packet_despawn_player: + player_id: i8 + packet_message: + player_id: i8 + message: string + packet_disconnect_player: + disconnect_reason: string + packet_update_user_type: + user_type: u8 + packet: + name: u8 => + 0x00: server_identification + 0x01: ping + 0x02: level_initialize + 0x03: level_data_chunk + 0x04: level_finalize + 0x06: set_block + 0x07: spawn_player + 0x08: player_teleport + 0x09: position_and_orientation_update + 0x0a: position_update + 0x0b: orientation_update + 0x0c: despawn_player + 0x0d: message + 0x0e: disconnect_player + 0x0f: update_user_type + params: name ? + if server_identification: packet_server_identification + if ping: packet_ping + if level_initialize: packet_level_initialize + if level_data_chunk: packet_level_data_chunk + if level_finalize: packet_level_finalize + if set_block: packet_set_block + if spawn_player: packet_spawn_player + if player_teleport: packet_player_teleport + if position_and_orientation_update: packet_position_and_orientation_update + if position_update: packet_position_update + if orientation_update: packet_orientation_update + if despawn_player: packet_despawn_player + if message: packet_message + if disconnect_player: packet_disconnect_player + if update_user_type: packet_update_user_type diff --git a/data/pc/0.30c/protocol.json b/data/pc/0.30c/protocol.json index 229a6e8b0..480842af7 100644 --- a/data/pc/0.30c/protocol.json +++ b/data/pc/0.30c/protocol.json @@ -1,10 +1,10 @@ { - "types":{ - "u8":"native", - "string":"native", - "i8":"native", - "i16":"native", - "byte_array":"native" + "types": { + "u8": "native", + "string": "native", + "i8": "native", + "i16": "native", + "byte_array": "native" }, "toServer": { "types": { @@ -106,10 +106,10 @@ { "type": "u8", "mappings": { - "0x00": "player_identification", - "0x05": "set_block", - "0x08": "position", - "0x0d": "message" + "0": "player_identification", + "5": "set_block", + "8": "position", + "13": "message" } } ] @@ -125,7 +125,8 @@ "set_block": "packet_set_block", "position": "packet_position", "message": "packet_message" - } + }, + "default": "void" } ] } @@ -394,21 +395,21 @@ { "type": "u8", "mappings": { - "0x00": "server_identification", - "0x01": "ping", - "0x02": "level_initialize", - "0x03": "level_data_chunk", - "0x04": "level_finalize", - "0x06": "set_block", - "0x07": "spawn_player", - "0x08": "player_teleport", - "0x09": "position_and_orientation_update", - "0x0a": "position_update", - "0x0b": "orientation_update", - "0x0c": "despawn_player", - "0x0d": "message", - "0x0e": "disconnect_player", - "0x0f": "update_user_type" + "0": "server_identification", + "1": "ping", + "2": "level_initialize", + "3": "level_data_chunk", + "4": "level_finalize", + "6": "set_block", + "7": "spawn_player", + "8": "player_teleport", + "9": "position_and_orientation_update", + "10": "position_update", + "11": "orientation_update", + "12": "despawn_player", + "13": "message", + "14": "disconnect_player", + "15": "update_user_type" } } ] @@ -435,7 +436,8 @@ "message": "packet_message", "disconnect_player": "packet_disconnect_player", "update_user_type": "packet_update_user_type" - } + }, + "default": "void" } ] } diff --git a/data/pc/1.10-pre1/proto.yml b/data/pc/1.10-pre1/proto.yml new file mode 100644 index 000000000..efd8b0587 --- /dev/null +++ b/data/pc/1.10-pre1/proto.yml @@ -0,0 +1,1101 @@ +!version: 1.10-pre1 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: sound_effect + 0x47: playerlist_header + 0x48: collect + 0x49: entity_teleport + 0x4a: entity_update_attributes + 0x4b: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.10-pre1/protocol.json b/data/pc/1.10-pre1/protocol.json index fe137a44b..2b3de33b7 100644 --- a/data/pc/1.10-pre1/protocol.json +++ b/data/pc/1.10-pre1/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1344,9 +1350,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1418,15 +1425,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2780,82 +2807,82 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "sound_effect", + "71": "playerlist_header", + "72": "collect", + "73": "entity_teleport", + "74": "entity_update_attributes", + "75": "entity_effect" } } ] @@ -2943,7 +2970,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3489,36 +3517,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3560,7 +3588,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3569,4 +3598,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.10/proto.yml b/data/pc/1.10/proto.yml new file mode 100644 index 000000000..8c1da5d65 --- /dev/null +++ b/data/pc/1.10/proto.yml @@ -0,0 +1,1101 @@ +!version: 1.10 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: sound_effect + 0x47: playerlist_header + 0x48: collect + 0x49: entity_teleport + 0x4a: entity_update_attributes + 0x4b: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.10/protocol.json b/data/pc/1.10/protocol.json index fe137a44b..2b3de33b7 100644 --- a/data/pc/1.10/protocol.json +++ b/data/pc/1.10/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1344,9 +1350,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1418,15 +1425,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2780,82 +2807,82 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "sound_effect", + "71": "playerlist_header", + "72": "collect", + "73": "entity_teleport", + "74": "entity_update_attributes", + "75": "entity_effect" } } ] @@ -2943,7 +2970,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3489,36 +3517,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3560,7 +3588,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3569,4 +3598,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.11/proto.yml b/data/pc/1.11/proto.yml new file mode 100644 index 000000000..65d21db96 --- /dev/null +++ b/data/pc/1.11/proto.yml @@ -0,0 +1,1103 @@ +!version: 1.11 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: sound_effect + 0x47: playerlist_header + 0x48: collect + 0x49: entity_teleport + 0x4a: entity_update_attributes + 0x4b: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.11/protocol.json b/data/pc/1.11/protocol.json index 0b3ca86c0..001bc23a8 100644 --- a/data/pc/1.11/protocol.json +++ b/data/pc/1.11/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1344,9 +1350,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1418,15 +1425,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2785,82 +2812,82 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "sound_effect", + "71": "playerlist_header", + "72": "collect", + "73": "entity_teleport", + "74": "entity_update_attributes", + "75": "entity_effect" } } ] @@ -2948,7 +2975,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3494,36 +3522,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3565,7 +3593,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3574,4 +3603,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.12-pre4/proto.yml b/data/pc/1.12-pre4/proto.yml new file mode 100644 index 000000000..08c29a450 --- /dev/null +++ b/data/pc/1.12-pre4/proto.yml @@ -0,0 +1,1174 @@ +!version: 1.12-pre4 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: i32 + backgroundTexture?: string + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: i16 + craftingBookOpen: bool + filteringCraftable: bool + recipes1: i32[]varint + recipes2: i32[]varint + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_advancement_progress: + id?: string + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: advancements + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: tab_complete + 0x10: chat + 0x11: multi_block_change + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: login + 0x25: map + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: entity + 0x2a: vehicle_move + 0x2b: open_sign_entity + 0x2c: abilities + 0x2d: combat_event + 0x2e: player_info + 0x2f: position + 0x30: bed + 0x31: unlock_recipes + 0x32: entity_destroy + 0x33: remove_entity_effect + 0x34: resource_pack_send + 0x35: respawn + 0x36: entity_head_rotation + 0x37: world_border + 0x38: camera + 0x39: held_item_slot + 0x3a: scoreboard_display_objective + 0x3b: entity_metadata + 0x3c: attach_entity + 0x3d: entity_velocity + 0x3e: entity_equipment + 0x3f: experience + 0x40: update_health + 0x41: scoreboard_objective + 0x42: set_passengers + 0x43: teams + 0x44: scoreboard_score + 0x45: spawn_position + 0x46: update_time + 0x47: title + 0x48: sound_effect + 0x49: playerlist_header + 0x4a: collect + 0x4b: entity_teleport + 0x4c: entity_update_attributes + 0x4d: entity_effect + 0x4e: advancement_progress + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if advancement_progress: packet_advancement_progress + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_prepare_crafting_grid: + windowId: u8 + actionNumber: u16 + returnEntry: []u16 + item: slot + craftingSlot: u8 + playerSlot: u8 + prepareEntry: []u16 + item: slot + craftingSlot: u8 + playerSlot: u8 + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: i32 + _: type ? + if 1: + displayedRecipe: string + if 2: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: prepare_crafting_grid + 0x02: tab_complete + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: use_entity + 0x0c: keep_alive + 0x0d: position + 0x0e: position_look + 0x0f: look + 0x10: flying + 0x11: vehicle_move + 0x12: steer_boat + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: held_item_slot + 0x1a: set_creative_slot + 0x1b: update_sign + 0x1c: arm_animation + 0x1d: spectate + 0x1e: block_place + 0x1f: use_item + 0x20: advancement_tab + params: name ? + if teleport_confirm: packet_teleport_confirm + if prepare_crafting_grid: packet_prepare_crafting_grid + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.12-pre4/protocol.json b/data/pc/1.12-pre4/protocol.json index 2efe4e418..6560e8914 100644 --- a/data/pc/1.12-pre4/protocol.json +++ b/data/pc/1.12-pre4/protocol.json @@ -129,7 +129,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -241,8 +242,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -256,7 +257,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -296,8 +298,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -311,7 +313,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -344,8 +347,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -359,7 +362,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -439,10 +443,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -458,7 +462,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -510,8 +515,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -525,7 +530,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1524,9 +1530,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1598,15 +1605,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2137,22 +2164,22 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"i32" + "countType": "varint", + "type": "i32" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "array", { - "countType":"varint", - "type":"i32" + "countType": "varint", + "type": "i32" } ] } @@ -3014,85 +3041,85 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "advancements", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "tab_complete", - "0x10": "chat", - "0x11": "multi_block_change", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "entity_update_attributes", - "0x4d": "entity_effect", - "0x4e": "advancement_progress" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "advancements", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "tab_complete", + "16": "chat", + "17": "multi_block_change", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "login", + "37": "map", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "entity", + "42": "vehicle_move", + "43": "open_sign_entity", + "44": "abilities", + "45": "combat_event", + "46": "player_info", + "47": "position", + "48": "bed", + "49": "unlock_recipes", + "50": "entity_destroy", + "51": "remove_entity_effect", + "52": "resource_pack_send", + "53": "respawn", + "54": "entity_head_rotation", + "55": "world_border", + "56": "camera", + "57": "held_item_slot", + "58": "scoreboard_display_objective", + "59": "entity_metadata", + "60": "attach_entity", + "61": "entity_velocity", + "62": "entity_equipment", + "63": "experience", + "64": "update_health", + "65": "scoreboard_objective", + "66": "set_passengers", + "67": "teams", + "68": "scoreboard_score", + "69": "spawn_position", + "70": "update_time", + "71": "title", + "72": "sound_effect", + "73": "playerlist_header", + "74": "collect", + "75": "entity_teleport", + "76": "entity_update_attributes", + "77": "entity_effect", + "78": "advancement_progress" } } ] @@ -3183,7 +3210,8 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "advancement_progress": "packet_advancement_progress" - } + }, + "default": "void" } ] } @@ -3218,7 +3246,7 @@ "type": [ "array", { - "countType":"u16", + "countType": "u16", "type": [ "container", [ @@ -3244,8 +3272,8 @@ "type": [ "array", { - "countType":"u16", - "type":[ + "countType": "u16", + "type": [ "container", [ { @@ -3680,13 +3708,13 @@ "type": "i32" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "1":[ + "compareTo": "type", + "fields": { + "1": [ "container", [ { @@ -3708,7 +3736,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -3838,11 +3867,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -3858,39 +3888,39 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "flying", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "held_item_slot", - "0x1a": "set_creative_slot", - "0x1b": "update_sign", - "0x1c": "arm_animation", - "0x1d": "spectate", - "0x1e": "block_place", - "0x1f": "use_item", - "0x20": "advancement_tab" + "0": "teleport_confirm", + "1": "prepare_crafting_grid", + "2": "tab_complete", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "use_entity", + "12": "keep_alive", + "13": "position", + "14": "position_look", + "15": "look", + "16": "flying", + "17": "vehicle_move", + "18": "steer_boat", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "held_item_slot", + "26": "set_creative_slot", + "27": "update_sign", + "28": "arm_animation", + "29": "spectate", + "30": "block_place", + "31": "use_item", + "32": "advancement_tab" } } ] @@ -3935,7 +3965,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -3944,4 +3975,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.12.1/proto.yml b/data/pc/1.12.1/proto.yml new file mode 100644 index 000000000..0fde289ca --- /dev/null +++ b/data/pc/1.12.1/proto.yml @@ -0,0 +1,1200 @@ +!version: 1.12.1 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: varint + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + recipes1: varint[]varint + recipes2: action ? + if 0: varint[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: entity + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: craft_recipe_response + 0x2c: abilities + 0x2d: combat_event + 0x2e: player_info + 0x2f: position + 0x30: bed + 0x31: unlock_recipes + 0x32: entity_destroy + 0x33: remove_entity_effect + 0x34: resource_pack_send + 0x35: respawn + 0x36: entity_head_rotation + 0x37: select_advancement_tab + 0x38: world_border + 0x39: camera + 0x3a: held_item_slot + 0x3b: scoreboard_display_objective + 0x3c: entity_metadata + 0x3d: attach_entity + 0x3e: entity_velocity + 0x3f: entity_equipment + 0x40: experience + 0x41: update_health + 0x42: scoreboard_objective + 0x43: set_passengers + 0x44: teams + 0x45: scoreboard_score + 0x46: spawn_position + 0x47: update_time + 0x48: title + 0x49: sound_effect + 0x4a: playerlist_header + 0x4b: collect + 0x4c: entity_teleport + 0x4d: advancements + 0x4e: entity_update_attributes + 0x4f: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: varint + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: i32 + if 1: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: flying + 0x0d: position + 0x0e: position_look + 0x0f: look + 0x10: vehicle_move + 0x11: steer_boat + 0x12: craft_recipe_request + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: advancement_tab + 0x1a: held_item_slot + 0x1b: set_creative_slot + 0x1c: update_sign + 0x1d: arm_animation + 0x1e: spectate + 0x1f: block_place + 0x20: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.12.1/protocol.json b/data/pc/1.12.1/protocol.json index 8eab78e2b..883c79645 100644 --- a/data/pc/1.12.1/protocol.json +++ b/data/pc/1.12.1/protocol.json @@ -129,7 +129,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -241,8 +242,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -256,7 +257,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -296,8 +298,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -311,7 +313,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -344,8 +347,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -359,7 +362,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -439,10 +443,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -458,7 +462,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -510,8 +515,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -525,7 +530,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -859,10 +865,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1538,9 +1560,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1612,15 +1635,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2164,18 +2207,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"varint" + "countType": "varint", + "type": "varint" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2183,8 +2226,8 @@ "0": [ "array", { - "countType":"varint", - "type":"varint" + "countType": "varint", + "type": "varint" } ] }, @@ -3050,86 +3093,86 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "entity", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "craft_recipe_response", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "select_advancement_tab", - "0x38": "world_border", - "0x39": "camera", - "0x3a": "held_item_slot", - "0x3b": "scoreboard_display_objective", - "0x3c": "entity_metadata", - "0x3d": "attach_entity", - "0x3e": "entity_velocity", - "0x3f": "entity_equipment", - "0x40": "experience", - "0x41": "update_health", - "0x42": "scoreboard_objective", - "0x43": "set_passengers", - "0x44": "teams", - "0x45": "scoreboard_score", - "0x46": "spawn_position", - "0x47": "update_time", - "0x48": "title", - "0x49": "sound_effect", - "0x4a": "playerlist_header", - "0x4b": "collect", - "0x4c": "entity_teleport", - "0x4d": "advancements", - "0x4e": "entity_update_attributes", - "0x4f": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "entity", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "craft_recipe_response", + "44": "abilities", + "45": "combat_event", + "46": "player_info", + "47": "position", + "48": "bed", + "49": "unlock_recipes", + "50": "entity_destroy", + "51": "remove_entity_effect", + "52": "resource_pack_send", + "53": "respawn", + "54": "entity_head_rotation", + "55": "select_advancement_tab", + "56": "world_border", + "57": "camera", + "58": "held_item_slot", + "59": "scoreboard_display_objective", + "60": "entity_metadata", + "61": "attach_entity", + "62": "entity_velocity", + "63": "entity_equipment", + "64": "experience", + "65": "update_health", + "66": "scoreboard_objective", + "67": "set_passengers", + "68": "teams", + "69": "scoreboard_score", + "70": "spawn_position", + "71": "update_time", + "72": "title", + "73": "sound_effect", + "74": "playerlist_header", + "75": "collect", + "76": "entity_teleport", + "77": "advancements", + "78": "entity_update_attributes", + "79": "entity_effect" } } ] @@ -3221,7 +3264,8 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "select_advancement_tab": "packet_select_advancement_tab" - } + }, + "default": "void" } ] } @@ -3670,13 +3714,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -3698,7 +3742,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -3828,11 +3873,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -3848,39 +3894,39 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "flying", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "craft_recipe_request", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "flying", + "13": "position", + "14": "position_look", + "15": "look", + "16": "vehicle_move", + "17": "steer_boat", + "18": "craft_recipe_request", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "advancement_tab", + "26": "held_item_slot", + "27": "set_creative_slot", + "28": "update_sign", + "29": "arm_animation", + "30": "spectate", + "31": "block_place", + "32": "use_item" } } ] @@ -3925,7 +3971,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -3934,4 +3981,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.12.2/proto.yml b/data/pc/1.12.2/proto.yml new file mode 100644 index 000000000..2f7d36b8b --- /dev/null +++ b/data/pc/1.12.2/proto.yml @@ -0,0 +1,1200 @@ +!version: 1.12.2 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: varint + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + recipes1: varint[]varint + recipes2: action ? + if 0: varint[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: entity + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: craft_recipe_response + 0x2c: abilities + 0x2d: combat_event + 0x2e: player_info + 0x2f: position + 0x30: bed + 0x31: unlock_recipes + 0x32: entity_destroy + 0x33: remove_entity_effect + 0x34: resource_pack_send + 0x35: respawn + 0x36: entity_head_rotation + 0x37: select_advancement_tab + 0x38: world_border + 0x39: camera + 0x3a: held_item_slot + 0x3b: scoreboard_display_objective + 0x3c: entity_metadata + 0x3d: attach_entity + 0x3e: entity_velocity + 0x3f: entity_equipment + 0x40: experience + 0x41: update_health + 0x42: scoreboard_objective + 0x43: set_passengers + 0x44: teams + 0x45: scoreboard_score + 0x46: spawn_position + 0x47: update_time + 0x48: title + 0x49: sound_effect + 0x4a: playerlist_header + 0x4b: collect + 0x4c: entity_teleport + 0x4d: advancements + 0x4e: entity_update_attributes + 0x4f: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: varint + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: i32 + if 1: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: flying + 0x0d: position + 0x0e: position_look + 0x0f: look + 0x10: vehicle_move + 0x11: steer_boat + 0x12: craft_recipe_request + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: advancement_tab + 0x1a: held_item_slot + 0x1b: set_creative_slot + 0x1c: update_sign + 0x1d: arm_animation + 0x1e: spectate + 0x1f: block_place + 0x20: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.12.2/protocol.json b/data/pc/1.12.2/protocol.json index 7a4dd7d98..eaa0d3e60 100644 --- a/data/pc/1.12.2/protocol.json +++ b/data/pc/1.12.2/protocol.json @@ -129,7 +129,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -241,8 +242,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -256,7 +257,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -296,8 +298,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -311,7 +313,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -344,8 +347,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -359,7 +362,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -439,10 +443,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -458,7 +462,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -510,8 +515,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -525,7 +530,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -859,10 +865,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1538,9 +1560,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1612,15 +1635,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2164,18 +2207,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"varint" + "countType": "varint", + "type": "varint" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2183,8 +2226,8 @@ "0": [ "array", { - "countType":"varint", - "type":"varint" + "countType": "varint", + "type": "varint" } ] }, @@ -3050,86 +3093,86 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "entity", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "craft_recipe_response", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "select_advancement_tab", - "0x38": "world_border", - "0x39": "camera", - "0x3a": "held_item_slot", - "0x3b": "scoreboard_display_objective", - "0x3c": "entity_metadata", - "0x3d": "attach_entity", - "0x3e": "entity_velocity", - "0x3f": "entity_equipment", - "0x40": "experience", - "0x41": "update_health", - "0x42": "scoreboard_objective", - "0x43": "set_passengers", - "0x44": "teams", - "0x45": "scoreboard_score", - "0x46": "spawn_position", - "0x47": "update_time", - "0x48": "title", - "0x49": "sound_effect", - "0x4a": "playerlist_header", - "0x4b": "collect", - "0x4c": "entity_teleport", - "0x4d": "advancements", - "0x4e": "entity_update_attributes", - "0x4f": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "entity", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "craft_recipe_response", + "44": "abilities", + "45": "combat_event", + "46": "player_info", + "47": "position", + "48": "bed", + "49": "unlock_recipes", + "50": "entity_destroy", + "51": "remove_entity_effect", + "52": "resource_pack_send", + "53": "respawn", + "54": "entity_head_rotation", + "55": "select_advancement_tab", + "56": "world_border", + "57": "camera", + "58": "held_item_slot", + "59": "scoreboard_display_objective", + "60": "entity_metadata", + "61": "attach_entity", + "62": "entity_velocity", + "63": "entity_equipment", + "64": "experience", + "65": "update_health", + "66": "scoreboard_objective", + "67": "set_passengers", + "68": "teams", + "69": "scoreboard_score", + "70": "spawn_position", + "71": "update_time", + "72": "title", + "73": "sound_effect", + "74": "playerlist_header", + "75": "collect", + "76": "entity_teleport", + "77": "advancements", + "78": "entity_update_attributes", + "79": "entity_effect" } } ] @@ -3221,7 +3264,8 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "select_advancement_tab": "packet_select_advancement_tab" - } + }, + "default": "void" } ] } @@ -3670,13 +3714,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -3698,7 +3742,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -3828,11 +3873,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -3848,39 +3894,39 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "flying", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "craft_recipe_request", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "flying", + "13": "position", + "14": "position_look", + "15": "look", + "16": "vehicle_move", + "17": "steer_boat", + "18": "craft_recipe_request", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "advancement_tab", + "26": "held_item_slot", + "27": "set_creative_slot", + "28": "update_sign", + "29": "arm_animation", + "30": "spectate", + "31": "block_place", + "32": "use_item" } } ] @@ -3925,7 +3971,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -3934,4 +3981,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.12/proto.yml b/data/pc/1.12/proto.yml new file mode 100644 index 000000000..f48805d6a --- /dev/null +++ b/data/pc/1.12/proto.yml @@ -0,0 +1,1202 @@ +!version: 1.12 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + recipes1: varint[]varint + recipes2: action ? + if 0: varint[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: entity + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: unlock_recipes + 0x31: entity_destroy + 0x32: remove_entity_effect + 0x33: resource_pack_send + 0x34: respawn + 0x35: entity_head_rotation + 0x36: select_advancement_tab + 0x37: world_border + 0x38: camera + 0x39: held_item_slot + 0x3a: scoreboard_display_objective + 0x3b: entity_metadata + 0x3c: attach_entity + 0x3d: entity_velocity + 0x3e: entity_equipment + 0x3f: experience + 0x40: update_health + 0x41: scoreboard_objective + 0x42: set_passengers + 0x43: teams + 0x44: scoreboard_score + 0x45: spawn_position + 0x46: update_time + 0x47: title + 0x48: sound_effect + 0x49: playerlist_header + 0x4a: collect + 0x4b: entity_teleport + 0x4c: advancements + 0x4d: entity_update_attributes + 0x4e: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_prepare_crafting_grid: + windowId: u8 + actionNumber: u16 + returnEntry: []u16 + item: slot + craftingSlot: u8 + playerSlot: u8 + prepareEntry: []u16 + item: slot + craftingSlot: u8 + playerSlot: u8 + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: i32 + if 1: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: prepare_crafting_grid + 0x02: tab_complete + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: use_entity + 0x0c: keep_alive + 0x0d: flying + 0x0e: position + 0x0f: position_look + 0x10: look + 0x11: vehicle_move + 0x12: steer_boat + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: advancement_tab + 0x1a: held_item_slot + 0x1b: set_creative_slot + 0x1c: update_sign + 0x1d: arm_animation + 0x1e: spectate + 0x1f: block_place + 0x20: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if prepare_crafting_grid: packet_prepare_crafting_grid + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.12/protocol.json b/data/pc/1.12/protocol.json index b3eddc70d..859ca0231 100644 --- a/data/pc/1.12/protocol.json +++ b/data/pc/1.12/protocol.json @@ -129,7 +129,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -241,8 +242,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -256,7 +257,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -296,8 +298,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -311,7 +313,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -344,8 +347,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -359,7 +362,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -439,10 +443,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -458,7 +462,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -510,8 +515,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -525,7 +530,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -859,10 +865,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1538,9 +1560,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1612,15 +1635,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2151,18 +2194,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"varint" + "countType": "varint", + "type": "varint" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2170,8 +2213,8 @@ "0": [ "array", { - "countType":"varint", - "type":"varint" + "countType": "varint", + "type": "varint" } ] }, @@ -3037,85 +3080,85 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "entity", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "unlock_recipes", - "0x31": "entity_destroy", - "0x32": "remove_entity_effect", - "0x33": "resource_pack_send", - "0x34": "respawn", - "0x35": "entity_head_rotation", - "0x36": "select_advancement_tab", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "advancements", - "0x4d": "entity_update_attributes", - "0x4e": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "entity", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "unlock_recipes", + "49": "entity_destroy", + "50": "remove_entity_effect", + "51": "resource_pack_send", + "52": "respawn", + "53": "entity_head_rotation", + "54": "select_advancement_tab", + "55": "world_border", + "56": "camera", + "57": "held_item_slot", + "58": "scoreboard_display_objective", + "59": "entity_metadata", + "60": "attach_entity", + "61": "entity_velocity", + "62": "entity_equipment", + "63": "experience", + "64": "update_health", + "65": "scoreboard_objective", + "66": "set_passengers", + "67": "teams", + "68": "scoreboard_score", + "69": "spawn_position", + "70": "update_time", + "71": "title", + "72": "sound_effect", + "73": "playerlist_header", + "74": "collect", + "75": "entity_teleport", + "76": "advancements", + "77": "entity_update_attributes", + "78": "entity_effect" } } ] @@ -3206,7 +3249,8 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "select_advancement_tab": "packet_select_advancement_tab" - } + }, + "default": "void" } ] } @@ -3241,7 +3285,7 @@ "type": [ "array", { - "countType":"u16", + "countType": "u16", "type": [ "container", [ @@ -3267,8 +3311,8 @@ "type": [ "array", { - "countType":"u16", - "type":[ + "countType": "u16", + "type": [ "container", [ { @@ -3703,13 +3747,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -3731,7 +3775,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -3861,11 +3906,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -3881,39 +3927,39 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "flying", - "0x0e": "position", - "0x0f": "position_look", - "0x10": "look", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" + "0": "teleport_confirm", + "1": "prepare_crafting_grid", + "2": "tab_complete", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "use_entity", + "12": "keep_alive", + "13": "flying", + "14": "position", + "15": "position_look", + "16": "look", + "17": "vehicle_move", + "18": "steer_boat", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "advancement_tab", + "26": "held_item_slot", + "27": "set_creative_slot", + "28": "update_sign", + "29": "arm_animation", + "30": "spectate", + "31": "block_place", + "32": "use_item" } } ] @@ -3958,7 +4004,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -3967,4 +4014,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.13.1/proto.yml b/data/pc/1.13.1/proto.yml new file mode 100644 index 000000000..c1954ea7c --- /dev/null +++ b/data/pc/1.13.1/proto.yml @@ -0,0 +1,1632 @@ +!version: 1.13.1 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + itemId: i16 + _: itemId ? + if -1: void + default: + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 11: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 20: + blockState: varint + if 27: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + recipeId: string + type: string + data: type ? + if crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if crafting_special_armordye: void + if crafting_special_bookcloning: void + if crafting_special_mapcloning: void + if crafting_special_mapextending: void + if crafting_special_firework_rocket: void + if crafting_special_firework_star: void + if crafting_special_firework_star_fade: void + if crafting_special_repairitem: void + if crafting_special_tippedarrow: void + if crafting_special_bannerduplicate: void + if crafting_special_banneraddpattern: void + if crafting_special_shielddecoration: void + if crafting_special_shulkerboxcoloring: void + if smelting: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: nbt_query_response + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: login + 0x26: map + 0x27: entity + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: vehicle_move + 0x2c: open_sign_entity + 0x2d: craft_recipe_response + 0x2e: abilities + 0x2f: combat_event + 0x30: player_info + 0x31: face_player + 0x32: position + 0x33: bed + 0x34: unlock_recipes + 0x35: entity_destroy + 0x36: remove_entity_effect + 0x37: resource_pack_send + 0x38: respawn + 0x39: entity_head_rotation + 0x3a: select_advancement_tab + 0x3b: world_border + 0x3c: camera + 0x3d: held_item_slot + 0x3e: scoreboard_display_objective + 0x3f: entity_metadata + 0x40: attach_entity + 0x41: entity_velocity + 0x42: entity_equipment + 0x43: experience + 0x44: update_health + 0x45: scoreboard_objective + 0x46: set_passengers + 0x47: teams + 0x48: scoreboard_score + 0x49: spawn_position + 0x4a: update_time + 0x4b: title + 0x4c: stop_sound + 0x4d: sound_effect + 0x4e: playerlist_header + 0x4f: collect + 0x50: entity_teleport + 0x51: advancements + 0x52: entity_update_attributes + 0x53: entity_effect + 0x54: declare_recipes + 0x55: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: tab_complete + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: keep_alive + 0x0f: flying + 0x10: position + 0x11: position_look + 0x12: look + 0x13: vehicle_move + 0x14: steer_boat + 0x15: pick_item + 0x16: craft_recipe_request + 0x17: abilities + 0x18: block_dig + 0x19: entity_action + 0x1a: steer_vehicle + 0x1b: crafting_book_data + 0x1c: name_item + 0x1d: resource_pack_receive + 0x1e: advancement_tab + 0x1f: select_trade + 0x20: set_beacon_effect + 0x21: held_item_slot + 0x22: update_command_block + 0x23: update_command_block_minecart + 0x24: set_creative_slot + 0x25: update_structure_block + 0x26: update_sign + 0x27: arm_animation + 0x28: spectate + 0x29: block_place + 0x2a: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13.1/protocol.json b/data/pc/1.13.1/protocol.json index 2c401e4b6..8681b1a5b 100644 --- a/data/pc/1.13.1/protocol.json +++ b/data/pc/1.13.1/protocol.json @@ -83,58 +83,62 @@ ] ], "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", [ - { - "name": "item", - "type": "slot" - } - ] + "switch", + { + "compareTo": "$compareTo", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } ] - }, - "default": "void" - } - ], + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + }, + "default": "void" + } + ], "ingredient": [ "array", { @@ -208,7 +212,8 @@ "13": "varint", "14": "nbt", "15": "particle" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -667,7 +672,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -686,7 +692,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -765,8 +772,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -780,7 +787,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -820,8 +828,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -835,7 +843,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -868,8 +877,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -883,7 +892,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -980,11 +990,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1001,7 +1011,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1044,21 +1055,21 @@ ] ], "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] - } - ] - ], + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] + ], "packet": [ "container", [ @@ -1069,9 +1080,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1086,7 +1097,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1424,10 +1436,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1738,19 +1766,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -1776,68 +1807,68 @@ ] ], "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" - } - ] - } - ] + "container", + [ + { + "name": "feet_eyes", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", + "type": "bool" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "fields": { + "true": "varint" + }, + "default": "void" + } + ] + }, + { + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "fields": { + "true": "string" + }, + "default": "void" + } + ] + } + ] ], "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" - } - ] + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" + } + ] ], "packet_chat": [ "container", @@ -2210,9 +2241,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2285,10 +2317,10 @@ { "name": "data", "type": [ - "particleData", - { - "compareTo": "particleId" - } + "particleData", + { + "compareTo": "particleId" + } ] } ] @@ -2368,7 +2400,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2848,18 +2883,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2867,8 +2902,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3543,25 +3578,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3760,126 +3801,163 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" - } - ]], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" + "compareTo": "type", + "fields": { + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_bookcloning": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_repairitem": "void", + "crafting_special_tippedarrow": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] }, - { - "name": "cookTime", - "type": "varint" - } - ]] + "default": "void" + } + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -3907,92 +3985,92 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "nbt_query_response", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "login", + "38": "map", + "39": "entity", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "vehicle_move", + "44": "open_sign_entity", + "45": "craft_recipe_response", + "46": "abilities", + "47": "combat_event", + "48": "player_info", + "49": "face_player", + "50": "position", + "51": "bed", + "52": "unlock_recipes", + "53": "entity_destroy", + "54": "remove_entity_effect", + "55": "resource_pack_send", + "56": "respawn", + "57": "entity_head_rotation", + "58": "select_advancement_tab", + "59": "world_border", + "60": "camera", + "61": "held_item_slot", + "62": "scoreboard_display_objective", + "63": "entity_metadata", + "64": "attach_entity", + "65": "entity_velocity", + "66": "entity_equipment", + "67": "experience", + "68": "update_health", + "69": "scoreboard_objective", + "70": "set_passengers", + "71": "teams", + "72": "scoreboard_score", + "73": "spawn_position", + "74": "update_time", + "75": "title", + "76": "stop_sound", + "77": "sound_effect", + "78": "playerlist_header", + "79": "collect", + "80": "entity_teleport", + "81": "advancements", + "82": "entity_update_attributes", + "83": "entity_effect", + "84": "declare_recipes", + "85": "tags" } } ] @@ -4090,7 +4168,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4110,195 +4189,194 @@ ] ], "packet_query_block_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - } - ] + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] ], "packet_edit_book": [ - "container", - [ - { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - }, - { - "name": "hand", - "type": "varint" - } - ] + "container", + [ + { + "name": "new_book", + "type": "slot" + }, + { + "name": "signing", + "type": "bool" + }, + { + "name": "hand", + "type": "varint" + } + ] ], "packet_query_entity_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - } - ] + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + } + ] ], "packet_pick_item": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] ], "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] + "container", + [ + { + "name": "name", + "type": "string" + } + ] ], "packet_select_trade": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] ], "packet_set_beacon_effect": [ - "container", - [ - { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" - } - ] + "container", + [ + { + "name": "primary_effect", + "type": "varint" + }, + { + "name": "secondary_effect", + "type": "varint" + } + ] ], "packet_update_command_block": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" - } - ] + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] ], "packet_update_command_block_minecart": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "command", - "type": "string" - } - , - { - "name": "track_output", - "type": "bool" - } - ] + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" + } + ] ], "packet_update_structure_block": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" - } - ] + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varlong" + }, + { + "name": "flags", + "type": "u8" + } + ] ], "packet_tab_complete": [ "container", @@ -4723,13 +4801,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -4759,7 +4837,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4889,11 +4968,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -4909,49 +4989,49 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "tab_complete", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "keep_alive", + "15": "flying", + "16": "position", + "17": "position_look", + "18": "look", + "19": "vehicle_move", + "20": "steer_boat", + "21": "pick_item", + "22": "craft_recipe_request", + "23": "abilities", + "24": "block_dig", + "25": "entity_action", + "26": "steer_vehicle", + "27": "crafting_book_data", + "28": "name_item", + "29": "resource_pack_receive", + "30": "advancement_tab", + "31": "select_trade", + "32": "set_beacon_effect", + "33": "held_item_slot", + "34": "update_command_block", + "35": "update_command_block_minecart", + "36": "set_creative_slot", + "37": "update_structure_block", + "38": "update_sign", + "39": "arm_animation", + "40": "spectate", + "41": "block_place", + "42": "use_item" } } ] @@ -5006,7 +5086,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5015,4 +5096,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.13.2-pre1/proto.yml b/data/pc/1.13.2-pre1/proto.yml new file mode 100644 index 000000000..588322bbf --- /dev/null +++ b/data/pc/1.13.2-pre1/proto.yml @@ -0,0 +1,1633 @@ +!version: 1.13.2-pre1 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 11: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 20: + blockState: varint + if 27: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + recipeId: string + type: string + data: type ? + if crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if crafting_special_armordye: void + if crafting_special_bookcloning: void + if crafting_special_mapcloning: void + if crafting_special_mapextending: void + if crafting_special_firework_rocket: void + if crafting_special_firework_star: void + if crafting_special_firework_star_fade: void + if crafting_special_repairitem: void + if crafting_special_tippedarrow: void + if crafting_special_bannerduplicate: void + if crafting_special_banneraddpattern: void + if crafting_special_shielddecoration: void + if crafting_special_shulkerboxcoloring: void + if smelting: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: nbt_query_response + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: login + 0x26: map + 0x27: entity + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: vehicle_move + 0x2c: open_sign_entity + 0x2d: craft_recipe_response + 0x2e: abilities + 0x2f: combat_event + 0x30: player_info + 0x31: face_player + 0x32: position + 0x33: bed + 0x34: unlock_recipes + 0x35: entity_destroy + 0x36: remove_entity_effect + 0x37: resource_pack_send + 0x38: respawn + 0x39: entity_head_rotation + 0x3a: select_advancement_tab + 0x3b: world_border + 0x3c: camera + 0x3d: held_item_slot + 0x3e: scoreboard_display_objective + 0x3f: entity_metadata + 0x40: attach_entity + 0x41: entity_velocity + 0x42: entity_equipment + 0x43: experience + 0x44: update_health + 0x45: scoreboard_objective + 0x46: set_passengers + 0x47: teams + 0x48: scoreboard_score + 0x49: spawn_position + 0x4a: update_time + 0x4b: title + 0x4c: stop_sound + 0x4d: sound_effect + 0x4e: playerlist_header + 0x4f: collect + 0x50: entity_teleport + 0x51: advancements + 0x52: entity_update_attributes + 0x53: entity_effect + 0x54: declare_recipes + 0x55: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: tab_complete + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: keep_alive + 0x0f: flying + 0x10: position + 0x11: position_look + 0x12: look + 0x13: vehicle_move + 0x14: steer_boat + 0x15: pick_item + 0x16: craft_recipe_request + 0x17: abilities + 0x18: block_dig + 0x19: entity_action + 0x1a: steer_vehicle + 0x1b: crafting_book_data + 0x1c: name_item + 0x1d: resource_pack_receive + 0x1e: advancement_tab + 0x1f: select_trade + 0x20: set_beacon_effect + 0x21: held_item_slot + 0x22: update_command_block + 0x23: update_command_block_minecart + 0x24: set_creative_slot + 0x25: update_structure_block + 0x26: update_sign + 0x27: arm_animation + 0x28: spectate + 0x29: block_place + 0x2a: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13.2-pre1/protocol.json b/data/pc/1.13.2-pre1/protocol.json index a690d2bd8..94b84b0aa 100644 --- a/data/pc/1.13.2-pre1/protocol.json +++ b/data/pc/1.13.2-pre1/protocol.json @@ -48,7 +48,6 @@ "true": [ "container", [ - { "name": "itemId", "type": "varint" @@ -63,7 +62,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +93,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +102,8 @@ ] ], "11": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +123,17 @@ ] ], "20": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "27": [ - "container", [ + "27": [ + "container", + [ { "name": "item", "type": "slot" @@ -213,7 +217,8 @@ "13": "varint", "14": "nbt", "15": "particle" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -672,7 +677,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -691,7 +697,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -770,8 +777,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -785,7 +792,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -825,8 +833,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -840,7 +848,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -873,8 +882,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -888,7 +897,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -985,11 +995,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1006,7 +1016,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1074,9 +1085,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1091,7 +1102,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1429,10 +1441,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1743,19 +1771,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2215,9 +2246,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2373,7 +2405,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2853,18 +2888,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2872,8 +2907,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3548,25 +3583,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3765,126 +3806,163 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "cookTime", - "type": "varint" + "compareTo": "type", + "fields": { + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_bookcloning": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_repairitem": "void", + "crafting_special_tippedarrow": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -3912,92 +3990,92 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "nbt_query_response", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "login", + "38": "map", + "39": "entity", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "vehicle_move", + "44": "open_sign_entity", + "45": "craft_recipe_response", + "46": "abilities", + "47": "combat_event", + "48": "player_info", + "49": "face_player", + "50": "position", + "51": "bed", + "52": "unlock_recipes", + "53": "entity_destroy", + "54": "remove_entity_effect", + "55": "resource_pack_send", + "56": "respawn", + "57": "entity_head_rotation", + "58": "select_advancement_tab", + "59": "world_border", + "60": "camera", + "61": "held_item_slot", + "62": "scoreboard_display_objective", + "63": "entity_metadata", + "64": "attach_entity", + "65": "entity_velocity", + "66": "entity_equipment", + "67": "experience", + "68": "update_health", + "69": "scoreboard_objective", + "70": "set_passengers", + "71": "teams", + "72": "scoreboard_score", + "73": "spawn_position", + "74": "update_time", + "75": "title", + "76": "stop_sound", + "77": "sound_effect", + "78": "playerlist_header", + "79": "collect", + "80": "entity_teleport", + "81": "advancements", + "82": "entity_update_attributes", + "83": "entity_effect", + "84": "declare_recipes", + "85": "tags" } } ] @@ -4095,7 +4173,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4228,8 +4307,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4728,13 +4806,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -4764,7 +4842,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4894,11 +4973,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -4914,49 +4994,49 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "tab_complete", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "keep_alive", + "15": "flying", + "16": "position", + "17": "position_look", + "18": "look", + "19": "vehicle_move", + "20": "steer_boat", + "21": "pick_item", + "22": "craft_recipe_request", + "23": "abilities", + "24": "block_dig", + "25": "entity_action", + "26": "steer_vehicle", + "27": "crafting_book_data", + "28": "name_item", + "29": "resource_pack_receive", + "30": "advancement_tab", + "31": "select_trade", + "32": "set_beacon_effect", + "33": "held_item_slot", + "34": "update_command_block", + "35": "update_command_block_minecart", + "36": "set_creative_slot", + "37": "update_structure_block", + "38": "update_sign", + "39": "arm_animation", + "40": "spectate", + "41": "block_place", + "42": "use_item" } } ] @@ -5011,7 +5091,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5020,4 +5101,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.13.2-pre2/proto.yml b/data/pc/1.13.2-pre2/proto.yml new file mode 100644 index 000000000..c5d06e821 --- /dev/null +++ b/data/pc/1.13.2-pre2/proto.yml @@ -0,0 +1,1633 @@ +!version: 1.13.2-pre2 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 11: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 20: + blockState: varint + if 27: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + recipeId: string + type: string + data: type ? + if crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if crafting_special_armordye: void + if crafting_special_bookcloning: void + if crafting_special_mapcloning: void + if crafting_special_mapextending: void + if crafting_special_firework_rocket: void + if crafting_special_firework_star: void + if crafting_special_firework_star_fade: void + if crafting_special_repairitem: void + if crafting_special_tippedarrow: void + if crafting_special_bannerduplicate: void + if crafting_special_banneraddpattern: void + if crafting_special_shielddecoration: void + if crafting_special_shulkerboxcoloring: void + if smelting: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: nbt_query_response + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: login + 0x26: map + 0x27: entity + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: vehicle_move + 0x2c: open_sign_entity + 0x2d: craft_recipe_response + 0x2e: abilities + 0x2f: combat_event + 0x30: player_info + 0x31: face_player + 0x32: position + 0x33: bed + 0x34: unlock_recipes + 0x35: entity_destroy + 0x36: remove_entity_effect + 0x37: resource_pack_send + 0x38: respawn + 0x39: entity_head_rotation + 0x3a: select_advancement_tab + 0x3b: world_border + 0x3c: camera + 0x3d: held_item_slot + 0x3e: scoreboard_display_objective + 0x3f: entity_metadata + 0x40: attach_entity + 0x41: entity_velocity + 0x42: entity_equipment + 0x43: experience + 0x44: update_health + 0x45: scoreboard_objective + 0x46: set_passengers + 0x47: teams + 0x48: scoreboard_score + 0x49: spawn_position + 0x4a: update_time + 0x4b: title + 0x4c: stop_sound + 0x4d: sound_effect + 0x4e: playerlist_header + 0x4f: collect + 0x50: entity_teleport + 0x51: advancements + 0x52: entity_update_attributes + 0x53: entity_effect + 0x54: declare_recipes + 0x55: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: tab_complete + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: keep_alive + 0x0f: flying + 0x10: position + 0x11: position_look + 0x12: look + 0x13: vehicle_move + 0x14: steer_boat + 0x15: pick_item + 0x16: craft_recipe_request + 0x17: abilities + 0x18: block_dig + 0x19: entity_action + 0x1a: steer_vehicle + 0x1b: crafting_book_data + 0x1c: name_item + 0x1d: resource_pack_receive + 0x1e: advancement_tab + 0x1f: select_trade + 0x20: set_beacon_effect + 0x21: held_item_slot + 0x22: update_command_block + 0x23: update_command_block_minecart + 0x24: set_creative_slot + 0x25: update_structure_block + 0x26: update_sign + 0x27: arm_animation + 0x28: spectate + 0x29: block_place + 0x2a: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13.2-pre2/protocol.json b/data/pc/1.13.2-pre2/protocol.json index a690d2bd8..94b84b0aa 100644 --- a/data/pc/1.13.2-pre2/protocol.json +++ b/data/pc/1.13.2-pre2/protocol.json @@ -48,7 +48,6 @@ "true": [ "container", [ - { "name": "itemId", "type": "varint" @@ -63,7 +62,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +93,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +102,8 @@ ] ], "11": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +123,17 @@ ] ], "20": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "27": [ - "container", [ + "27": [ + "container", + [ { "name": "item", "type": "slot" @@ -213,7 +217,8 @@ "13": "varint", "14": "nbt", "15": "particle" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -672,7 +677,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -691,7 +697,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -770,8 +777,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -785,7 +792,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -825,8 +833,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -840,7 +848,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -873,8 +882,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -888,7 +897,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -985,11 +995,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1006,7 +1016,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1074,9 +1085,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1091,7 +1102,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1429,10 +1441,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1743,19 +1771,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2215,9 +2246,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2373,7 +2405,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2853,18 +2888,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2872,8 +2907,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3548,25 +3583,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3765,126 +3806,163 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "cookTime", - "type": "varint" + "compareTo": "type", + "fields": { + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_bookcloning": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_repairitem": "void", + "crafting_special_tippedarrow": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -3912,92 +3990,92 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "nbt_query_response", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "login", + "38": "map", + "39": "entity", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "vehicle_move", + "44": "open_sign_entity", + "45": "craft_recipe_response", + "46": "abilities", + "47": "combat_event", + "48": "player_info", + "49": "face_player", + "50": "position", + "51": "bed", + "52": "unlock_recipes", + "53": "entity_destroy", + "54": "remove_entity_effect", + "55": "resource_pack_send", + "56": "respawn", + "57": "entity_head_rotation", + "58": "select_advancement_tab", + "59": "world_border", + "60": "camera", + "61": "held_item_slot", + "62": "scoreboard_display_objective", + "63": "entity_metadata", + "64": "attach_entity", + "65": "entity_velocity", + "66": "entity_equipment", + "67": "experience", + "68": "update_health", + "69": "scoreboard_objective", + "70": "set_passengers", + "71": "teams", + "72": "scoreboard_score", + "73": "spawn_position", + "74": "update_time", + "75": "title", + "76": "stop_sound", + "77": "sound_effect", + "78": "playerlist_header", + "79": "collect", + "80": "entity_teleport", + "81": "advancements", + "82": "entity_update_attributes", + "83": "entity_effect", + "84": "declare_recipes", + "85": "tags" } } ] @@ -4095,7 +4173,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4228,8 +4307,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4728,13 +4806,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -4764,7 +4842,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4894,11 +4973,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -4914,49 +4994,49 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "tab_complete", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "keep_alive", + "15": "flying", + "16": "position", + "17": "position_look", + "18": "look", + "19": "vehicle_move", + "20": "steer_boat", + "21": "pick_item", + "22": "craft_recipe_request", + "23": "abilities", + "24": "block_dig", + "25": "entity_action", + "26": "steer_vehicle", + "27": "crafting_book_data", + "28": "name_item", + "29": "resource_pack_receive", + "30": "advancement_tab", + "31": "select_trade", + "32": "set_beacon_effect", + "33": "held_item_slot", + "34": "update_command_block", + "35": "update_command_block_minecart", + "36": "set_creative_slot", + "37": "update_structure_block", + "38": "update_sign", + "39": "arm_animation", + "40": "spectate", + "41": "block_place", + "42": "use_item" } } ] @@ -5011,7 +5091,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5020,4 +5101,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.13.2/proto.yml b/data/pc/1.13.2/proto.yml new file mode 100644 index 000000000..36920058e --- /dev/null +++ b/data/pc/1.13.2/proto.yml @@ -0,0 +1,1633 @@ +!version: 1.13.2 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 11: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 20: + blockState: varint + if 27: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + recipeId: string + type: string + data: type ? + if crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if crafting_special_armordye: void + if crafting_special_bookcloning: void + if crafting_special_mapcloning: void + if crafting_special_mapextending: void + if crafting_special_firework_rocket: void + if crafting_special_firework_star: void + if crafting_special_firework_star_fade: void + if crafting_special_repairitem: void + if crafting_special_tippedarrow: void + if crafting_special_bannerduplicate: void + if crafting_special_banneraddpattern: void + if crafting_special_shielddecoration: void + if crafting_special_shulkerboxcoloring: void + if smelting: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: nbt_query_response + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: login + 0x26: map + 0x27: entity + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: vehicle_move + 0x2c: open_sign_entity + 0x2d: craft_recipe_response + 0x2e: abilities + 0x2f: combat_event + 0x30: player_info + 0x31: face_player + 0x32: position + 0x33: bed + 0x34: unlock_recipes + 0x35: entity_destroy + 0x36: remove_entity_effect + 0x37: resource_pack_send + 0x38: respawn + 0x39: entity_head_rotation + 0x3a: select_advancement_tab + 0x3b: world_border + 0x3c: camera + 0x3d: held_item_slot + 0x3e: scoreboard_display_objective + 0x3f: entity_metadata + 0x40: attach_entity + 0x41: entity_velocity + 0x42: entity_equipment + 0x43: experience + 0x44: update_health + 0x45: scoreboard_objective + 0x46: set_passengers + 0x47: teams + 0x48: scoreboard_score + 0x49: spawn_position + 0x4a: update_time + 0x4b: title + 0x4c: stop_sound + 0x4d: sound_effect + 0x4e: playerlist_header + 0x4f: collect + 0x50: entity_teleport + 0x51: advancements + 0x52: entity_update_attributes + 0x53: entity_effect + 0x54: declare_recipes + 0x55: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: tab_complete + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: keep_alive + 0x0f: flying + 0x10: position + 0x11: position_look + 0x12: look + 0x13: vehicle_move + 0x14: steer_boat + 0x15: pick_item + 0x16: craft_recipe_request + 0x17: abilities + 0x18: block_dig + 0x19: entity_action + 0x1a: steer_vehicle + 0x1b: crafting_book_data + 0x1c: name_item + 0x1d: resource_pack_receive + 0x1e: advancement_tab + 0x1f: select_trade + 0x20: set_beacon_effect + 0x21: held_item_slot + 0x22: update_command_block + 0x23: update_command_block_minecart + 0x24: set_creative_slot + 0x25: update_structure_block + 0x26: update_sign + 0x27: arm_animation + 0x28: spectate + 0x29: block_place + 0x2a: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13.2/protocol.json b/data/pc/1.13.2/protocol.json index fbef4c93c..508011c78 100644 --- a/data/pc/1.13.2/protocol.json +++ b/data/pc/1.13.2/protocol.json @@ -48,7 +48,6 @@ "true": [ "container", [ - { "name": "itemId", "type": "varint" @@ -63,7 +62,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +93,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +102,8 @@ ] ], "11": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +123,17 @@ ] ], "20": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "27": [ - "container", [ + "27": [ + "container", + [ { "name": "item", "type": "slot" @@ -213,7 +217,8 @@ "13": "varint", "14": "nbt", "15": "particle" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -672,7 +677,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -691,7 +697,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -770,8 +777,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -785,7 +792,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -825,8 +833,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -840,7 +848,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -873,8 +882,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -888,7 +897,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -985,11 +995,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1006,7 +1016,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1074,9 +1085,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1091,7 +1102,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1429,10 +1441,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1743,19 +1771,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2215,9 +2246,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2373,7 +2405,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2853,18 +2888,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2872,8 +2907,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3548,25 +3583,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3765,126 +3806,163 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "cookTime", - "type": "varint" + "compareTo": "type", + "fields": { + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_bookcloning": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_repairitem": "void", + "crafting_special_tippedarrow": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -3912,92 +3990,92 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "nbt_query_response", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "login", + "38": "map", + "39": "entity", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "vehicle_move", + "44": "open_sign_entity", + "45": "craft_recipe_response", + "46": "abilities", + "47": "combat_event", + "48": "player_info", + "49": "face_player", + "50": "position", + "51": "bed", + "52": "unlock_recipes", + "53": "entity_destroy", + "54": "remove_entity_effect", + "55": "resource_pack_send", + "56": "respawn", + "57": "entity_head_rotation", + "58": "select_advancement_tab", + "59": "world_border", + "60": "camera", + "61": "held_item_slot", + "62": "scoreboard_display_objective", + "63": "entity_metadata", + "64": "attach_entity", + "65": "entity_velocity", + "66": "entity_equipment", + "67": "experience", + "68": "update_health", + "69": "scoreboard_objective", + "70": "set_passengers", + "71": "teams", + "72": "scoreboard_score", + "73": "spawn_position", + "74": "update_time", + "75": "title", + "76": "stop_sound", + "77": "sound_effect", + "78": "playerlist_header", + "79": "collect", + "80": "entity_teleport", + "81": "advancements", + "82": "entity_update_attributes", + "83": "entity_effect", + "84": "declare_recipes", + "85": "tags" } } ] @@ -4095,7 +4173,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4228,8 +4307,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4728,13 +4806,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -4764,7 +4842,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4894,11 +4973,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -4914,49 +4994,49 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "tab_complete", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "keep_alive", + "15": "flying", + "16": "position", + "17": "position_look", + "18": "look", + "19": "vehicle_move", + "20": "steer_boat", + "21": "pick_item", + "22": "craft_recipe_request", + "23": "abilities", + "24": "block_dig", + "25": "entity_action", + "26": "steer_vehicle", + "27": "crafting_book_data", + "28": "name_item", + "29": "resource_pack_receive", + "30": "advancement_tab", + "31": "select_trade", + "32": "set_beacon_effect", + "33": "held_item_slot", + "34": "update_command_block", + "35": "update_command_block_minecart", + "36": "set_creative_slot", + "37": "update_structure_block", + "38": "update_sign", + "39": "arm_animation", + "40": "spectate", + "41": "block_place", + "42": "use_item" } } ] @@ -5011,7 +5091,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5020,4 +5101,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.13/proto.yml b/data/pc/1.13/proto.yml new file mode 100644 index 000000000..1441ae7a1 --- /dev/null +++ b/data/pc/1.13/proto.yml @@ -0,0 +1,1631 @@ +!version: 1.13 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + itemId: i16 + _: itemId ? + if -1: void + default: + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 11: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 20: + blockState: varint + if 27: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + recipeId: string + type: string + data: type ? + if crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if crafting_special_armordye: void + if crafting_special_bookcloning: void + if crafting_special_mapcloning: void + if crafting_special_mapextending: void + if crafting_special_firework_rocket: void + if crafting_special_firework_star: void + if crafting_special_firework_star_fade: void + if crafting_special_repairitem: void + if crafting_special_tippedarrow: void + if crafting_special_bannerduplicate: void + if crafting_special_banneraddpattern: void + if crafting_special_shielddecoration: void + if crafting_special_shulkerboxcoloring: void + if smelting: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: nbt_query_response + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: login + 0x26: map + 0x27: entity + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: vehicle_move + 0x2c: open_sign_entity + 0x2d: craft_recipe_response + 0x2e: abilities + 0x2f: combat_event + 0x30: player_info + 0x31: face_player + 0x32: position + 0x33: bed + 0x34: unlock_recipes + 0x35: entity_destroy + 0x36: remove_entity_effect + 0x37: resource_pack_send + 0x38: respawn + 0x39: entity_head_rotation + 0x3a: select_advancement_tab + 0x3b: world_border + 0x3c: camera + 0x3d: held_item_slot + 0x3e: scoreboard_display_objective + 0x3f: entity_metadata + 0x40: attach_entity + 0x41: entity_velocity + 0x42: entity_equipment + 0x43: experience + 0x44: update_health + 0x45: scoreboard_objective + 0x46: set_passengers + 0x47: teams + 0x48: scoreboard_score + 0x49: spawn_position + 0x4a: update_time + 0x4b: title + 0x4c: stop_sound + 0x4d: sound_effect + 0x4e: playerlist_header + 0x4f: collect + 0x50: entity_teleport + 0x51: advancements + 0x52: entity_update_attributes + 0x53: entity_effect + 0x54: declare_recipes + 0x55: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_edit_book: + new_book: slot + signing: bool + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: tab_complete + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: keep_alive + 0x0f: flying + 0x10: position + 0x11: position_look + 0x12: look + 0x13: vehicle_move + 0x14: steer_boat + 0x15: pick_item + 0x16: craft_recipe_request + 0x17: abilities + 0x18: block_dig + 0x19: entity_action + 0x1a: steer_vehicle + 0x1b: crafting_book_data + 0x1c: name_item + 0x1d: resource_pack_receive + 0x1e: advancement_tab + 0x1f: select_trade + 0x20: set_beacon_effect + 0x21: held_item_slot + 0x22: update_command_block + 0x23: update_command_block_minecart + 0x24: set_creative_slot + 0x25: update_structure_block + 0x26: update_sign + 0x27: arm_animation + 0x28: spectate + 0x29: block_place + 0x2a: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.13/protocol.json b/data/pc/1.13/protocol.json index 79a3a9e24..62ed9ae4a 100644 --- a/data/pc/1.13/protocol.json +++ b/data/pc/1.13/protocol.json @@ -83,58 +83,62 @@ ] ], "particleData": [ - "switch", - { - "compareTo": "$compareTo", - "fields": { - "3": [ - "container", [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "11": [ - "container", [ - { - "name": "red", - "type": "f32" - }, - { - "name": "green", - "type": "f32" - }, - { - "name": "blue", - "type": "f32" - }, - { - "name": "scale", - "type": "f32" - } - ] - ], - "20": [ - "container", [ - { - "name": "blockState", - "type": "varint" - } - ] - ], - "27": [ - "container", [ - { - "name": "item", - "type": "slot" - } - ] + "switch", + { + "compareTo": "$compareTo", + "fields": { + "3": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } ] - }, - "default": "void" - } - ], + ], + "11": [ + "container", + [ + { + "name": "red", + "type": "f32" + }, + { + "name": "green", + "type": "f32" + }, + { + "name": "blue", + "type": "f32" + }, + { + "name": "scale", + "type": "f32" + } + ] + ], + "20": [ + "container", + [ + { + "name": "blockState", + "type": "varint" + } + ] + ], + "27": [ + "container", + [ + { + "name": "item", + "type": "slot" + } + ] + ] + }, + "default": "void" + } + ], "ingredient": [ "array", { @@ -208,7 +212,8 @@ "13": "varint", "14": "nbt", "15": "particle" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -667,7 +672,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -686,7 +692,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -765,8 +772,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -780,7 +787,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -820,8 +828,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -835,7 +843,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -868,8 +877,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -883,7 +892,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -980,11 +990,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1001,7 +1011,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1044,21 +1055,21 @@ ] ], "packet_login_plugin_response": [ - "container", - [ - { - "name": "messageId", - "type": "varint" - }, - { - "name": "data", - "type": [ - "option", - "restBuffer" - ] - } - ] - ], + "container", + [ + { + "name": "messageId", + "type": "varint" + }, + { + "name": "data", + "type": [ + "option", + "restBuffer" + ] + } + ] + ], "packet": [ "container", [ @@ -1069,9 +1080,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1086,7 +1097,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1424,10 +1436,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1738,19 +1766,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -1776,68 +1807,68 @@ ] ], "packet_face_player": [ - "container", - [ - { - "name": "feet_eyes", - "type": "varint" - }, - { - "name": "x", - "type": "f64" - }, - { - "name": "y", - "type": "f64" - }, - { - "name": "z", - "type": "f64" - }, - { - "name": "isEntity", - "type": "bool" - }, - { - "name": "entityId", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "varint" - }, - "default": "void" - } - ] - }, - { - "name": "entity_feet_eyes", - "type": [ - "switch", - { - "compareTo": "isEntity", - "fields": { - "true": "string" - }, - "default": "void" - } - ] - } - ] + "container", + [ + { + "name": "feet_eyes", + "type": "varint" + }, + { + "name": "x", + "type": "f64" + }, + { + "name": "y", + "type": "f64" + }, + { + "name": "z", + "type": "f64" + }, + { + "name": "isEntity", + "type": "bool" + }, + { + "name": "entityId", + "type": [ + "switch", + { + "compareTo": "isEntity", + "fields": { + "true": "varint" + }, + "default": "void" + } + ] + }, + { + "name": "entity_feet_eyes", + "type": [ + "switch", + { + "compareTo": "isEntity", + "fields": { + "true": "string" + }, + "default": "void" + } + ] + } + ] ], "packet_nbt_query_response": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "nbt", - "type": "optionalNbt" - } - ] + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "nbt", + "type": "optionalNbt" + } + ] ], "packet_chat": [ "container", @@ -2210,9 +2241,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2285,10 +2317,10 @@ { "name": "data", "type": [ - "particleData", - { - "compareTo": "particleId" - } + "particleData", + { + "compareTo": "particleId" + } ] } ] @@ -2368,7 +2400,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2848,18 +2883,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2867,8 +2902,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3543,25 +3578,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3760,126 +3801,163 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" - } - ]], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void", - "smelting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" + "compareTo": "type", + "fields": { + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_bookcloning": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_repairitem": "void", + "crafting_special_tippedarrow": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void", + "smelting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ] }, - { - "name": "cookTime", - "type": "varint" - } - ]] + "default": "void" + } + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -3907,92 +3985,92 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "nbt_query_response", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "login", - "0x26": "map", - "0x27": "entity", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_sign_entity", - "0x2d": "craft_recipe_response", - "0x2e": "abilities", - "0x2f": "combat_event", - "0x30": "player_info", - "0x31": "face_player", - "0x32": "position", - "0x33": "bed", - "0x34": "unlock_recipes", - "0x35": "entity_destroy", - "0x36": "remove_entity_effect", - "0x37": "resource_pack_send", - "0x38": "respawn", - "0x39": "entity_head_rotation", - "0x3a": "select_advancement_tab", - "0x3b": "world_border", - "0x3c": "camera", - "0x3d": "held_item_slot", - "0x3e": "scoreboard_display_objective", - "0x3f": "entity_metadata", - "0x40": "attach_entity", - "0x41": "entity_velocity", - "0x42": "entity_equipment", - "0x43": "experience", - "0x44": "update_health", - "0x45": "scoreboard_objective", - "0x46": "set_passengers", - "0x47": "teams", - "0x48": "scoreboard_score", - "0x49": "spawn_position", - "0x4a": "update_time", - "0x4b": "title", - "0x4c": "stop_sound", - "0x4d": "sound_effect", - "0x4e": "playerlist_header", - "0x4f": "collect", - "0x50": "entity_teleport", - "0x51": "advancements", - "0x52": "entity_update_attributes", - "0x53": "entity_effect", - "0x54": "declare_recipes", - "0x55": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "nbt_query_response", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "login", + "38": "map", + "39": "entity", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "vehicle_move", + "44": "open_sign_entity", + "45": "craft_recipe_response", + "46": "abilities", + "47": "combat_event", + "48": "player_info", + "49": "face_player", + "50": "position", + "51": "bed", + "52": "unlock_recipes", + "53": "entity_destroy", + "54": "remove_entity_effect", + "55": "resource_pack_send", + "56": "respawn", + "57": "entity_head_rotation", + "58": "select_advancement_tab", + "59": "world_border", + "60": "camera", + "61": "held_item_slot", + "62": "scoreboard_display_objective", + "63": "entity_metadata", + "64": "attach_entity", + "65": "entity_velocity", + "66": "entity_equipment", + "67": "experience", + "68": "update_health", + "69": "scoreboard_objective", + "70": "set_passengers", + "71": "teams", + "72": "scoreboard_score", + "73": "spawn_position", + "74": "update_time", + "75": "title", + "76": "stop_sound", + "77": "sound_effect", + "78": "playerlist_header", + "79": "collect", + "80": "entity_teleport", + "81": "advancements", + "82": "entity_update_attributes", + "83": "entity_effect", + "84": "declare_recipes", + "85": "tags" } } ] @@ -4090,7 +4168,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4110,191 +4189,190 @@ ] ], "packet_query_block_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "location", - "type": "position" - } - ] + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "location", + "type": "position" + } + ] ], "packet_edit_book": [ - "container", - [ - { - "name": "new_book", - "type": "slot" - }, - { - "name": "signing", - "type": "bool" - } - ] + "container", + [ + { + "name": "new_book", + "type": "slot" + }, + { + "name": "signing", + "type": "bool" + } + ] ], "packet_query_entity_nbt": [ - "container", - [ - { - "name": "transactionId", - "type": "varint" - }, - { - "name": "entityId", - "type": "varint" - } - ] + "container", + [ + { + "name": "transactionId", + "type": "varint" + }, + { + "name": "entityId", + "type": "varint" + } + ] ], "packet_pick_item": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] ], "packet_name_item": [ - "container", - [ - { - "name": "name", - "type": "string" - } - ] + "container", + [ + { + "name": "name", + "type": "string" + } + ] ], "packet_select_trade": [ - "container", - [ - { - "name": "slot", - "type": "varint" - } - ] + "container", + [ + { + "name": "slot", + "type": "varint" + } + ] ], "packet_set_beacon_effect": [ - "container", - [ - { - "name": "primary_effect", - "type": "varint" - }, - { - "name": "secondary_effect", - "type": "varint" - } - ] + "container", + [ + { + "name": "primary_effect", + "type": "varint" + }, + { + "name": "secondary_effect", + "type": "varint" + } + ] ], "packet_update_command_block": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "command", - "type": "string" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "flags", - "type": "u8" - } - ] + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "flags", + "type": "u8" + } + ] ], "packet_update_command_block_minecart": [ - "container", - [ - { - "name": "entityId", - "type": "varint" - }, - { - "name": "command", - "type": "string" - } - , - { - "name": "track_output", - "type": "bool" - } - ] + "container", + [ + { + "name": "entityId", + "type": "varint" + }, + { + "name": "command", + "type": "string" + }, + { + "name": "track_output", + "type": "bool" + } + ] ], "packet_update_structure_block": [ - "container", - [ - { - "name": "location", - "type": "position" - }, - { - "name": "action", - "type": "varint" - }, - { - "name": "mode", - "type": "varint" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "offset_x", - "type": "i8" - }, - { - "name": "offset_y", - "type": "i8" - }, - { - "name": "offset_z", - "type": "i8" - }, - { - "name": "size_x", - "type": "i8" - }, - { - "name": "size_y", - "type": "i8" - }, - { - "name": "size_z", - "type": "i8" - }, - { - "name": "mirror", - "type": "varint" - }, - { - "name": "rotation", - "type": "varint" - }, - { - "name": "metadata", - "type": "string" - }, - { - "name": "integrity", - "type": "f32" - }, - { - "name": "seed", - "type": "varlong" - }, - { - "name": "flags", - "type": "u8" - } - ] + "container", + [ + { + "name": "location", + "type": "position" + }, + { + "name": "action", + "type": "varint" + }, + { + "name": "mode", + "type": "varint" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "offset_x", + "type": "i8" + }, + { + "name": "offset_y", + "type": "i8" + }, + { + "name": "offset_z", + "type": "i8" + }, + { + "name": "size_x", + "type": "i8" + }, + { + "name": "size_y", + "type": "i8" + }, + { + "name": "size_z", + "type": "i8" + }, + { + "name": "mirror", + "type": "varint" + }, + { + "name": "rotation", + "type": "varint" + }, + { + "name": "metadata", + "type": "string" + }, + { + "name": "integrity", + "type": "f32" + }, + { + "name": "seed", + "type": "varlong" + }, + { + "name": "flags", + "type": "u8" + } + ] ], "packet_tab_complete": [ "container", @@ -4719,13 +4797,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -4755,7 +4833,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4885,11 +4964,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -4905,49 +4985,49 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "tab_complete", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "keep_alive", - "0x0f": "flying", - "0x10": "position", - "0x11": "position_look", - "0x12": "look", - "0x13": "vehicle_move", - "0x14": "steer_boat", - "0x15": "pick_item", - "0x16": "craft_recipe_request", - "0x17": "abilities", - "0x18": "block_dig", - "0x19": "entity_action", - "0x1a": "steer_vehicle", - "0x1b": "crafting_book_data", - "0x1c": "name_item", - "0x1d": "resource_pack_receive", - "0x1e": "advancement_tab", - "0x1f": "select_trade", - "0x20": "set_beacon_effect", - "0x21": "held_item_slot", - "0x22": "update_command_block", - "0x23": "update_command_block_minecart", - "0x24": "set_creative_slot", - "0x25": "update_structure_block", - "0x26": "update_sign", - "0x27": "arm_animation", - "0x28": "spectate", - "0x29": "block_place", - "0x2a": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "tab_complete", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "keep_alive", + "15": "flying", + "16": "position", + "17": "position_look", + "18": "look", + "19": "vehicle_move", + "20": "steer_boat", + "21": "pick_item", + "22": "craft_recipe_request", + "23": "abilities", + "24": "block_dig", + "25": "entity_action", + "26": "steer_vehicle", + "27": "crafting_book_data", + "28": "name_item", + "29": "resource_pack_receive", + "30": "advancement_tab", + "31": "select_trade", + "32": "set_beacon_effect", + "33": "held_item_slot", + "34": "update_command_block", + "35": "update_command_block_minecart", + "36": "set_creative_slot", + "37": "update_structure_block", + "38": "update_sign", + "39": "arm_animation", + "40": "spectate", + "41": "block_place", + "42": "use_item" } } ] @@ -5002,7 +5082,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5011,4 +5092,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.14.1/proto.yml b/data/pc/1.14.1/proto.yml new file mode 100644 index 000000000..69a4e84b4 --- /dev/null +++ b/data/pc/1.14.1/proto.yml @@ -0,0 +1,1717 @@ +!version: 1.14.1 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: scoreboard_display_objective + 0x43: entity_metadata + 0x44: attach_entity + 0x45: entity_velocity + 0x46: entity_equipment + 0x47: experience + 0x48: update_health + 0x49: scoreboard_objective + 0x4a: set_passengers + 0x4b: teams + 0x4c: scoreboard_score + 0x4d: spawn_position + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.14.1/protocol.json b/data/pc/1.14.1/protocol.json index fe1fa1926..d295ac54d 100644 --- a/data/pc/1.14.1/protocol.json +++ b/data/pc/1.14.1/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1485,10 +1511,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1803,19 +1845,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2279,9 +2324,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2474,7 +2520,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2557,44 +2606,50 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + } + ] + ] } ] }, @@ -3018,18 +3073,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3037,8 +3092,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3756,25 +3811,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3973,104 +4034,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4105,98 +4194,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "scoreboard_display_objective", + "67": "entity_metadata", + "68": "attach_entity", + "69": "entity_velocity", + "70": "entity_equipment", + "71": "experience", + "72": "update_health", + "73": "scoreboard_objective", + "74": "set_passengers", + "75": "teams", + "76": "scoreboard_score", + "77": "spawn_position", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4300,7 +4389,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4442,8 +4532,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4951,13 +5040,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5003,7 +5092,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5158,11 +5248,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5178,52 +5269,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5281,7 +5372,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5290,4 +5382,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.14.3/proto.yml b/data/pc/1.14.3/proto.yml new file mode 100644 index 000000000..07ca626c6 --- /dev/null +++ b/data/pc/1.14.3/proto.yml @@ -0,0 +1,1718 @@ +!version: 1.14.3 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: scoreboard_display_objective + 0x43: entity_metadata + 0x44: attach_entity + 0x45: entity_velocity + 0x46: entity_equipment + 0x47: experience + 0x48: update_health + 0x49: scoreboard_objective + 0x4a: set_passengers + 0x4b: teams + 0x4c: scoreboard_score + 0x4d: spawn_position + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.14.3/protocol.json b/data/pc/1.14.3/protocol.json index 849e06d2c..a92ecebaf 100644 --- a/data/pc/1.14.3/protocol.json +++ b/data/pc/1.14.3/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1485,10 +1511,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1803,19 +1845,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2279,9 +2324,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2474,7 +2520,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2557,44 +2606,50 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + } + ] + ] } ] }, @@ -3022,18 +3077,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3041,8 +3096,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3760,25 +3815,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3977,104 +4038,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4109,98 +4198,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "scoreboard_display_objective", + "67": "entity_metadata", + "68": "attach_entity", + "69": "entity_velocity", + "70": "entity_equipment", + "71": "experience", + "72": "update_health", + "73": "scoreboard_objective", + "74": "set_passengers", + "75": "teams", + "76": "scoreboard_score", + "77": "spawn_position", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4304,7 +4393,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4446,8 +4536,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4955,13 +5044,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5007,7 +5096,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5162,11 +5252,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5182,52 +5273,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5285,7 +5376,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5294,4 +5386,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.14.4/proto.yml b/data/pc/1.14.4/proto.yml new file mode 100644 index 000000000..19121e7c7 --- /dev/null +++ b/data/pc/1.14.4/proto.yml @@ -0,0 +1,1726 @@ +!version: 1.14.4 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: scoreboard_display_objective + 0x43: entity_metadata + 0x44: attach_entity + 0x45: entity_velocity + 0x46: entity_equipment + 0x47: experience + 0x48: update_health + 0x49: scoreboard_objective + 0x4a: set_passengers + 0x4b: teams + 0x4c: scoreboard_score + 0x4d: spawn_position + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + 0x5c: acknowledge_player_digging + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.14.4/protocol.json b/data/pc/1.14.4/protocol.json index 5d8cc94d9..0a686c3e1 100644 --- a/data/pc/1.14.4/protocol.json +++ b/data/pc/1.14.4/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1485,10 +1511,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1803,19 +1845,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2279,9 +2324,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2474,7 +2520,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2557,48 +2606,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3026,18 +3081,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3045,8 +3100,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3764,25 +3819,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3981,104 +4042,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4134,99 +4223,99 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags", - "0x5c": "acknowledge_player_digging" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "scoreboard_display_objective", + "67": "entity_metadata", + "68": "attach_entity", + "69": "entity_velocity", + "70": "entity_equipment", + "71": "experience", + "72": "update_health", + "73": "scoreboard_objective", + "74": "set_passengers", + "75": "teams", + "76": "scoreboard_score", + "77": "spawn_position", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags", + "92": "acknowledge_player_digging" } } ] @@ -4331,7 +4420,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4473,8 +4563,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4982,13 +5071,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5034,7 +5123,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5189,11 +5279,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5209,52 +5300,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5312,7 +5403,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5321,4 +5413,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.14/proto.yml b/data/pc/1.14/proto.yml new file mode 100644 index 000000000..51dfcc386 --- /dev/null +++ b/data/pc/1.14/proto.yml @@ -0,0 +1,1717 @@ +!version: 1.14 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: scoreboard_display_objective + 0x43: entity_metadata + 0x44: attach_entity + 0x45: entity_velocity + 0x46: entity_equipment + 0x47: experience + 0x48: update_health + 0x49: scoreboard_objective + 0x4a: set_passengers + 0x4b: teams + 0x4c: scoreboard_score + 0x4d: spawn_position + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.14/protocol.json b/data/pc/1.14/protocol.json index fe1fa1926..d295ac54d 100644 --- a/data/pc/1.14/protocol.json +++ b/data/pc/1.14/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1485,10 +1511,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1803,19 +1845,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2279,9 +2324,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2474,7 +2520,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2557,44 +2606,50 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + } + ] + ] } ] }, @@ -3018,18 +3073,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3037,8 +3092,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3756,25 +3811,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3973,104 +4034,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4105,98 +4194,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "scoreboard_display_objective", - "0x43": "entity_metadata", - "0x44": "attach_entity", - "0x45": "entity_velocity", - "0x46": "entity_equipment", - "0x47": "experience", - "0x48": "update_health", - "0x49": "scoreboard_objective", - "0x4a": "set_passengers", - "0x4b": "teams", - "0x4c": "scoreboard_score", - "0x4d": "spawn_position", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "scoreboard_display_objective", + "67": "entity_metadata", + "68": "attach_entity", + "69": "entity_velocity", + "70": "entity_equipment", + "71": "experience", + "72": "update_health", + "73": "scoreboard_objective", + "74": "set_passengers", + "75": "teams", + "76": "scoreboard_score", + "77": "spawn_position", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4300,7 +4389,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4442,8 +4532,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -4951,13 +5040,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5003,7 +5092,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5158,11 +5248,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5178,52 +5269,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5281,7 +5372,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5290,4 +5382,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.15.1/proto.yml b/data/pc/1.15.1/proto.yml new file mode 100644 index 000000000..0b3851abd --- /dev/null +++ b/data/pc/1.15.1/proto.yml @@ -0,0 +1,1730 @@ +!version: 1.15.1 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + hashedSeed: i64 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + hashedSeed: i64 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: multi_block_change + 0x11: tab_complete + 0x12: declare_commands + 0x13: transaction + 0x14: close_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: open_horse_window + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: entity + 0x2d: vehicle_move + 0x2e: open_book + 0x2f: open_window + 0x30: open_sign_entity + 0x31: craft_recipe_response + 0x32: abilities + 0x33: combat_event + 0x34: player_info + 0x35: face_player + 0x36: position + 0x37: unlock_recipes + 0x38: entity_destroy + 0x39: remove_entity_effect + 0x3a: resource_pack_send + 0x3b: respawn + 0x3c: entity_head_rotation + 0x3d: select_advancement_tab + 0x3e: world_border + 0x3f: camera + 0x40: held_item_slot + 0x41: update_view_position + 0x42: update_view_distance + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: spawn_position + 0x4f: update_time + 0x50: title + 0x51: entity_sound_effect + 0x52: sound_effect + 0x53: stop_sound + 0x54: playerlist_header + 0x55: nbt_query_response + 0x56: collect + 0x57: entity_teleport + 0x58: advancements + 0x59: entity_update_attributes + 0x5a: entity_effect + 0x5b: declare_recipes + 0x5c: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.15.1/protocol.json b/data/pc/1.15.1/protocol.json index 08d32a041..be427e578 100644 --- a/data/pc/1.15.1/protocol.json +++ b/data/pc/1.15.1/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1477,10 +1503,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1795,19 +1837,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2267,11 +2312,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2287,9 +2336,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2490,7 +2540,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2573,48 +2626,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3042,18 +3101,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3061,8 +3120,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3784,25 +3843,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4001,104 +4066,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4154,99 +4247,99 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "spawn_position", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "multi_block_change", + "17": "tab_complete", + "18": "declare_commands", + "19": "transaction", + "20": "close_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "open_horse_window", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "entity", + "45": "vehicle_move", + "46": "open_book", + "47": "open_window", + "48": "open_sign_entity", + "49": "craft_recipe_response", + "50": "abilities", + "51": "combat_event", + "52": "player_info", + "53": "face_player", + "54": "position", + "55": "unlock_recipes", + "56": "entity_destroy", + "57": "remove_entity_effect", + "58": "resource_pack_send", + "59": "respawn", + "60": "entity_head_rotation", + "61": "select_advancement_tab", + "62": "world_border", + "63": "camera", + "64": "held_item_slot", + "65": "update_view_position", + "66": "update_view_distance", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "spawn_position", + "79": "update_time", + "80": "title", + "81": "entity_sound_effect", + "82": "sound_effect", + "83": "stop_sound", + "84": "playerlist_header", + "85": "nbt_query_response", + "86": "collect", + "87": "entity_teleport", + "88": "advancements", + "89": "entity_update_attributes", + "90": "entity_effect", + "91": "declare_recipes", + "92": "tags" } } ] @@ -4351,7 +4444,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4493,8 +4587,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5002,13 +5095,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5054,7 +5147,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5209,11 +5303,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5229,52 +5324,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5332,7 +5427,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5341,4 +5437,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.15.2/proto.yml b/data/pc/1.15.2/proto.yml new file mode 100644 index 000000000..be1f3edcd --- /dev/null +++ b/data/pc/1.15.2/proto.yml @@ -0,0 +1,1730 @@ +!version: 1.15.2 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + hashedSeed: i64 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + hashedSeed: i64 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: multi_block_change + 0x11: tab_complete + 0x12: declare_commands + 0x13: transaction + 0x14: close_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: open_horse_window + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: entity + 0x2d: vehicle_move + 0x2e: open_book + 0x2f: open_window + 0x30: open_sign_entity + 0x31: craft_recipe_response + 0x32: abilities + 0x33: combat_event + 0x34: player_info + 0x35: face_player + 0x36: position + 0x37: unlock_recipes + 0x38: entity_destroy + 0x39: remove_entity_effect + 0x3a: resource_pack_send + 0x3b: respawn + 0x3c: entity_head_rotation + 0x3d: select_advancement_tab + 0x3e: world_border + 0x3f: camera + 0x40: held_item_slot + 0x41: update_view_position + 0x42: update_view_distance + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: spawn_position + 0x4f: update_time + 0x50: title + 0x51: entity_sound_effect + 0x52: sound_effect + 0x53: stop_sound + 0x54: playerlist_header + 0x55: nbt_query_response + 0x56: collect + 0x57: entity_teleport + 0x58: advancements + 0x59: entity_update_attributes + 0x5a: entity_effect + 0x5b: declare_recipes + 0x5c: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.15.2/protocol.json b/data/pc/1.15.2/protocol.json index 08d32a041..be427e578 100644 --- a/data/pc/1.15.2/protocol.json +++ b/data/pc/1.15.2/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1477,10 +1503,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1795,19 +1837,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2267,11 +2312,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2287,9 +2336,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2490,7 +2540,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2573,48 +2626,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3042,18 +3101,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3061,8 +3120,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3784,25 +3843,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4001,104 +4066,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4154,99 +4247,99 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "spawn_position", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "multi_block_change", + "17": "tab_complete", + "18": "declare_commands", + "19": "transaction", + "20": "close_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "open_horse_window", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "entity", + "45": "vehicle_move", + "46": "open_book", + "47": "open_window", + "48": "open_sign_entity", + "49": "craft_recipe_response", + "50": "abilities", + "51": "combat_event", + "52": "player_info", + "53": "face_player", + "54": "position", + "55": "unlock_recipes", + "56": "entity_destroy", + "57": "remove_entity_effect", + "58": "resource_pack_send", + "59": "respawn", + "60": "entity_head_rotation", + "61": "select_advancement_tab", + "62": "world_border", + "63": "camera", + "64": "held_item_slot", + "65": "update_view_position", + "66": "update_view_distance", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "spawn_position", + "79": "update_time", + "80": "title", + "81": "entity_sound_effect", + "82": "sound_effect", + "83": "stop_sound", + "84": "playerlist_header", + "85": "nbt_query_response", + "86": "collect", + "87": "entity_teleport", + "88": "advancements", + "89": "entity_update_attributes", + "90": "entity_effect", + "91": "declare_recipes", + "92": "tags" } } ] @@ -4351,7 +4444,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4493,8 +4587,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5002,13 +5095,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5054,7 +5147,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5209,11 +5303,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5229,52 +5324,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5332,7 +5427,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5341,4 +5437,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.15/proto.yml b/data/pc/1.15/proto.yml new file mode 100644 index 000000000..a9d99ca34 --- /dev/null +++ b/data/pc/1.15/proto.yml @@ -0,0 +1,1730 @@ +!version: 1.15 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 32: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + hashedSeed: i64 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + hashedSeed: i64 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: multi_block_change + 0x11: tab_complete + 0x12: declare_commands + 0x13: transaction + 0x14: close_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: open_horse_window + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: entity + 0x2d: vehicle_move + 0x2e: open_book + 0x2f: open_window + 0x30: open_sign_entity + 0x31: craft_recipe_response + 0x32: abilities + 0x33: combat_event + 0x34: player_info + 0x35: face_player + 0x36: position + 0x37: unlock_recipes + 0x38: entity_destroy + 0x39: remove_entity_effect + 0x3a: resource_pack_send + 0x3b: respawn + 0x3c: entity_head_rotation + 0x3d: select_advancement_tab + 0x3e: world_border + 0x3f: camera + 0x40: held_item_slot + 0x41: update_view_position + 0x42: update_view_distance + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: spawn_position + 0x4f: update_time + 0x50: title + 0x51: entity_sound_effect + 0x52: sound_effect + 0x53: stop_sound + 0x54: playerlist_header + 0x55: nbt_query_response + 0x56: collect + 0x57: entity_teleport + 0x58: advancements + 0x59: entity_update_attributes + 0x5a: entity_effect + 0x5b: declare_recipes + 0x5c: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + attachmentType: string + targetPool: string + finalState: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.15/protocol.json b/data/pc/1.15/protocol.json index 08d32a041..be427e578 100644 --- a/data/pc/1.15/protocol.json +++ b/data/pc/1.15/protocol.json @@ -63,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -93,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -101,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -121,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "32": [ - "container", [ + "32": [ + "container", + [ { "name": "item", "type": "slot" @@ -214,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -231,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -270,44 +277,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -728,7 +747,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -747,7 +767,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -826,8 +847,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -841,7 +862,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -881,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -896,7 +918,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -929,8 +952,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -944,7 +967,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1041,11 +1065,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1062,7 +1086,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1130,9 +1155,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1147,7 +1172,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1477,10 +1503,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1795,19 +1837,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2267,11 +2312,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2287,9 +2336,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2490,7 +2540,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2573,48 +2626,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3042,18 +3101,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3061,8 +3120,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3784,25 +3843,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4001,104 +4066,132 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4154,99 +4247,99 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "spawn_position", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "multi_block_change", + "17": "tab_complete", + "18": "declare_commands", + "19": "transaction", + "20": "close_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "open_horse_window", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "entity", + "45": "vehicle_move", + "46": "open_book", + "47": "open_window", + "48": "open_sign_entity", + "49": "craft_recipe_response", + "50": "abilities", + "51": "combat_event", + "52": "player_info", + "53": "face_player", + "54": "position", + "55": "unlock_recipes", + "56": "entity_destroy", + "57": "remove_entity_effect", + "58": "resource_pack_send", + "59": "respawn", + "60": "entity_head_rotation", + "61": "select_advancement_tab", + "62": "world_border", + "63": "camera", + "64": "held_item_slot", + "65": "update_view_position", + "66": "update_view_distance", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "spawn_position", + "79": "update_time", + "80": "title", + "81": "entity_sound_effect", + "82": "sound_effect", + "83": "stop_sound", + "84": "playerlist_header", + "85": "nbt_query_response", + "86": "collect", + "87": "entity_teleport", + "88": "advancements", + "89": "entity_update_attributes", + "90": "entity_effect", + "91": "declare_recipes", + "92": "tags" } } ] @@ -4351,7 +4444,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4493,8 +4587,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5002,13 +5095,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5054,7 +5147,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5209,11 +5303,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5229,52 +5324,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5332,7 +5427,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5341,4 +5437,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.16-rc1/proto.yml b/data/pc/1.16-rc1/proto.yml new file mode 100644 index 000000000..90e688a07 --- /dev/null +++ b/data/pc/1.16-rc1/proto.yml @@ -0,0 +1,1762 @@ +!version: 1.16-rc1 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 34: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + ignoreOldData: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + previousGameMode: u8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: string + worldName: string + hashedSeed: i64 + maxPlayers: u8 + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: animation + 0x06: statistics + 0x07: acknowledge_player_digging + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: spawn_position + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: generate_structure + 0x10: keep_alive + 0x11: lock_difficulty + 0x12: position + 0x13: position_look + 0x14: look + 0x15: flying + 0x16: vehicle_move + 0x17: steer_boat + 0x18: pick_item + 0x19: craft_recipe_request + 0x1a: abilities + 0x1b: block_dig + 0x1c: entity_action + 0x1d: steer_vehicle + 0x1e: crafting_book_data + 0x1f: name_item + 0x20: resource_pack_receive + 0x21: advancement_tab + 0x22: select_trade + 0x23: set_beacon_effect + 0x24: held_item_slot + 0x25: update_command_block + 0x26: update_command_block_minecart + 0x27: set_creative_slot + 0x28: update_jigsaw_block + 0x29: update_structure_block + 0x2a: update_sign + 0x2b: arm_animation + 0x2c: spectate + 0x2d: block_place + 0x2e: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.16-rc1/protocol.json b/data/pc/1.16-rc1/protocol.json index 8a54b80a1..393802e9e 100644 --- a/data/pc/1.16-rc1/protocol.json +++ b/data/pc/1.16-rc1/protocol.json @@ -64,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -94,7 +95,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -102,7 +104,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -122,15 +125,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "34": [ - "container", [ + "34": [ + "container", + [ { "name": "item", "type": "slot" @@ -215,7 +220,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -232,7 +238,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -271,44 +278,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -729,7 +748,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -748,7 +768,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -827,8 +848,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -842,7 +863,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -882,8 +904,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -897,7 +919,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -930,8 +953,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -945,7 +968,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1042,11 +1066,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1063,7 +1087,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1131,9 +1156,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1148,7 +1173,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1453,10 +1479,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1771,19 +1813,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2251,11 +2296,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2271,9 +2320,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2408,10 +2458,13 @@ }, { "name": "worldNames", - "type": ["array", { - "countType": "varint", - "type": "string" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { "name": "dimensionCodec", @@ -2501,7 +2554,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2584,48 +2640,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3053,18 +3115,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3072,8 +3134,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3416,18 +3478,24 @@ }, { "name": "equipments", - "type": ["topBitSetTerminatedArray", { - "type": ["container", [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ]] - }] + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] } ] ], @@ -3818,25 +3886,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4035,118 +4109,149 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:smithing": ["container",[ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4202,98 +4307,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "animation", + "6": "statistics", + "7": "acknowledge_player_digging", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "spawn_position", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4397,7 +4502,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4539,8 +4645,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5061,13 +5166,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5113,7 +5218,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5276,11 +5382,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5296,53 +5403,53 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "crafting_book_data", - "0x1f": "name_item", - "0x20": "resource_pack_receive", - "0x21": "advancement_tab", - "0x22": "select_trade", - "0x23": "set_beacon_effect", - "0x24": "held_item_slot", - "0x25": "update_command_block", - "0x26": "update_command_block_minecart", - "0x27": "set_creative_slot", - "0x28": "update_jigsaw_block", - "0x29": "update_structure_block", - "0x2a": "update_sign", - "0x2b": "arm_animation", - "0x2c": "spectate", - "0x2d": "block_place", - "0x2e": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "generate_structure", + "16": "keep_alive", + "17": "lock_difficulty", + "18": "position", + "19": "position_look", + "20": "look", + "21": "flying", + "22": "vehicle_move", + "23": "steer_boat", + "24": "pick_item", + "25": "craft_recipe_request", + "26": "abilities", + "27": "block_dig", + "28": "entity_action", + "29": "steer_vehicle", + "30": "crafting_book_data", + "31": "name_item", + "32": "resource_pack_receive", + "33": "advancement_tab", + "34": "select_trade", + "35": "set_beacon_effect", + "36": "held_item_slot", + "37": "update_command_block", + "38": "update_command_block_minecart", + "39": "set_creative_slot", + "40": "update_jigsaw_block", + "41": "update_structure_block", + "42": "update_sign", + "43": "arm_animation", + "44": "spectate", + "45": "block_place", + "46": "use_item" } } ] @@ -5401,7 +5508,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5410,4 +5518,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.16.1/proto.yml b/data/pc/1.16.1/proto.yml new file mode 100644 index 000000000..2a880026b --- /dev/null +++ b/data/pc/1.16.1/proto.yml @@ -0,0 +1,1762 @@ +!version: 1.16.1 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 34: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + ignoreOldData: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + previousGameMode: u8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: string + worldName: string + hashedSeed: i64 + maxPlayers: u8 + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: animation + 0x06: statistics + 0x07: acknowledge_player_digging + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: spawn_position + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: generate_structure + 0x10: keep_alive + 0x11: lock_difficulty + 0x12: position + 0x13: position_look + 0x14: look + 0x15: flying + 0x16: vehicle_move + 0x17: steer_boat + 0x18: pick_item + 0x19: craft_recipe_request + 0x1a: abilities + 0x1b: block_dig + 0x1c: entity_action + 0x1d: steer_vehicle + 0x1e: crafting_book_data + 0x1f: name_item + 0x20: resource_pack_receive + 0x21: advancement_tab + 0x22: select_trade + 0x23: set_beacon_effect + 0x24: held_item_slot + 0x25: update_command_block + 0x26: update_command_block_minecart + 0x27: set_creative_slot + 0x28: update_jigsaw_block + 0x29: update_structure_block + 0x2a: update_sign + 0x2b: arm_animation + 0x2c: spectate + 0x2d: block_place + 0x2e: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.16.1/protocol.json b/data/pc/1.16.1/protocol.json index 8a54b80a1..393802e9e 100644 --- a/data/pc/1.16.1/protocol.json +++ b/data/pc/1.16.1/protocol.json @@ -64,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -94,7 +95,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -102,7 +104,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -122,15 +125,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "34": [ - "container", [ + "34": [ + "container", + [ { "name": "item", "type": "slot" @@ -215,7 +220,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -232,7 +238,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -271,44 +278,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -729,7 +748,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -748,7 +768,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -827,8 +848,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -842,7 +863,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -882,8 +904,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -897,7 +919,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -930,8 +953,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -945,7 +968,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1042,11 +1066,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1063,7 +1087,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1131,9 +1156,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1148,7 +1173,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1453,10 +1479,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1771,19 +1813,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2251,11 +2296,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2271,9 +2320,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2408,10 +2458,13 @@ }, { "name": "worldNames", - "type": ["array", { - "countType": "varint", - "type": "string" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { "name": "dimensionCodec", @@ -2501,7 +2554,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2584,48 +2640,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3053,18 +3115,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3072,8 +3134,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3416,18 +3478,24 @@ }, { "name": "equipments", - "type": ["topBitSetTerminatedArray", { - "type": ["container", [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ]] - }] + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] } ] ], @@ -3818,25 +3886,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4035,118 +4109,149 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:smithing": ["container",[ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4202,98 +4307,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "animation", + "6": "statistics", + "7": "acknowledge_player_digging", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "spawn_position", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4397,7 +4502,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4539,8 +4645,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5061,13 +5166,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5113,7 +5218,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5276,11 +5382,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5296,53 +5403,53 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "crafting_book_data", - "0x1f": "name_item", - "0x20": "resource_pack_receive", - "0x21": "advancement_tab", - "0x22": "select_trade", - "0x23": "set_beacon_effect", - "0x24": "held_item_slot", - "0x25": "update_command_block", - "0x26": "update_command_block_minecart", - "0x27": "set_creative_slot", - "0x28": "update_jigsaw_block", - "0x29": "update_structure_block", - "0x2a": "update_sign", - "0x2b": "arm_animation", - "0x2c": "spectate", - "0x2d": "block_place", - "0x2e": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "generate_structure", + "16": "keep_alive", + "17": "lock_difficulty", + "18": "position", + "19": "position_look", + "20": "look", + "21": "flying", + "22": "vehicle_move", + "23": "steer_boat", + "24": "pick_item", + "25": "craft_recipe_request", + "26": "abilities", + "27": "block_dig", + "28": "entity_action", + "29": "steer_vehicle", + "30": "crafting_book_data", + "31": "name_item", + "32": "resource_pack_receive", + "33": "advancement_tab", + "34": "select_trade", + "35": "set_beacon_effect", + "36": "held_item_slot", + "37": "update_command_block", + "38": "update_command_block_minecart", + "39": "set_creative_slot", + "40": "update_jigsaw_block", + "41": "update_structure_block", + "42": "update_sign", + "43": "arm_animation", + "44": "spectate", + "45": "block_place", + "46": "use_item" } } ] @@ -5401,7 +5508,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5410,4 +5518,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.16.2/proto.yml b/data/pc/1.16.2/proto.yml new file mode 100644 index 000000000..524b6c12f --- /dev/null +++ b/data/pc/1.16.2/proto.yml @@ -0,0 +1,1776 @@ +!version: 1.16.2 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 34: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": false + } + ] + ] + notTrustEdges: bool + records: varlong[]varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: varint[]varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: u8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: nbt + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: nbt + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$height + _: ingredient[]$width + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: animation + 0x06: statistics + 0x07: acknowledge_player_digging + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: tab_complete + 0x10: declare_commands + 0x11: transaction + 0x12: close_window + 0x13: window_items + 0x14: craft_progress_bar + 0x15: set_slot + 0x16: set_cooldown + 0x17: custom_payload + 0x18: named_sound_effect + 0x19: kick_disconnect + 0x1a: entity_status + 0x1b: explosion + 0x1c: unload_chunk + 0x1d: game_state_change + 0x1e: open_horse_window + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: update_light + 0x24: login + 0x25: map + 0x26: trade_list + 0x27: rel_entity_move + 0x28: entity_move_look + 0x29: entity_look + 0x2a: entity + 0x2b: vehicle_move + 0x2c: open_book + 0x2d: open_window + 0x2e: open_sign_entity + 0x2f: craft_recipe_response + 0x30: abilities + 0x31: combat_event + 0x32: player_info + 0x33: face_player + 0x34: position + 0x35: unlock_recipes + 0x36: entity_destroy + 0x37: remove_entity_effect + 0x38: resource_pack_send + 0x39: respawn + 0x3a: entity_head_rotation + 0x3b: multi_block_change + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: spawn_position + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: generate_structure + 0x10: keep_alive + 0x11: lock_difficulty + 0x12: position + 0x13: position_look + 0x14: look + 0x15: flying + 0x16: vehicle_move + 0x17: steer_boat + 0x18: pick_item + 0x19: craft_recipe_request + 0x1a: abilities + 0x1b: block_dig + 0x1c: entity_action + 0x1d: steer_vehicle + 0x1e: recipe_book + 0x1f: displayed_recipe + 0x20: name_item + 0x21: resource_pack_receive + 0x22: advancement_tab + 0x23: select_trade + 0x24: set_beacon_effect + 0x25: held_item_slot + 0x26: update_command_block + 0x27: update_command_block_minecart + 0x28: set_creative_slot + 0x29: update_jigsaw_block + 0x2a: update_structure_block + 0x2b: update_sign + 0x2c: arm_animation + 0x2d: spectate + 0x2e: block_place + 0x2f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if displayed_recipe: packet_displayed_recipe + if recipe_book: packet_recipe_book + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.16.2/protocol.json b/data/pc/1.16.2/protocol.json index bbc81db73..8975f1bf1 100644 --- a/data/pc/1.16.2/protocol.json +++ b/data/pc/1.16.2/protocol.json @@ -64,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -94,7 +95,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -102,7 +104,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -122,15 +125,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "34": [ - "container", [ + "34": [ + "container", + [ { "name": "item", "type": "slot" @@ -215,7 +220,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -232,7 +238,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -271,44 +278,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -729,7 +748,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -748,7 +768,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -827,8 +848,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -842,7 +863,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -882,8 +904,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -897,7 +919,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -930,8 +953,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -945,7 +968,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1042,11 +1066,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1063,7 +1087,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1131,9 +1156,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1148,7 +1173,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1453,10 +1479,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1771,19 +1813,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -1894,7 +1939,8 @@ [ { "name": "chunkCoordinates", - "type": ["bitfield", + "type": [ + "bitfield", [ { "name": "x", @@ -2249,11 +2295,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "countType": "varint", - "type": "varint" - }] - } + "true": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + }, + "default": "void" } ] }, @@ -2269,9 +2319,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2410,10 +2461,13 @@ }, { "name": "worldNames", - "type": ["array", { - "countType": "varint", - "type": "string" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { "name": "dimensionCodec", @@ -2503,7 +2557,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2586,48 +2643,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3071,18 +3134,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3090,8 +3153,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3434,18 +3497,24 @@ }, { "name": "equipments", - "type": ["topBitSetTerminatedArray", { - "type": ["container", [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ]] - }] + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] } ] ], @@ -3836,25 +3905,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4053,118 +4128,149 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "height", - "type": ["array",{ - "count": "width", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:smithing": ["container",[ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "height", + "type": [ + "array", + { + "count": "width", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4220,98 +4326,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "set_cooldown", - "0x17": "custom_payload", - "0x18": "named_sound_effect", - "0x19": "kick_disconnect", - "0x1a": "entity_status", - "0x1b": "explosion", - "0x1c": "unload_chunk", - "0x1d": "game_state_change", - "0x1e": "open_horse_window", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "update_light", - "0x24": "login", - "0x25": "map", - "0x26": "trade_list", - "0x27": "rel_entity_move", - "0x28": "entity_move_look", - "0x29": "entity_look", - "0x2a": "entity", - "0x2b": "vehicle_move", - "0x2c": "open_book", - "0x2d": "open_window", - "0x2e": "open_sign_entity", - "0x2f": "craft_recipe_response", - "0x30": "abilities", - "0x31": "combat_event", - "0x32": "player_info", - "0x33": "face_player", - "0x34": "position", - "0x35": "unlock_recipes", - "0x36": "entity_destroy", - "0x37": "remove_entity_effect", - "0x38": "resource_pack_send", - "0x39": "respawn", - "0x3a": "entity_head_rotation", - "0x3b": "multi_block_change", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "animation", + "6": "statistics", + "7": "acknowledge_player_digging", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "tab_complete", + "16": "declare_commands", + "17": "transaction", + "18": "close_window", + "19": "window_items", + "20": "craft_progress_bar", + "21": "set_slot", + "22": "set_cooldown", + "23": "custom_payload", + "24": "named_sound_effect", + "25": "kick_disconnect", + "26": "entity_status", + "27": "explosion", + "28": "unload_chunk", + "29": "game_state_change", + "30": "open_horse_window", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "update_light", + "36": "login", + "37": "map", + "38": "trade_list", + "39": "rel_entity_move", + "40": "entity_move_look", + "41": "entity_look", + "42": "entity", + "43": "vehicle_move", + "44": "open_book", + "45": "open_window", + "46": "open_sign_entity", + "47": "craft_recipe_response", + "48": "abilities", + "49": "combat_event", + "50": "player_info", + "51": "face_player", + "52": "position", + "53": "unlock_recipes", + "54": "entity_destroy", + "55": "remove_entity_effect", + "56": "resource_pack_send", + "57": "respawn", + "58": "entity_head_rotation", + "59": "multi_block_change", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "spawn_position", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4415,7 +4521,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4557,8 +4664,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5254,11 +5360,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5274,54 +5381,54 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "generate_structure", + "16": "keep_alive", + "17": "lock_difficulty", + "18": "position", + "19": "position_look", + "20": "look", + "21": "flying", + "22": "vehicle_move", + "23": "steer_boat", + "24": "pick_item", + "25": "craft_recipe_request", + "26": "abilities", + "27": "block_dig", + "28": "entity_action", + "29": "steer_vehicle", + "30": "recipe_book", + "31": "displayed_recipe", + "32": "name_item", + "33": "resource_pack_receive", + "34": "advancement_tab", + "35": "select_trade", + "36": "set_beacon_effect", + "37": "held_item_slot", + "38": "update_command_block", + "39": "update_command_block_minecart", + "40": "set_creative_slot", + "41": "update_jigsaw_block", + "42": "update_structure_block", + "43": "update_sign", + "44": "arm_animation", + "45": "spectate", + "46": "block_place", + "47": "use_item" } } ] @@ -5381,7 +5488,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5390,4 +5498,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.16/proto.yml b/data/pc/1.16/proto.yml new file mode 100644 index 000000000..a20e9c43e --- /dev/null +++ b/data/pc/1.16/proto.yml @@ -0,0 +1,1762 @@ +!version: 1.16 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 34: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + ignoreOldData: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + previousGameMode: u8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: string + worldName: string + hashedSeed: i64 + maxPlayers: u8 + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: animation + 0x06: statistics + 0x07: acknowledge_player_digging + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: select_advancement_tab + 0x3d: world_border + 0x3e: camera + 0x3f: held_item_slot + 0x40: update_view_position + 0x41: update_view_distance + 0x42: spawn_position + 0x43: scoreboard_display_objective + 0x44: entity_metadata + 0x45: attach_entity + 0x46: entity_velocity + 0x47: entity_equipment + 0x48: experience + 0x49: update_health + 0x4a: scoreboard_objective + 0x4b: set_passengers + 0x4c: teams + 0x4d: scoreboard_score + 0x4e: update_time + 0x4f: title + 0x50: entity_sound_effect + 0x51: sound_effect + 0x52: stop_sound + 0x53: playerlist_header + 0x54: nbt_query_response + 0x55: collect + 0x56: entity_teleport + 0x57: advancements + 0x58: entity_update_attributes + 0x59: entity_effect + 0x5a: declare_recipes + 0x5b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: generate_structure + 0x10: keep_alive + 0x11: lock_difficulty + 0x12: position + 0x13: position_look + 0x14: look + 0x15: flying + 0x16: vehicle_move + 0x17: steer_boat + 0x18: pick_item + 0x19: craft_recipe_request + 0x1a: abilities + 0x1b: block_dig + 0x1c: entity_action + 0x1d: steer_vehicle + 0x1e: crafting_book_data + 0x1f: name_item + 0x20: resource_pack_receive + 0x21: advancement_tab + 0x22: select_trade + 0x23: set_beacon_effect + 0x24: held_item_slot + 0x25: update_command_block + 0x26: update_command_block_minecart + 0x27: set_creative_slot + 0x28: update_jigsaw_block + 0x29: update_structure_block + 0x2a: update_sign + 0x2b: arm_animation + 0x2c: spectate + 0x2d: block_place + 0x2e: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/1.16/protocol.json b/data/pc/1.16/protocol.json index 8a54b80a1..393802e9e 100644 --- a/data/pc/1.16/protocol.json +++ b/data/pc/1.16/protocol.json @@ -64,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -94,7 +95,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -102,7 +104,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -122,15 +125,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "34": [ - "container", [ + "34": [ + "container", + [ { "name": "item", "type": "slot" @@ -215,7 +220,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -232,7 +238,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -271,44 +278,56 @@ ] } ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "command_node": [ "container", [ @@ -729,7 +748,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -748,7 +768,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -827,8 +848,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -842,7 +863,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -882,8 +904,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -897,7 +919,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -930,8 +953,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -945,7 +968,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1042,11 +1066,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1063,7 +1087,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1131,9 +1156,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1148,7 +1173,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1453,10 +1479,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1771,19 +1813,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2251,11 +2296,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2271,9 +2320,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2408,10 +2458,13 @@ }, { "name": "worldNames", - "type": ["array", { - "countType": "varint", - "type": "string" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { "name": "dimensionCodec", @@ -2501,7 +2554,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2584,48 +2640,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3053,18 +3115,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3072,8 +3134,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3416,18 +3478,24 @@ }, { "name": "equipments", - "type": ["topBitSetTerminatedArray", { - "type": ["container", [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ]] - }] + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] } ] ], @@ -3818,25 +3886,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4035,118 +4109,149 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:smithing": ["container",[ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], @@ -4202,98 +4307,98 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "animation", - "0x06": "statistics", - "0x07": "acknowledge_player_digging", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "select_advancement_tab", - "0x3d": "world_border", - "0x3e": "camera", - "0x3f": "held_item_slot", - "0x40": "update_view_position", - "0x41": "update_view_distance", - "0x42": "spawn_position", - "0x43": "scoreboard_display_objective", - "0x44": "entity_metadata", - "0x45": "attach_entity", - "0x46": "entity_velocity", - "0x47": "entity_equipment", - "0x48": "experience", - "0x49": "update_health", - "0x4a": "scoreboard_objective", - "0x4b": "set_passengers", - "0x4c": "teams", - "0x4d": "scoreboard_score", - "0x4e": "update_time", - "0x4f": "title", - "0x50": "entity_sound_effect", - "0x51": "sound_effect", - "0x52": "stop_sound", - "0x53": "playerlist_header", - "0x54": "nbt_query_response", - "0x55": "collect", - "0x56": "entity_teleport", - "0x57": "advancements", - "0x58": "entity_update_attributes", - "0x59": "entity_effect", - "0x5a": "declare_recipes", - "0x5b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "animation", + "6": "statistics", + "7": "acknowledge_player_digging", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "select_advancement_tab", + "61": "world_border", + "62": "camera", + "63": "held_item_slot", + "64": "update_view_position", + "65": "update_view_distance", + "66": "spawn_position", + "67": "scoreboard_display_objective", + "68": "entity_metadata", + "69": "attach_entity", + "70": "entity_velocity", + "71": "entity_equipment", + "72": "experience", + "73": "update_health", + "74": "scoreboard_objective", + "75": "set_passengers", + "76": "teams", + "77": "scoreboard_score", + "78": "update_time", + "79": "title", + "80": "entity_sound_effect", + "81": "sound_effect", + "82": "stop_sound", + "83": "playerlist_header", + "84": "nbt_query_response", + "85": "collect", + "86": "entity_teleport", + "87": "advancements", + "88": "entity_update_attributes", + "89": "entity_effect", + "90": "declare_recipes", + "91": "tags" } } ] @@ -4397,7 +4502,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4539,8 +4645,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5061,13 +5166,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5113,7 +5218,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5276,11 +5382,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5296,53 +5403,53 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "crafting_book_data", - "0x1f": "name_item", - "0x20": "resource_pack_receive", - "0x21": "advancement_tab", - "0x22": "select_trade", - "0x23": "set_beacon_effect", - "0x24": "held_item_slot", - "0x25": "update_command_block", - "0x26": "update_command_block_minecart", - "0x27": "set_creative_slot", - "0x28": "update_jigsaw_block", - "0x29": "update_structure_block", - "0x2a": "update_sign", - "0x2b": "arm_animation", - "0x2c": "spectate", - "0x2d": "block_place", - "0x2e": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "generate_structure", + "16": "keep_alive", + "17": "lock_difficulty", + "18": "position", + "19": "position_look", + "20": "look", + "21": "flying", + "22": "vehicle_move", + "23": "steer_boat", + "24": "pick_item", + "25": "craft_recipe_request", + "26": "abilities", + "27": "block_dig", + "28": "entity_action", + "29": "steer_vehicle", + "30": "crafting_book_data", + "31": "name_item", + "32": "resource_pack_receive", + "33": "advancement_tab", + "34": "select_trade", + "35": "set_beacon_effect", + "36": "held_item_slot", + "37": "update_command_block", + "38": "update_command_block_minecart", + "39": "set_creative_slot", + "40": "update_jigsaw_block", + "41": "update_structure_block", + "42": "update_sign", + "43": "arm_animation", + "44": "spectate", + "45": "block_place", + "46": "use_item" } } ] @@ -5401,7 +5508,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5410,4 +5518,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.17.1/proto.yml b/data/pc/1.17.1/proto.yml new file mode 100644 index 000000000..ab746a71d --- /dev/null +++ b/data/pc/1.17.1/proto.yml @@ -0,0 +1,1800 @@ +!version: 1.17.1 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 4: + blockState: varint + if 15: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 16: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 36: + item: slot + if 37: + origin: position + positionType: string + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": false + } + ] + ] + notTrustEdges: bool + records: varlong[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + bitMap: i64[]varint + heightmaps: nbt + biomes: varint[]varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: nbt + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: nbt + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet_sculk_vibration_signal: + sourcePosition: position + destinationIdentifier: string + destination: destinationIdentifier ? + if block: position + if entityId: varint + default: void + arrivalTicks: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varlong + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varlong + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: sculk_vibration_signal + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: clear_titles + 0x11: tab_complete + 0x12: declare_commands + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: initialize_world_border + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: ping + 0x31: craft_recipe_response + 0x32: abilities + 0x33: end_combat_event + 0x34: enter_combat_event + 0x35: death_combat_event + 0x36: player_info + 0x37: face_player + 0x38: position + 0x39: unlock_recipes + 0x3a: entity_destroy + 0x3b: remove_entity_effect + 0x3c: resource_pack_send + 0x3d: respawn + 0x3e: entity_head_rotation + 0x3f: multi_block_change + 0x40: select_advancement_tab + 0x41: action_bar + 0x42: world_border_center + 0x43: world_border_lerp_size + 0x44: world_border_size + 0x45: world_border_warning_delay + 0x46: world_border_warning_reach + 0x47: camera + 0x48: held_item_slot + 0x49: update_view_position + 0x4a: update_view_distance + 0x4b: spawn_position + 0x4c: scoreboard_display_objective + 0x4d: entity_metadata + 0x4e: attach_entity + 0x4f: entity_velocity + 0x50: entity_equipment + 0x51: experience + 0x52: update_health + 0x53: scoreboard_objective + 0x54: set_passengers + 0x55: teams + 0x56: scoreboard_score + 0x57: set_title_subtitle + 0x58: update_time + 0x59: set_title_text + 0x5a: set_title_time + 0x5b: entity_sound_effect + 0x5c: sound_effect + 0x5d: stop_sound + 0x5e: playerlist_header + 0x5f: nbt_query_response + 0x60: collect + 0x61: entity_teleport + 0x62: advancements + 0x63: entity_update_attributes + 0x64: entity_effect + 0x65: declare_recipes + 0x66: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + if sculk_vibration_signal: packet_sculk_vibration_signal + if clear_titles: packet_clear_titles + if initialize_world_border: packet_initialize_world_border + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if ping: packet_ping + if set_title_subtitle: packet_set_title_subtitle + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + disableTextFiltering: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: generate_structure + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: pong + 0x1e: recipe_book + 0x1f: displayed_recipe + 0x20: name_item + 0x21: resource_pack_receive + 0x22: advancement_tab + 0x23: select_trade + 0x24: set_beacon_effect + 0x25: held_item_slot + 0x26: update_command_block + 0x27: update_command_block_minecart + 0x28: set_creative_slot + 0x29: update_jigsaw_block + 0x2a: update_structure_block + 0x2b: update_sign + 0x2c: arm_animation + 0x2d: spectate + 0x2e: block_place + 0x2f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if displayed_recipe: packet_displayed_recipe + if recipe_book: packet_recipe_book + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab + if pong: packet_pong diff --git a/data/pc/1.17.1/protocol.json b/data/pc/1.17.1/protocol.json index ca5fe414a..669afaf52 100644 --- a/data/pc/1.17.1/protocol.json +++ b/data/pc/1.17.1/protocol.json @@ -64,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -194,7 +195,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -300,7 +302,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -809,7 +812,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -828,7 +832,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -907,8 +912,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -922,7 +927,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -962,8 +968,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -977,7 +983,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1010,8 +1017,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1025,7 +1032,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1122,11 +1130,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1143,7 +1151,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1211,9 +1220,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1228,7 +1237,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -3788,8 +3798,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -3802,8 +3812,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4140,7 +4150,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4396,109 +4407,109 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "set_title_subtitle", - "0x58": "update_time", - "0x59": "set_title_text", - "0x5a": "set_title_time", - "0x5b": "entity_sound_effect", - "0x5c": "sound_effect", - "0x5d": "stop_sound", - "0x5e": "playerlist_header", - "0x5f": "nbt_query_response", - "0x60": "collect", - "0x61": "entity_teleport", - "0x62": "advancements", - "0x63": "entity_update_attributes", - "0x64": "entity_effect", - "0x65": "declare_recipes", - "0x66": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "sculk_vibration_signal", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "clear_titles", + "17": "tab_complete", + "18": "declare_commands", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "initialize_world_border", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "ping", + "49": "craft_recipe_response", + "50": "abilities", + "51": "end_combat_event", + "52": "enter_combat_event", + "53": "death_combat_event", + "54": "player_info", + "55": "face_player", + "56": "position", + "57": "unlock_recipes", + "58": "entity_destroy", + "59": "remove_entity_effect", + "60": "resource_pack_send", + "61": "respawn", + "62": "entity_head_rotation", + "63": "multi_block_change", + "64": "select_advancement_tab", + "65": "action_bar", + "66": "world_border_center", + "67": "world_border_lerp_size", + "68": "world_border_size", + "69": "world_border_warning_delay", + "70": "world_border_warning_reach", + "71": "camera", + "72": "held_item_slot", + "73": "update_view_position", + "74": "update_view_distance", + "75": "spawn_position", + "76": "scoreboard_display_objective", + "77": "entity_metadata", + "78": "attach_entity", + "79": "entity_velocity", + "80": "entity_equipment", + "81": "experience", + "82": "update_health", + "83": "scoreboard_objective", + "84": "set_passengers", + "85": "teams", + "86": "scoreboard_score", + "87": "set_title_subtitle", + "88": "update_time", + "89": "set_title_text", + "90": "set_title_time", + "91": "entity_sound_effect", + "92": "sound_effect", + "93": "stop_sound", + "94": "playerlist_header", + "95": "nbt_query_response", + "96": "collect", + "97": "entity_teleport", + "98": "advancements", + "99": "entity_update_attributes", + "100": "entity_effect", + "101": "declare_recipes", + "102": "tags" } } ] @@ -4613,7 +4624,8 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - } + }, + "default": "void" } ] } @@ -5473,7 +5485,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5498,54 +5511,54 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "generate_structure", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "pong", + "30": "recipe_book", + "31": "displayed_recipe", + "32": "name_item", + "33": "resource_pack_receive", + "34": "advancement_tab", + "35": "select_trade", + "36": "set_beacon_effect", + "37": "held_item_slot", + "38": "update_command_block", + "39": "update_command_block_minecart", + "40": "set_creative_slot", + "41": "update_jigsaw_block", + "42": "update_structure_block", + "43": "update_sign", + "44": "arm_animation", + "45": "spectate", + "46": "block_place", + "47": "use_item" } } ] @@ -5605,7 +5618,8 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - } + }, + "default": "void" } ] } @@ -5614,4 +5628,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.17/proto.yml b/data/pc/1.17/proto.yml new file mode 100644 index 000000000..724869ca4 --- /dev/null +++ b/data/pc/1.17/proto.yml @@ -0,0 +1,1796 @@ +!version: 1.17 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 4: + blockState: varint + if 15: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 16: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 36: + item: slot + if 37: + origin: position + positionType: string + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": false + } + ] + ] + notTrustEdges: bool + records: varlong[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + bitMap: i64[]varint + heightmaps: nbt + biomes: varint[]varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: nbt + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_destroy_entity: + entityId: varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: nbt + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet_sculk_vibration_signal: + sourcePosition: position + destinationIdentifier: string + destination: destinationIdentifier ? + if block: position + if entityId: varint + default: void + arrivalTicks: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varlong + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varlong + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: sculk_vibration_signal + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: clear_titles + 0x11: tab_complete + 0x12: declare_commands + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: initialize_world_border + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: ping + 0x31: craft_recipe_response + 0x32: abilities + 0x33: end_combat_event + 0x34: enter_combat_event + 0x35: death_combat_event + 0x36: player_info + 0x37: face_player + 0x38: position + 0x39: unlock_recipes + 0x3a: destroy_entity + 0x3b: remove_entity_effect + 0x3c: resource_pack_send + 0x3d: respawn + 0x3e: entity_head_rotation + 0x3f: multi_block_change + 0x40: select_advancement_tab + 0x41: action_bar + 0x42: world_border_center + 0x43: world_border_lerp_size + 0x44: world_border_size + 0x45: world_border_warning_delay + 0x46: world_border_warning_reach + 0x47: camera + 0x48: held_item_slot + 0x49: update_view_position + 0x4a: update_view_distance + 0x4b: spawn_position + 0x4c: scoreboard_display_objective + 0x4d: entity_metadata + 0x4e: attach_entity + 0x4f: entity_velocity + 0x50: entity_equipment + 0x51: experience + 0x52: update_health + 0x53: scoreboard_objective + 0x54: set_passengers + 0x55: teams + 0x56: scoreboard_score + 0x57: set_title_subtitle + 0x58: update_time + 0x59: set_title_text + 0x5a: set_title_time + 0x5b: entity_sound_effect + 0x5c: sound_effect + 0x5d: stop_sound + 0x5e: playerlist_header + 0x5f: nbt_query_response + 0x60: collect + 0x61: entity_teleport + 0x62: advancements + 0x63: entity_update_attributes + 0x64: entity_effect + 0x65: declare_recipes + 0x66: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if destroy_entity: packet_destroy_entity + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + if sculk_vibration_signal: packet_sculk_vibration_signal + if clear_titles: packet_clear_titles + if initialize_world_border: packet_initialize_world_border + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if ping: packet_ping + if set_title_subtitle: packet_set_title_subtitle + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + disableTextFiltering: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + mode: i8 + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: generate_structure + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: pong + 0x1e: recipe_book + 0x1f: displayed_recipe + 0x20: name_item + 0x21: resource_pack_receive + 0x22: advancement_tab + 0x23: select_trade + 0x24: set_beacon_effect + 0x25: held_item_slot + 0x26: update_command_block + 0x27: update_command_block_minecart + 0x28: set_creative_slot + 0x29: update_jigsaw_block + 0x2a: update_structure_block + 0x2b: update_sign + 0x2c: arm_animation + 0x2d: spectate + 0x2e: block_place + 0x2f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if displayed_recipe: packet_displayed_recipe + if recipe_book: packet_recipe_book + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab + if pong: packet_pong diff --git a/data/pc/1.17/protocol.json b/data/pc/1.17/protocol.json index f2456808b..eab83cadd 100644 --- a/data/pc/1.17/protocol.json +++ b/data/pc/1.17/protocol.json @@ -64,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -194,7 +195,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -300,7 +302,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -809,7 +812,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -828,7 +832,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -907,8 +912,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -922,7 +927,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -962,8 +968,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -977,7 +983,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1010,8 +1017,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1025,7 +1032,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1122,11 +1130,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1143,7 +1151,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1211,9 +1220,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1228,7 +1237,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -3770,8 +3780,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -3784,8 +3794,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4122,7 +4132,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4378,109 +4389,109 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "destroy_entity", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "set_title_subtitle", - "0x58": "update_time", - "0x59": "set_title_text", - "0x5a": "set_title_time", - "0x5b": "entity_sound_effect", - "0x5c": "sound_effect", - "0x5d": "stop_sound", - "0x5e": "playerlist_header", - "0x5f": "nbt_query_response", - "0x60": "collect", - "0x61": "entity_teleport", - "0x62": "advancements", - "0x63": "entity_update_attributes", - "0x64": "entity_effect", - "0x65": "declare_recipes", - "0x66": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "sculk_vibration_signal", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "clear_titles", + "17": "tab_complete", + "18": "declare_commands", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "initialize_world_border", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "ping", + "49": "craft_recipe_response", + "50": "abilities", + "51": "end_combat_event", + "52": "enter_combat_event", + "53": "death_combat_event", + "54": "player_info", + "55": "face_player", + "56": "position", + "57": "unlock_recipes", + "58": "destroy_entity", + "59": "remove_entity_effect", + "60": "resource_pack_send", + "61": "respawn", + "62": "entity_head_rotation", + "63": "multi_block_change", + "64": "select_advancement_tab", + "65": "action_bar", + "66": "world_border_center", + "67": "world_border_lerp_size", + "68": "world_border_size", + "69": "world_border_warning_delay", + "70": "world_border_warning_reach", + "71": "camera", + "72": "held_item_slot", + "73": "update_view_position", + "74": "update_view_distance", + "75": "spawn_position", + "76": "scoreboard_display_objective", + "77": "entity_metadata", + "78": "attach_entity", + "79": "entity_velocity", + "80": "entity_equipment", + "81": "experience", + "82": "update_health", + "83": "scoreboard_objective", + "84": "set_passengers", + "85": "teams", + "86": "scoreboard_score", + "87": "set_title_subtitle", + "88": "update_time", + "89": "set_title_text", + "90": "set_title_time", + "91": "entity_sound_effect", + "92": "sound_effect", + "93": "stop_sound", + "94": "playerlist_header", + "95": "nbt_query_response", + "96": "collect", + "97": "entity_teleport", + "98": "advancements", + "99": "entity_update_attributes", + "100": "entity_effect", + "101": "declare_recipes", + "102": "tags" } } ] @@ -4595,7 +4606,8 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - } + }, + "default": "void" } ] } @@ -5442,7 +5454,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5467,54 +5480,54 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "generate_structure", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "pong", + "30": "recipe_book", + "31": "displayed_recipe", + "32": "name_item", + "33": "resource_pack_receive", + "34": "advancement_tab", + "35": "select_trade", + "36": "set_beacon_effect", + "37": "held_item_slot", + "38": "update_command_block", + "39": "update_command_block_minecart", + "40": "set_creative_slot", + "41": "update_jigsaw_block", + "42": "update_structure_block", + "43": "update_sign", + "44": "arm_animation", + "45": "spectate", + "46": "block_place", + "47": "use_item" } } ] @@ -5574,7 +5587,8 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - } + }, + "default": "void" } ] } @@ -5583,4 +5597,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.18.2/proto.yml b/data/pc/1.18.2/proto.yml new file mode 100644 index 000000000..20a6acfc3 --- /dev/null +++ b/data/pc/1.18.2/proto.yml @@ -0,0 +1,1836 @@ +!version: 1.18.2 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 24: + blockState: varint + if 35: + item: slot + if 36: + origin: position + positionType: string + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + notTrustEdges: bool + records: varlong[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: nbt + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: nbt + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet_sculk_vibration_signal: + sourcePosition: position + destinationIdentifier: string + destination: destinationIdentifier ? + if block: position + if entityId: varint + default: void + arrivalTicks: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varlong + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varlong + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: sculk_vibration_signal + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: clear_titles + 0x11: tab_complete + 0x12: declare_commands + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: initialize_world_border + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: ping + 0x31: craft_recipe_response + 0x32: abilities + 0x33: end_combat_event + 0x34: enter_combat_event + 0x35: death_combat_event + 0x36: player_info + 0x37: face_player + 0x38: position + 0x39: unlock_recipes + 0x3a: entity_destroy + 0x3b: remove_entity_effect + 0x3c: resource_pack_send + 0x3d: respawn + 0x3e: entity_head_rotation + 0x3f: multi_block_change + 0x40: select_advancement_tab + 0x41: action_bar + 0x42: world_border_center + 0x43: world_border_lerp_size + 0x44: world_border_size + 0x45: world_border_warning_delay + 0x46: world_border_warning_reach + 0x47: camera + 0x48: held_item_slot + 0x49: update_view_position + 0x4a: update_view_distance + 0x4b: spawn_position + 0x4c: scoreboard_display_objective + 0x4d: entity_metadata + 0x4e: attach_entity + 0x4f: entity_velocity + 0x50: entity_equipment + 0x51: experience + 0x52: update_health + 0x53: scoreboard_objective + 0x54: set_passengers + 0x55: teams + 0x56: scoreboard_score + 0x57: simulation_distance + 0x58: set_title_subtitle + 0x59: update_time + 0x5a: set_title_text + 0x5b: set_title_time + 0x5c: entity_sound_effect + 0x5d: sound_effect + 0x5e: stop_sound + 0x5f: playerlist_header + 0x60: nbt_query_response + 0x61: collect + 0x62: entity_teleport + 0x63: advancements + 0x64: entity_update_attributes + 0x65: entity_effect + 0x66: declare_recipes + 0x67: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + if sculk_vibration_signal: packet_sculk_vibration_signal + if clear_titles: packet_clear_titles + if initialize_world_border: packet_initialize_world_border + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if ping: packet_ping + if set_title_subtitle: packet_set_title_subtitle + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: generate_structure + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: pong + 0x1e: recipe_book + 0x1f: displayed_recipe + 0x20: name_item + 0x21: resource_pack_receive + 0x22: advancement_tab + 0x23: select_trade + 0x24: set_beacon_effect + 0x25: held_item_slot + 0x26: update_command_block + 0x27: update_command_block_minecart + 0x28: set_creative_slot + 0x29: update_jigsaw_block + 0x2a: update_structure_block + 0x2b: update_sign + 0x2c: arm_animation + 0x2d: spectate + 0x2e: block_place + 0x2f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if displayed_recipe: packet_displayed_recipe + if recipe_book: packet_recipe_book + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab + if pong: packet_pong diff --git a/data/pc/1.18.2/protocol.json b/data/pc/1.18.2/protocol.json index f2fbd1dc9..2ab36e05b 100644 --- a/data/pc/1.18.2/protocol.json +++ b/data/pc/1.18.2/protocol.json @@ -66,7 +66,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -205,7 +206,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -311,7 +313,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -855,7 +858,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -874,7 +878,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -953,8 +958,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -968,7 +973,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1008,8 +1014,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1023,7 +1029,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1056,8 +1063,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1071,7 +1078,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1168,11 +1176,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1189,7 +1197,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1257,9 +1266,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1274,7 +1283,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -3894,8 +3904,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -3908,8 +3918,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4246,7 +4256,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4511,110 +4522,110 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "simulation_distance", - "0x58": "set_title_subtitle", - "0x59": "update_time", - "0x5a": "set_title_text", - "0x5b": "set_title_time", - "0x5c": "entity_sound_effect", - "0x5d": "sound_effect", - "0x5e": "stop_sound", - "0x5f": "playerlist_header", - "0x60": "nbt_query_response", - "0x61": "collect", - "0x62": "entity_teleport", - "0x63": "advancements", - "0x64": "entity_update_attributes", - "0x65": "entity_effect", - "0x66": "declare_recipes", - "0x67": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "sculk_vibration_signal", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "clear_titles", + "17": "tab_complete", + "18": "declare_commands", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "initialize_world_border", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "ping", + "49": "craft_recipe_response", + "50": "abilities", + "51": "end_combat_event", + "52": "enter_combat_event", + "53": "death_combat_event", + "54": "player_info", + "55": "face_player", + "56": "position", + "57": "unlock_recipes", + "58": "entity_destroy", + "59": "remove_entity_effect", + "60": "resource_pack_send", + "61": "respawn", + "62": "entity_head_rotation", + "63": "multi_block_change", + "64": "select_advancement_tab", + "65": "action_bar", + "66": "world_border_center", + "67": "world_border_lerp_size", + "68": "world_border_size", + "69": "world_border_warning_delay", + "70": "world_border_warning_reach", + "71": "camera", + "72": "held_item_slot", + "73": "update_view_position", + "74": "update_view_distance", + "75": "spawn_position", + "76": "scoreboard_display_objective", + "77": "entity_metadata", + "78": "attach_entity", + "79": "entity_velocity", + "80": "entity_equipment", + "81": "experience", + "82": "update_health", + "83": "scoreboard_objective", + "84": "set_passengers", + "85": "teams", + "86": "scoreboard_score", + "87": "simulation_distance", + "88": "set_title_subtitle", + "89": "update_time", + "90": "set_title_text", + "91": "set_title_time", + "92": "entity_sound_effect", + "93": "sound_effect", + "94": "stop_sound", + "95": "playerlist_header", + "96": "nbt_query_response", + "97": "collect", + "98": "entity_teleport", + "99": "advancements", + "100": "entity_update_attributes", + "101": "entity_effect", + "102": "declare_recipes", + "103": "tags" } } ] @@ -4730,7 +4741,8 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - } + }, + "default": "void" } ] } @@ -5594,7 +5606,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5619,54 +5632,54 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "generate_structure", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "pong", + "30": "recipe_book", + "31": "displayed_recipe", + "32": "name_item", + "33": "resource_pack_receive", + "34": "advancement_tab", + "35": "select_trade", + "36": "set_beacon_effect", + "37": "held_item_slot", + "38": "update_command_block", + "39": "update_command_block_minecart", + "40": "set_creative_slot", + "41": "update_jigsaw_block", + "42": "update_structure_block", + "43": "update_sign", + "44": "arm_animation", + "45": "spectate", + "46": "block_place", + "47": "use_item" } } ] @@ -5726,7 +5739,8 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - } + }, + "default": "void" } ] } @@ -5735,4 +5749,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.18/proto.yml b/data/pc/1.18/proto.yml new file mode 100644 index 000000000..03513b47c --- /dev/null +++ b/data/pc/1.18/proto.yml @@ -0,0 +1,1836 @@ +!version: 1.18 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 24: + blockState: varint + if 35: + item: slot + if 36: + origin: position + positionType: string + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + notTrustEdges: bool + records: varlong[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: nbt + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: nbt + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet_sculk_vibration_signal: + sourcePosition: position + destinationIdentifier: string + destination: destinationIdentifier ? + if block: position + if entityId: varint + default: void + arrivalTicks: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varlong + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varlong + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: sculk_vibration_signal + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: clear_titles + 0x11: tab_complete + 0x12: declare_commands + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: initialize_world_border + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: ping + 0x31: craft_recipe_response + 0x32: abilities + 0x33: end_combat_event + 0x34: enter_combat_event + 0x35: death_combat_event + 0x36: player_info + 0x37: face_player + 0x38: position + 0x39: unlock_recipes + 0x3a: entity_destroy + 0x3b: remove_entity_effect + 0x3c: resource_pack_send + 0x3d: respawn + 0x3e: entity_head_rotation + 0x3f: multi_block_change + 0x40: select_advancement_tab + 0x41: action_bar + 0x42: world_border_center + 0x43: world_border_lerp_size + 0x44: world_border_size + 0x45: world_border_warning_delay + 0x46: world_border_warning_reach + 0x47: camera + 0x48: held_item_slot + 0x49: update_view_position + 0x4a: update_view_distance + 0x4b: spawn_position + 0x4c: scoreboard_display_objective + 0x4d: entity_metadata + 0x4e: attach_entity + 0x4f: entity_velocity + 0x50: entity_equipment + 0x51: experience + 0x52: update_health + 0x53: scoreboard_objective + 0x54: set_passengers + 0x55: teams + 0x56: scoreboard_score + 0x57: simulation_distance + 0x58: set_title_subtitle + 0x59: update_time + 0x5a: set_title_text + 0x5b: set_title_time + 0x5c: entity_sound_effect + 0x5d: sound_effect + 0x5e: stop_sound + 0x5f: playerlist_header + 0x60: nbt_query_response + 0x61: collect + 0x62: entity_teleport + 0x63: advancements + 0x64: entity_update_attributes + 0x65: entity_effect + 0x66: declare_recipes + 0x67: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + if sculk_vibration_signal: packet_sculk_vibration_signal + if clear_titles: packet_clear_titles + if initialize_world_border: packet_initialize_world_border + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if ping: packet_ping + if set_title_subtitle: packet_set_title_subtitle + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: edit_book + 0x0c: query_entity_nbt + 0x0d: use_entity + 0x0e: generate_structure + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: pong + 0x1e: recipe_book + 0x1f: displayed_recipe + 0x20: name_item + 0x21: resource_pack_receive + 0x22: advancement_tab + 0x23: select_trade + 0x24: set_beacon_effect + 0x25: held_item_slot + 0x26: update_command_block + 0x27: update_command_block_minecart + 0x28: set_creative_slot + 0x29: update_jigsaw_block + 0x2a: update_structure_block + 0x2b: update_sign + 0x2c: arm_animation + 0x2d: spectate + 0x2e: block_place + 0x2f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if displayed_recipe: packet_displayed_recipe + if recipe_book: packet_recipe_book + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab + if pong: packet_pong diff --git a/data/pc/1.18/protocol.json b/data/pc/1.18/protocol.json index de6676f1b..e572944ee 100644 --- a/data/pc/1.18/protocol.json +++ b/data/pc/1.18/protocol.json @@ -66,7 +66,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -205,7 +206,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -311,7 +313,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -855,7 +858,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -874,7 +878,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -953,8 +958,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -968,7 +973,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1008,8 +1014,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1023,7 +1029,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1056,8 +1063,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1071,7 +1078,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1168,11 +1176,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1189,7 +1197,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1257,9 +1266,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1274,7 +1283,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -3894,8 +3904,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -3908,8 +3918,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4246,7 +4256,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4511,110 +4522,110 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "clear_titles", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "initialize_world_border", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "ping", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "end_combat_event", - "0x34": "enter_combat_event", - "0x35": "death_combat_event", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "action_bar", - "0x42": "world_border_center", - "0x43": "world_border_lerp_size", - "0x44": "world_border_size", - "0x45": "world_border_warning_delay", - "0x46": "world_border_warning_reach", - "0x47": "camera", - "0x48": "held_item_slot", - "0x49": "update_view_position", - "0x4a": "update_view_distance", - "0x4b": "spawn_position", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "simulation_distance", - "0x58": "set_title_subtitle", - "0x59": "update_time", - "0x5a": "set_title_text", - "0x5b": "set_title_time", - "0x5c": "entity_sound_effect", - "0x5d": "sound_effect", - "0x5e": "stop_sound", - "0x5f": "playerlist_header", - "0x60": "nbt_query_response", - "0x61": "collect", - "0x62": "entity_teleport", - "0x63": "advancements", - "0x64": "entity_update_attributes", - "0x65": "entity_effect", - "0x66": "declare_recipes", - "0x67": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "sculk_vibration_signal", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "clear_titles", + "17": "tab_complete", + "18": "declare_commands", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "initialize_world_border", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "ping", + "49": "craft_recipe_response", + "50": "abilities", + "51": "end_combat_event", + "52": "enter_combat_event", + "53": "death_combat_event", + "54": "player_info", + "55": "face_player", + "56": "position", + "57": "unlock_recipes", + "58": "entity_destroy", + "59": "remove_entity_effect", + "60": "resource_pack_send", + "61": "respawn", + "62": "entity_head_rotation", + "63": "multi_block_change", + "64": "select_advancement_tab", + "65": "action_bar", + "66": "world_border_center", + "67": "world_border_lerp_size", + "68": "world_border_size", + "69": "world_border_warning_delay", + "70": "world_border_warning_reach", + "71": "camera", + "72": "held_item_slot", + "73": "update_view_position", + "74": "update_view_distance", + "75": "spawn_position", + "76": "scoreboard_display_objective", + "77": "entity_metadata", + "78": "attach_entity", + "79": "entity_velocity", + "80": "entity_equipment", + "81": "experience", + "82": "update_health", + "83": "scoreboard_objective", + "84": "set_passengers", + "85": "teams", + "86": "scoreboard_score", + "87": "simulation_distance", + "88": "set_title_subtitle", + "89": "update_time", + "90": "set_title_text", + "91": "set_title_time", + "92": "entity_sound_effect", + "93": "sound_effect", + "94": "stop_sound", + "95": "playerlist_header", + "96": "nbt_query_response", + "97": "collect", + "98": "entity_teleport", + "99": "advancements", + "100": "entity_update_attributes", + "101": "entity_effect", + "102": "declare_recipes", + "103": "tags" } } ] @@ -4730,7 +4741,8 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - } + }, + "default": "void" } ] } @@ -5594,7 +5606,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5619,54 +5632,54 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "edit_book", - "0x0c": "query_entity_nbt", - "0x0d": "use_entity", - "0x0e": "generate_structure", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "pong", - "0x1e": "recipe_book", - "0x1f": "displayed_recipe", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "edit_book", + "12": "query_entity_nbt", + "13": "use_entity", + "14": "generate_structure", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "pong", + "30": "recipe_book", + "31": "displayed_recipe", + "32": "name_item", + "33": "resource_pack_receive", + "34": "advancement_tab", + "35": "select_trade", + "36": "set_beacon_effect", + "37": "held_item_slot", + "38": "update_command_block", + "39": "update_command_block_minecart", + "40": "set_creative_slot", + "41": "update_jigsaw_block", + "42": "update_structure_block", + "43": "update_sign", + "44": "arm_animation", + "45": "spectate", + "46": "block_place", + "47": "use_item" } } ] @@ -5726,7 +5739,8 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - } + }, + "default": "void" } ] } @@ -5735,4 +5749,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.19.2/proto.yml b/data/pc/1.19.2/proto.yml new file mode 100644 index 000000000..762f32239 --- /dev/null +++ b/data/pc/1.19.2/proto.yml @@ -0,0 +1,2085 @@ +!version: 1.19.2 + +^types: + varint: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 30: + rotation: f32 + if 39: + item: slot + if 40: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + default: void + entityEyeHeight: positionType ? + if minecraft:entity: varint + default: void + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 92: + delayInTicksBeforeShown: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + previousMessages: []varint + messageSender: UUID + messageSignature: [ + "buffer", + { + "countType": "varint" + } + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + if 19: varint + if 20: varint + if 21: [ + "option", + "string" + ] + if 22: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:message + 19: minecraft:nbt + 20: minecraft:nbt_tag + 21: minecraft:nbt_path + 22: minecraft:objective + 23: minecraft:objective_criteria + 24: minecraft:operation + 25: minecraft:particle + 26: minecraft:angle + 27: minecraft:rotation + 28: minecraft:scoreboard_slot + 29: minecraft:score_holder + 30: minecraft:swizzle + 31: minecraft:team + 32: minecraft:item_slot + 33: minecraft:resource_location + 34: minecraft:mob_effect + 35: minecraft:function + 36: minecraft:entity_anchor + 37: minecraft:int_range + 38: minecraft:float_range + 39: minecraft:item_enchantment + 40: minecraft:entity_summon + 41: minecraft:dimension + 42: minecraft:time + 43: minecraft:resource_or_tag + 44: minecraft:resource + 45: minecraft:template_mirror + 46: minecraft:template_rotation + 47: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + signature?: + timestamp: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + playerUUID?: UUID + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + hasVerifyToken: bool + crypto: hasVerifyToken ? + if true: + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + if false: + salt: i64 + messageSignature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_chat_preview: + queryId: i32 + message?: string + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + suppressLightUpdates: bool + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_chat_suggestions: + action: varint + entries: string[]varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_hide_message: + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + worldType: string + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []varint + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + previousSignature?: [ + "buffer", + { + "countType": "varint" + } + ] + senderUuid: UUID + signature: [ + "buffer", + { + "countType": "varint" + } + ] + plainMessage: string + formattedMessage?: string + timestamp: i64 + salt: i64 + previousMessages: previousMessages + unsignedChatContent?: string + filterType: varint + filterTypeMask: filterType ? + if 2: i64[]varint + default: void + type: varint + networkName: string + networkTargetName?: string + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + crypto: ../action ? + if 0: [ + "option", + [ + "container", + [ + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: i8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + death?: + dimensionName: string + location: position + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_should_display_chat_preview: + should_display_chat_preview: bool + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: string + isActionBar: bool + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: nbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd?: string + icon?: string + previewsChat: bool + enforcesSecureChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet_message_header: + previousSignature?: [ + "buffer", + { + "countType": "varint" + } + ] + senderUuid: UUID + signature: [ + "buffer", + { + "countType": "varint" + } + ] + messageHash: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: named_entity_spawn + 0x03: animation + 0x04: statistics + 0x05: acknowledge_player_digging + 0x06: block_break_animation + 0x07: tile_entity_data + 0x08: block_action + 0x09: block_change + 0x0a: boss_bar + 0x0b: difficulty + 0x0c: chat_preview + 0x0d: clear_titles + 0x0e: tab_complete + 0x0f: declare_commands + 0x10: close_window + 0x11: window_items + 0x12: craft_progress_bar + 0x13: set_slot + 0x14: set_cooldown + 0x15: chat_suggestions + 0x16: custom_payload + 0x17: named_sound_effect + 0x18: hide_message + 0x19: kick_disconnect + 0x1a: entity_status + 0x1b: explosion + 0x1c: unload_chunk + 0x1d: game_state_change + 0x1e: open_horse_window + 0x1f: initialize_world_border + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: vehicle_move + 0x2c: open_book + 0x2d: open_window + 0x2e: open_sign_entity + 0x2f: ping + 0x30: craft_recipe_response + 0x31: abilities + 0x32: message_header + 0x33: player_chat + 0x34: end_combat_event + 0x35: enter_combat_event + 0x36: death_combat_event + 0x37: player_info + 0x38: face_player + 0x39: position + 0x3a: unlock_recipes + 0x3b: entity_destroy + 0x3c: remove_entity_effect + 0x3d: resource_pack_send + 0x3e: respawn + 0x3f: entity_head_rotation + 0x40: multi_block_change + 0x41: select_advancement_tab + 0x42: server_data + 0x43: action_bar + 0x44: world_border_center + 0x45: world_border_lerp_size + 0x46: world_border_size + 0x47: world_border_warning_delay + 0x48: world_border_warning_reach + 0x49: camera + 0x4a: held_item_slot + 0x4b: update_view_position + 0x4c: update_view_distance + 0x4d: spawn_position + 0x4e: should_display_chat_preview + 0x4f: scoreboard_display_objective + 0x50: entity_metadata + 0x51: attach_entity + 0x52: entity_velocity + 0x53: entity_equipment + 0x54: experience + 0x55: update_health + 0x56: scoreboard_objective + 0x57: set_passengers + 0x58: teams + 0x59: scoreboard_score + 0x5a: simulation_distance + 0x5b: set_title_subtitle + 0x5c: update_time + 0x5d: set_title_text + 0x5e: set_title_time + 0x5f: entity_sound_effect + 0x60: sound_effect + 0x61: stop_sound + 0x62: system_chat + 0x63: playerlist_header + 0x64: nbt_query_response + 0x65: collect + 0x66: entity_teleport + 0x67: advancements + 0x68: entity_update_attributes + 0x69: entity_effect + 0x6a: declare_recipes + 0x6b: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if chat_preview: packet_chat_preview + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if chat_suggestions: packet_chat_suggestions + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if hide_message: packet_hide_message + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if message_header: packet_message_header + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if should_display_chat_preview: packet_should_display_chat_preview + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "countType": "varint" + } + ] + signedPreview: bool + previousMessages: previousMessages + lastRejectedMessage?: + sender: UUID + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature: [ + "buffer", + { + "countType": "varint" + } + ] + signedPreview: bool + previousMessages: previousMessages + lastRejectedMessage?: + sender: UUID + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_chat_preview: + query: i32 + message: string + packet_set_difficulty: + newDifficulty: u8 + packet_message_acknowledgement: + previousMessages: previousMessages + lastRejectedMessage?: + sender: UUID + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: message_acknowledgement + 0x04: chat_command + 0x05: chat_message + 0x06: chat_preview + 0x07: client_command + 0x08: settings + 0x09: tab_complete + 0x0a: enchant_item + 0x0b: window_click + 0x0c: close_window + 0x0d: custom_payload + 0x0e: edit_book + 0x0f: query_entity_nbt + 0x10: use_entity + 0x11: generate_structure + 0x12: keep_alive + 0x13: lock_difficulty + 0x14: position + 0x15: position_look + 0x16: look + 0x17: flying + 0x18: vehicle_move + 0x19: steer_boat + 0x1a: pick_item + 0x1b: craft_recipe_request + 0x1c: abilities + 0x1d: block_dig + 0x1e: entity_action + 0x1f: steer_vehicle + 0x20: pong + 0x21: recipe_book + 0x22: displayed_recipe + 0x23: name_item + 0x24: resource_pack_receive + 0x25: advancement_tab + 0x26: select_trade + 0x27: set_beacon_effect + 0x28: held_item_slot + 0x29: update_command_block + 0x2a: update_command_block_minecart + 0x2b: set_creative_slot + 0x2c: update_jigsaw_block + 0x2d: update_structure_block + 0x2e: update_sign + 0x2f: arm_animation + 0x30: spectate + 0x31: block_place + 0x32: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if chat_preview: packet_chat_preview + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.19.2/protocol.json b/data/pc/1.19.2/protocol.json index e210bb429..7dae3bddc 100644 --- a/data/pc/1.19.2/protocol.json +++ b/data/pc/1.19.2/protocol.json @@ -65,7 +65,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -235,7 +236,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -381,7 +383,8 @@ "string" ], "22": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -972,7 +975,8 @@ "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -991,7 +995,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1070,8 +1075,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1085,7 +1090,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1125,8 +1131,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1140,7 +1146,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1173,8 +1180,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1188,7 +1195,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1314,11 +1322,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1335,7 +1343,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1449,7 +1458,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1481,9 +1491,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1498,7 +1508,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -4268,8 +4279,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -4282,8 +4293,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4671,7 +4682,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4932,114 +4944,114 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "named_entity_spawn", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chat_preview", - "0x0d": "clear_titles", - "0x0e": "tab_complete", - "0x0f": "declare_commands", - "0x10": "close_window", - "0x11": "window_items", - "0x12": "craft_progress_bar", - "0x13": "set_slot", - "0x14": "set_cooldown", - "0x15": "chat_suggestions", - "0x16": "custom_payload", - "0x17": "named_sound_effect", - "0x18": "hide_message", - "0x19": "kick_disconnect", - "0x1a": "entity_status", - "0x1b": "explosion", - "0x1c": "unload_chunk", - "0x1d": "game_state_change", - "0x1e": "open_horse_window", - "0x1f": "initialize_world_border", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "vehicle_move", - "0x2c": "open_book", - "0x2d": "open_window", - "0x2e": "open_sign_entity", - "0x2f": "ping", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "message_header", - "0x33": "player_chat", - "0x34": "end_combat_event", - "0x35": "enter_combat_event", - "0x36": "death_combat_event", - "0x37": "player_info", - "0x38": "face_player", - "0x39": "position", - "0x3a": "unlock_recipes", - "0x3b": "entity_destroy", - "0x3c": "remove_entity_effect", - "0x3d": "resource_pack_send", - "0x3e": "respawn", - "0x3f": "entity_head_rotation", - "0x40": "multi_block_change", - "0x41": "select_advancement_tab", - "0x42": "server_data", - "0x43": "action_bar", - "0x44": "world_border_center", - "0x45": "world_border_lerp_size", - "0x46": "world_border_size", - "0x47": "world_border_warning_delay", - "0x48": "world_border_warning_reach", - "0x49": "camera", - "0x4a": "held_item_slot", - "0x4b": "update_view_position", - "0x4c": "update_view_distance", - "0x4d": "spawn_position", - "0x4e": "should_display_chat_preview", - "0x4f": "scoreboard_display_objective", - "0x50": "entity_metadata", - "0x51": "attach_entity", - "0x52": "entity_velocity", - "0x53": "entity_equipment", - "0x54": "experience", - "0x55": "update_health", - "0x56": "scoreboard_objective", - "0x57": "set_passengers", - "0x58": "teams", - "0x59": "scoreboard_score", - "0x5a": "simulation_distance", - "0x5b": "set_title_subtitle", - "0x5c": "update_time", - "0x5d": "set_title_text", - "0x5e": "set_title_time", - "0x5f": "entity_sound_effect", - "0x60": "sound_effect", - "0x61": "stop_sound", - "0x62": "system_chat", - "0x63": "playerlist_header", - "0x64": "nbt_query_response", - "0x65": "collect", - "0x66": "entity_teleport", - "0x67": "advancements", - "0x68": "entity_update_attributes", - "0x69": "entity_effect", - "0x6a": "declare_recipes", - "0x6b": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "named_entity_spawn", + "3": "animation", + "4": "statistics", + "5": "acknowledge_player_digging", + "6": "block_break_animation", + "7": "tile_entity_data", + "8": "block_action", + "9": "block_change", + "10": "boss_bar", + "11": "difficulty", + "12": "chat_preview", + "13": "clear_titles", + "14": "tab_complete", + "15": "declare_commands", + "16": "close_window", + "17": "window_items", + "18": "craft_progress_bar", + "19": "set_slot", + "20": "set_cooldown", + "21": "chat_suggestions", + "22": "custom_payload", + "23": "named_sound_effect", + "24": "hide_message", + "25": "kick_disconnect", + "26": "entity_status", + "27": "explosion", + "28": "unload_chunk", + "29": "game_state_change", + "30": "open_horse_window", + "31": "initialize_world_border", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "vehicle_move", + "44": "open_book", + "45": "open_window", + "46": "open_sign_entity", + "47": "ping", + "48": "craft_recipe_response", + "49": "abilities", + "50": "message_header", + "51": "player_chat", + "52": "end_combat_event", + "53": "enter_combat_event", + "54": "death_combat_event", + "55": "player_info", + "56": "face_player", + "57": "position", + "58": "unlock_recipes", + "59": "entity_destroy", + "60": "remove_entity_effect", + "61": "resource_pack_send", + "62": "respawn", + "63": "entity_head_rotation", + "64": "multi_block_change", + "65": "select_advancement_tab", + "66": "server_data", + "67": "action_bar", + "68": "world_border_center", + "69": "world_border_lerp_size", + "70": "world_border_size", + "71": "world_border_warning_delay", + "72": "world_border_warning_reach", + "73": "camera", + "74": "held_item_slot", + "75": "update_view_position", + "76": "update_view_distance", + "77": "spawn_position", + "78": "should_display_chat_preview", + "79": "scoreboard_display_objective", + "80": "entity_metadata", + "81": "attach_entity", + "82": "entity_velocity", + "83": "entity_equipment", + "84": "experience", + "85": "update_health", + "86": "scoreboard_objective", + "87": "set_passengers", + "88": "teams", + "89": "scoreboard_score", + "90": "simulation_distance", + "91": "set_title_subtitle", + "92": "update_time", + "93": "set_title_text", + "94": "set_title_time", + "95": "entity_sound_effect", + "96": "sound_effect", + "97": "stop_sound", + "98": "system_chat", + "99": "playerlist_header", + "100": "nbt_query_response", + "101": "collect", + "102": "entity_teleport", + "103": "advancements", + "104": "entity_update_attributes", + "105": "entity_effect", + "106": "declare_recipes", + "107": "tags" } } ] @@ -5159,7 +5171,8 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -6212,7 +6225,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -6237,57 +6251,57 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_preview", - "0x07": "client_command", - "0x08": "settings", - "0x09": "tab_complete", - "0x0a": "enchant_item", - "0x0b": "window_click", - "0x0c": "close_window", - "0x0d": "custom_payload", - "0x0e": "edit_book", - "0x0f": "query_entity_nbt", - "0x10": "use_entity", - "0x11": "generate_structure", - "0x12": "keep_alive", - "0x13": "lock_difficulty", - "0x14": "position", - "0x15": "position_look", - "0x16": "look", - "0x17": "flying", - "0x18": "vehicle_move", - "0x19": "steer_boat", - "0x1a": "pick_item", - "0x1b": "craft_recipe_request", - "0x1c": "abilities", - "0x1d": "block_dig", - "0x1e": "entity_action", - "0x1f": "steer_vehicle", - "0x20": "pong", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "message_acknowledgement", + "4": "chat_command", + "5": "chat_message", + "6": "chat_preview", + "7": "client_command", + "8": "settings", + "9": "tab_complete", + "10": "enchant_item", + "11": "window_click", + "12": "close_window", + "13": "custom_payload", + "14": "edit_book", + "15": "query_entity_nbt", + "16": "use_entity", + "17": "generate_structure", + "18": "keep_alive", + "19": "lock_difficulty", + "20": "position", + "21": "position_look", + "22": "look", + "23": "flying", + "24": "vehicle_move", + "25": "steer_boat", + "26": "pick_item", + "27": "craft_recipe_request", + "28": "abilities", + "29": "block_dig", + "30": "entity_action", + "31": "steer_vehicle", + "32": "pong", + "33": "recipe_book", + "34": "displayed_recipe", + "35": "name_item", + "36": "resource_pack_receive", + "37": "advancement_tab", + "38": "select_trade", + "39": "set_beacon_effect", + "40": "held_item_slot", + "41": "update_command_block", + "42": "update_command_block_minecart", + "43": "set_creative_slot", + "44": "update_jigsaw_block", + "45": "update_structure_block", + "46": "update_sign", + "47": "arm_animation", + "48": "spectate", + "49": "block_place", + "50": "use_item" } } ] @@ -6350,7 +6364,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -6359,4 +6374,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.19.3/proto.yml b/data/pc/1.19.3/proto.yml new file mode 100644 index 000000000..8fb3db655 --- /dev/null +++ b/data/pc/1.19.3/proto.yml @@ -0,0 +1,2322 @@ +!version: 1.19.3 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 30: + rotation: f32 + if 39: + item: slot + if 40: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + default: void + entityEyeHeight: positionType ? + if minecraft:entity: varint + default: void + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 92: + delayInTicksBeforeShown: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + soundSource: varint => + 0: master + 1: music + 2: record + 3: weather + 4: block + 5: hostile + 6: neutral + 7: player + 8: ambient + 9: voice + previousMessages: []varint + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: varlong + if 3: f32 + if 4: string + if 5: string + if 6: [ + "option", + "string" + ] + if 7: slot + if 8: bool + if 9: + pitch: f32 + yaw: f32 + roll: f32 + if 10: position + if 11: [ + "option", + "position" + ] + if 12: varint + if 13: [ + "option", + "UUID" + ] + if 14: varint + if 15: nbt + if 16: particle + if 17: + villagerType: varint + villagerProfession: varint + level: varint + if 18: optvarint + if 19: varint + if 20: varint + if 21: varint + if 22: [ + "option", + "string" + ] + if 23: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_simple_recipe_format: + category: varint + minecraft_smelting_format: + group: string + category: varint + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + chat_session?: + uuid: UUID + publicKey: + expireTime: i64 + keyBytes: [ + "buffer", + { + "countType": "varint" + } + ] + keySignature: [ + "buffer", + { + "countType": "varint" + } + ] + game_profile: + name: string + properties: []varint + key: string + value: string + signature?: string + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:message + 19: minecraft:nbt + 20: minecraft:nbt_tag + 21: minecraft:nbt_path + 22: minecraft:objective + 23: minecraft:objective_criteria + 24: minecraft:operation + 25: minecraft:particle + 26: minecraft:angle + 27: minecraft:rotation + 28: minecraft:scoreboard_slot + 29: minecraft:score_holder + 30: minecraft:swizzle + 31: minecraft:team + 32: minecraft:item_slot + 33: minecraft:resource_location + 34: minecraft:function + 35: minecraft:entity_anchor + 36: minecraft:int_range + 37: minecraft:float_range + 38: minecraft:dimension + 39: minecraft:gamemode + 40: minecraft:time + 41: minecraft:resource_or_tag + 42: minecraft:resource_or_tag_key + 43: minecraft:resource + 44: minecraft:resource_key + 45: minecraft:template_mirror + 46: minecraft:template_rotation + 47: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:dimension: void + if minecraft:gamemode: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource_or_tag_key: + registry: string + if minecraft:resource: + registry: string + if minecraft:resource_key: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + playerUUID?: UUID + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + suppressLightUpdates: bool + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_chat_suggestions: + action: varint + entries: string[]varint + packet_custom_payload: + channel: string + data: restBuffer + packet_hide_message: + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + packet_kick_disconnect: + reason: string + packet_profileless_chat: + message: string + type: varint + name: string + target?: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f64 + y: f64 + z: f64 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + worldType: string + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []varint + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + senderUuid: UUID + index: varint + signature?: [ + "buffer", + { + "count": 256 + } + ] + plainMessage: string + timestamp: i64 + salt: i64 + previousMessages: previousMessages + unsignedChatContent?: string + filterType: varint + filterTypeMask: filterType ? + if 2: i64[]varint + default: void + type: varint + networkName: string + networkTargetName?: string + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_remove: + players: UUID[]varint + packet_player_info: + action: i8 + data: []varint + uuid: UUID + player: ../action ? + if 1: game_profile + if 3: game_profile + if 5: game_profile + if 7: game_profile + if 9: game_profile + if 11: game_profile + if 13: game_profile + if 15: game_profile + if 17: game_profile + if 19: game_profile + if 21: game_profile + if 23: game_profile + if 25: game_profile + if 27: game_profile + if 29: game_profile + if 31: game_profile + if 33: game_profile + if 35: game_profile + if 37: game_profile + if 39: game_profile + if 41: game_profile + if 43: game_profile + if 45: game_profile + if 47: game_profile + if 49: game_profile + if 51: game_profile + if 53: game_profile + if 55: game_profile + if 57: game_profile + if 59: game_profile + if 61: game_profile + if 63: game_profile + default: void + chatSession: ../action ? + if 2: chat_session + if 3: chat_session + if 6: chat_session + if 7: chat_session + if 10: chat_session + if 11: chat_session + if 14: chat_session + if 15: chat_session + if 18: chat_session + if 19: chat_session + if 22: chat_session + if 23: chat_session + if 26: chat_session + if 27: chat_session + if 30: chat_session + if 31: chat_session + if 34: chat_session + if 35: chat_session + if 38: chat_session + if 39: chat_session + if 42: chat_session + if 43: chat_session + if 46: chat_session + if 47: chat_session + if 50: chat_session + if 51: chat_session + if 54: chat_session + if 55: chat_session + if 58: chat_session + if 59: chat_session + if 62: chat_session + if 63: chat_session + default: void + gamemode: ../action ? + if 4: varint + if 5: varint + if 6: varint + if 7: varint + if 12: varint + if 13: varint + if 14: varint + if 15: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 36: varint + if 37: varint + if 38: varint + if 39: varint + if 44: varint + if 45: varint + if 46: varint + if 47: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + listed: ../action ? + if 8: bool + if 9: bool + if 10: bool + if 11: bool + if 12: bool + if 13: bool + if 14: bool + if 15: bool + if 24: bool + if 25: bool + if 26: bool + if 27: bool + if 28: bool + if 29: bool + if 30: bool + if 31: bool + if 40: bool + if 41: bool + if 42: bool + if 43: bool + if 44: bool + if 45: bool + if 46: bool + if 47: bool + if 56: bool + if 57: bool + if 58: bool + if 59: bool + if 60: bool + if 61: bool + if 62: bool + if 63: bool + default: void + latency: ../action ? + if 16: varint + if 17: varint + if 18: varint + if 19: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 24: varint + if 25: varint + if 26: varint + if 27: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 48: varint + if 49: varint + if 50: varint + if 51: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 56: varint + if 57: varint + if 58: varint + if 59: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + displayName: ../action ? + if 32: [ + "option", + "string" + ] + if 33: [ + "option", + "string" + ] + if 34: [ + "option", + "string" + ] + if 35: [ + "option", + "string" + ] + if 36: [ + "option", + "string" + ] + if 37: [ + "option", + "string" + ] + if 38: [ + "option", + "string" + ] + if 39: [ + "option", + "string" + ] + if 40: [ + "option", + "string" + ] + if 41: [ + "option", + "string" + ] + if 42: [ + "option", + "string" + ] + if 43: [ + "option", + "string" + ] + if 44: [ + "option", + "string" + ] + if 45: [ + "option", + "string" + ] + if 46: [ + "option", + "string" + ] + if 47: [ + "option", + "string" + ] + if 48: [ + "option", + "string" + ] + if 49: [ + "option", + "string" + ] + if 50: [ + "option", + "string" + ] + if 51: [ + "option", + "string" + ] + if 52: [ + "option", + "string" + ] + if 53: [ + "option", + "string" + ] + if 54: [ + "option", + "string" + ] + if 55: [ + "option", + "string" + ] + if 56: [ + "option", + "string" + ] + if 57: [ + "option", + "string" + ] + if 58: [ + "option", + "string" + ] + if 59: [ + "option", + "string" + ] + if 60: [ + "option", + "string" + ] + if 61: [ + "option", + "string" + ] + if 62: [ + "option", + "string" + ] + if 63: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: i8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + death?: + dimensionName: string + location: position + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + totalExperience: varint + level: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: string + isActionBar: bool + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_feature_flags: + features: string[]varint + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: nbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd?: string + icon?: string + enforcesSecureChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + category: varint + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + category: varint + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: minecraft_simple_recipe_format + if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format + if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format + if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format + if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format + if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format + if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format + if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format + if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: named_entity_spawn + 0x03: animation + 0x04: statistics + 0x05: acknowledge_player_digging + 0x06: block_break_animation + 0x07: tile_entity_data + 0x08: block_action + 0x09: block_change + 0x0a: boss_bar + 0x0b: difficulty + 0x0c: clear_titles + 0x0d: tab_complete + 0x0e: declare_commands + 0x0f: close_window + 0x10: window_items + 0x11: craft_progress_bar + 0x12: set_slot + 0x13: set_cooldown + 0x14: chat_suggestions + 0x15: custom_payload + 0x16: hide_message + 0x17: kick_disconnect + 0x18: profileless_chat + 0x19: entity_status + 0x1a: explosion + 0x1b: unload_chunk + 0x1c: game_state_change + 0x1d: open_horse_window + 0x1e: initialize_world_border + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: update_light + 0x24: login + 0x25: map + 0x26: trade_list + 0x27: rel_entity_move + 0x28: entity_move_look + 0x29: entity_look + 0x2a: vehicle_move + 0x2b: open_book + 0x2c: open_window + 0x2d: open_sign_entity + 0x2e: ping + 0x2f: craft_recipe_response + 0x30: abilities + 0x31: player_chat + 0x32: end_combat_event + 0x33: enter_combat_event + 0x34: death_combat_event + 0x35: player_remove + 0x36: player_info + 0x37: face_player + 0x38: position + 0x39: unlock_recipes + 0x3a: entity_destroy + 0x3b: remove_entity_effect + 0x3c: resource_pack_send + 0x3d: respawn + 0x3e: entity_head_rotation + 0x3f: multi_block_change + 0x40: select_advancement_tab + 0x41: server_data + 0x42: action_bar + 0x43: world_border_center + 0x44: world_border_lerp_size + 0x45: world_border_size + 0x46: world_border_warning_delay + 0x47: world_border_warning_reach + 0x48: camera + 0x49: held_item_slot + 0x4a: update_view_position + 0x4b: update_view_distance + 0x4c: spawn_position + 0x4d: scoreboard_display_objective + 0x4e: entity_metadata + 0x4f: attach_entity + 0x50: entity_velocity + 0x51: entity_equipment + 0x52: experience + 0x53: update_health + 0x54: scoreboard_objective + 0x55: set_passengers + 0x56: teams + 0x57: scoreboard_score + 0x58: simulation_distance + 0x59: set_title_subtitle + 0x5a: update_time + 0x5b: set_title_text + 0x5c: set_title_time + 0x5d: entity_sound_effect + 0x5e: sound_effect + 0x5f: stop_sound + 0x60: system_chat + 0x61: playerlist_header + 0x62: nbt_query_response + 0x63: collect + 0x64: entity_teleport + 0x65: advancements + 0x66: entity_update_attributes + 0x67: feature_flags + 0x68: entity_effect + 0x69: declare_recipes + 0x6a: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if chat_suggestions: packet_chat_suggestions + if custom_payload: packet_custom_payload + if hide_message: packet_hide_message + if kick_disconnect: packet_kick_disconnect + if profileless_chat: packet_profileless_chat + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_remove: packet_player_remove + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if feature_flags: packet_feature_flags + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "count": 256 + } + ] + messageCount: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature?: [ + "buffer", + { + "count": 256 + } + ] + offset: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_set_difficulty: + newDifficulty: u8 + packet_message_acknowledgement: + count: varint + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet_chat_session_update: + sessionUUID: UUID + expireTime: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: message_acknowledgement + 0x04: chat_command + 0x05: chat_message + 0x06: client_command + 0x07: settings + 0x08: tab_complete + 0x09: enchant_item + 0x0a: window_click + 0x0b: close_window + 0x0c: custom_payload + 0x0d: edit_book + 0x0e: query_entity_nbt + 0x0f: use_entity + 0x10: generate_structure + 0x11: keep_alive + 0x12: lock_difficulty + 0x13: position + 0x14: position_look + 0x15: look + 0x16: flying + 0x17: vehicle_move + 0x18: steer_boat + 0x19: pick_item + 0x1a: craft_recipe_request + 0x1b: abilities + 0x1c: block_dig + 0x1d: entity_action + 0x1e: steer_vehicle + 0x1f: pong + 0x20: chat_session_update + 0x21: recipe_book + 0x22: displayed_recipe + 0x23: name_item + 0x24: resource_pack_receive + 0x25: advancement_tab + 0x26: select_trade + 0x27: set_beacon_effect + 0x28: held_item_slot + 0x29: update_command_block + 0x2a: update_command_block_minecart + 0x2b: set_creative_slot + 0x2c: update_jigsaw_block + 0x2d: update_structure_block + 0x2e: update_sign + 0x2f: arm_animation + 0x30: spectate + 0x31: block_place + 0x32: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if chat_session_update: packet_chat_session_update + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.19.3/protocol.json b/data/pc/1.19.3/protocol.json index 1ee516df5..52c5fcfef 100644 --- a/data/pc/1.19.3/protocol.json +++ b/data/pc/1.19.3/protocol.json @@ -66,7 +66,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -236,7 +237,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -410,7 +412,8 @@ "string" ], "23": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -1110,7 +1113,8 @@ "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -1129,7 +1133,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1208,8 +1213,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1223,7 +1228,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1263,8 +1269,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1278,7 +1284,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1311,8 +1318,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1326,7 +1333,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1452,11 +1460,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1473,7 +1481,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1511,7 +1520,7 @@ } ] }, - { + { "name": "verifyToken", "type": [ "buffer", @@ -1548,9 +1557,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1565,7 +1574,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -2415,10 +2425,10 @@ "packet_hide_message": [ "container", [ - { - "name": "id", - "type": "varint" - }, + { + "name": "id", + "type": "varint" + }, { "name": "signature", "type": [ @@ -2449,7 +2459,7 @@ ] ], "packet_profileless_chat": [ - "container", + "container", [ { "name": "message", @@ -3318,7 +3328,7 @@ "packet_player_chat": [ "container", [ - { + { "name": "senderUuid", "type": "UUID" }, @@ -3436,19 +3446,19 @@ ] ], "packet_player_remove": [ - "container", - [ - { - "name": "players", - "type": [ - "array", - { - "countType": "varint", - "type": "UUID" - } - ] - } - ] + "container", + [ + { + "name": "players", + "type": [ + "array", + { + "countType": "varint", + "type": "UUID" + } + ] + } + ] ], "packet_player_info": [ "container", @@ -3697,38 +3707,134 @@ { "compareTo": "../action", "fields": { - "32": ["option", "string"], - "33": ["option", "string"], - "34": ["option", "string"], - "35": ["option", "string"], - "36": ["option", "string"], - "37": ["option", "string"], - "38": ["option", "string"], - "39": ["option", "string"], - "40": ["option", "string"], - "41": ["option", "string"], - "42": ["option", "string"], - "43": ["option", "string"], - "44": ["option", "string"], - "45": ["option", "string"], - "46": ["option", "string"], - "47": ["option", "string"], - "48": ["option", "string"], - "49": ["option", "string"], - "50": ["option", "string"], - "51": ["option", "string"], - "52": ["option", "string"], - "53": ["option", "string"], - "54": ["option", "string"], - "55": ["option", "string"], - "56": ["option", "string"], - "57": ["option", "string"], - "58": ["option", "string"], - "59": ["option", "string"], - "60": ["option", "string"], - "61": ["option", "string"], - "62": ["option", "string"], - "63": ["option", "string"] + "32": [ + "option", + "string" + ], + "33": [ + "option", + "string" + ], + "34": [ + "option", + "string" + ], + "35": [ + "option", + "string" + ], + "36": [ + "option", + "string" + ], + "37": [ + "option", + "string" + ], + "38": [ + "option", + "string" + ], + "39": [ + "option", + "string" + ], + "40": [ + "option", + "string" + ], + "41": [ + "option", + "string" + ], + "42": [ + "option", + "string" + ], + "43": [ + "option", + "string" + ], + "44": [ + "option", + "string" + ], + "45": [ + "option", + "string" + ], + "46": [ + "option", + "string" + ], + "47": [ + "option", + "string" + ], + "48": [ + "option", + "string" + ], + "49": [ + "option", + "string" + ], + "50": [ + "option", + "string" + ], + "51": [ + "option", + "string" + ], + "52": [ + "option", + "string" + ], + "53": [ + "option", + "string" + ], + "54": [ + "option", + "string" + ], + "55": [ + "option", + "string" + ], + "56": [ + "option", + "string" + ], + "57": [ + "option", + "string" + ], + "58": [ + "option", + "string" + ], + "59": [ + "option", + "string" + ], + "60": [ + "option", + "string" + ], + "61": [ + "option", + "string" + ], + "62": [ + "option", + "string" + ], + "63": [ + "option", + "string" + ] }, "default": "void" } @@ -4445,8 +4551,8 @@ "type": "f32" }, { - "name": "seed", - "type": "i64" + "name": "seed", + "type": "i64" } ] ], @@ -4464,8 +4570,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -4478,8 +4584,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4686,19 +4792,19 @@ ] ], "packet_feature_flags": [ - "container", - [ - { - "name": "features", - "type": [ - "array", - { - "countType": "varint", - "type": "string" - } - ] - } - ] + "container", + [ + { + "name": "features", + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] + } + ] ], "packet_entity_effect": [ "container", @@ -4914,7 +5020,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5136,113 +5243,113 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "named_entity_spawn", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "clear_titles", - "0x0d": "tab_complete", - "0x0e": "declare_commands", - "0x0f": "close_window", - "0x10": "window_items", - "0x11": "craft_progress_bar", - "0x12": "set_slot", - "0x13": "set_cooldown", - "0x14": "chat_suggestions", - "0x15": "custom_payload", - "0x16": "hide_message", - "0x17": "kick_disconnect", - "0x18": "profileless_chat", - "0x19": "entity_status", - "0x1a": "explosion", - "0x1b": "unload_chunk", - "0x1c": "game_state_change", - "0x1d": "open_horse_window", - "0x1e": "initialize_world_border", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "update_light", - "0x24": "login", - "0x25": "map", - "0x26": "trade_list", - "0x27": "rel_entity_move", - "0x28": "entity_move_look", - "0x29": "entity_look", - "0x2a": "vehicle_move", - "0x2b": "open_book", - "0x2c": "open_window", - "0x2d": "open_sign_entity", - "0x2e": "ping", - "0x2f": "craft_recipe_response", - "0x30": "abilities", - "0x31": "player_chat", - "0x32": "end_combat_event", - "0x33": "enter_combat_event", - "0x34": "death_combat_event", - "0x35": "player_remove", - "0x36": "player_info", - "0x37": "face_player", - "0x38": "position", - "0x39": "unlock_recipes", - "0x3a": "entity_destroy", - "0x3b": "remove_entity_effect", - "0x3c": "resource_pack_send", - "0x3d": "respawn", - "0x3e": "entity_head_rotation", - "0x3f": "multi_block_change", - "0x40": "select_advancement_tab", - "0x41": "server_data", - "0x42": "action_bar", - "0x43": "world_border_center", - "0x44": "world_border_lerp_size", - "0x45": "world_border_size", - "0x46": "world_border_warning_delay", - "0x47": "world_border_warning_reach", - "0x48": "camera", - "0x49": "held_item_slot", - "0x4a": "update_view_position", - "0x4b": "update_view_distance", - "0x4c": "spawn_position", - "0x4d": "scoreboard_display_objective", - "0x4e": "entity_metadata", - "0x4f": "attach_entity", - "0x50": "entity_velocity", - "0x51": "entity_equipment", - "0x52": "experience", - "0x53": "update_health", - "0x54": "scoreboard_objective", - "0x55": "set_passengers", - "0x56": "teams", - "0x57": "scoreboard_score", - "0x58": "simulation_distance", - "0x59": "set_title_subtitle", - "0x5a": "update_time", - "0x5b": "set_title_text", - "0x5c": "set_title_time", - "0x5d": "entity_sound_effect", - "0x5e": "sound_effect", - "0x5f": "stop_sound", - "0x60": "system_chat", - "0x61": "playerlist_header", - "0x62": "nbt_query_response", - "0x63": "collect", - "0x64": "entity_teleport", - "0x65": "advancements", - "0x66": "entity_update_attributes", - "0x67": "feature_flags", - "0x68": "entity_effect", - "0x69": "declare_recipes", - "0x6a": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "named_entity_spawn", + "3": "animation", + "4": "statistics", + "5": "acknowledge_player_digging", + "6": "block_break_animation", + "7": "tile_entity_data", + "8": "block_action", + "9": "block_change", + "10": "boss_bar", + "11": "difficulty", + "12": "clear_titles", + "13": "tab_complete", + "14": "declare_commands", + "15": "close_window", + "16": "window_items", + "17": "craft_progress_bar", + "18": "set_slot", + "19": "set_cooldown", + "20": "chat_suggestions", + "21": "custom_payload", + "22": "hide_message", + "23": "kick_disconnect", + "24": "profileless_chat", + "25": "entity_status", + "26": "explosion", + "27": "unload_chunk", + "28": "game_state_change", + "29": "open_horse_window", + "30": "initialize_world_border", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "update_light", + "36": "login", + "37": "map", + "38": "trade_list", + "39": "rel_entity_move", + "40": "entity_move_look", + "41": "entity_look", + "42": "vehicle_move", + "43": "open_book", + "44": "open_window", + "45": "open_sign_entity", + "46": "ping", + "47": "craft_recipe_response", + "48": "abilities", + "49": "player_chat", + "50": "end_combat_event", + "51": "enter_combat_event", + "52": "death_combat_event", + "53": "player_remove", + "54": "player_info", + "55": "face_player", + "56": "position", + "57": "unlock_recipes", + "58": "entity_destroy", + "59": "remove_entity_effect", + "60": "resource_pack_send", + "61": "respawn", + "62": "entity_head_rotation", + "63": "multi_block_change", + "64": "select_advancement_tab", + "65": "server_data", + "66": "action_bar", + "67": "world_border_center", + "68": "world_border_lerp_size", + "69": "world_border_size", + "70": "world_border_warning_delay", + "71": "world_border_warning_reach", + "72": "camera", + "73": "held_item_slot", + "74": "update_view_position", + "75": "update_view_distance", + "76": "spawn_position", + "77": "scoreboard_display_objective", + "78": "entity_metadata", + "79": "attach_entity", + "80": "entity_velocity", + "81": "entity_equipment", + "82": "experience", + "83": "update_health", + "84": "scoreboard_objective", + "85": "set_passengers", + "86": "teams", + "87": "scoreboard_score", + "88": "simulation_distance", + "89": "set_title_subtitle", + "90": "update_time", + "91": "set_title_text", + "92": "set_title_time", + "93": "entity_sound_effect", + "94": "sound_effect", + "95": "stop_sound", + "96": "system_chat", + "97": "playerlist_header", + "98": "nbt_query_response", + "99": "collect", + "100": "entity_teleport", + "101": "advancements", + "102": "entity_update_attributes", + "103": "feature_flags", + "104": "entity_effect", + "105": "declare_recipes", + "106": "tags" } } ] @@ -5361,7 +5468,8 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -5424,10 +5532,10 @@ { "name": "signature", "type": [ - "buffer", - { - "count": 256 - } + "buffer", + { + "count": 256 + } ] } ] @@ -5442,10 +5550,10 @@ { "name": "acknowledged", "type": [ - "buffer", - { - "count": 3 - } + "buffer", + { + "count": 3 + } ] } ] @@ -5470,10 +5578,10 @@ "type": [ "option", [ - "buffer", - { - "count": 256 - } + "buffer", + { + "count": 256 + } ] ] }, @@ -5482,13 +5590,13 @@ "type": "varint" }, { - "name": "acknowledged", - "type": [ - "buffer", - { - "count": 3 - } - ] + "name": "acknowledged", + "type": [ + "buffer", + { + "count": 3 + } + ] } ] ], @@ -5505,10 +5613,10 @@ "container", [ { - "name": "count", - "type": "varint" + "name": "count", + "type": "varint" } - ] + ] ], "packet_edit_book": [ "container", @@ -6342,7 +6450,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -6358,35 +6467,35 @@ ] ], "packet_chat_session_update": [ - "container", - [ - { - "name": "sessionUUID", - "type": "UUID" - }, + "container", + [ + { + "name": "sessionUUID", + "type": "UUID" + }, { "name": "expireTime", "type": "i64" }, - { - "name": "publicKey", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - }, - { - "name": "signature", - "type": [ - "buffer", - { - "countType": "varint" - } - ] - } - ] + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] ], "packet": [ "container", @@ -6398,57 +6507,57 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "client_command", - "0x07": "settings", - "0x08": "tab_complete", - "0x09": "enchant_item", - "0x0a": "window_click", - "0x0b": "close_window", - "0x0c": "custom_payload", - "0x0d": "edit_book", - "0x0e": "query_entity_nbt", - "0x0f": "use_entity", - "0x10": "generate_structure", - "0x11": "keep_alive", - "0x12": "lock_difficulty", - "0x13": "position", - "0x14": "position_look", - "0x15": "look", - "0x16": "flying", - "0x17": "vehicle_move", - "0x18": "steer_boat", - "0x19": "pick_item", - "0x1a": "craft_recipe_request", - "0x1b": "abilities", - "0x1c": "block_dig", - "0x1d": "entity_action", - "0x1e": "steer_vehicle", - "0x1f": "pong", - "0x20": "chat_session_update", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "message_acknowledgement", + "4": "chat_command", + "5": "chat_message", + "6": "client_command", + "7": "settings", + "8": "tab_complete", + "9": "enchant_item", + "10": "window_click", + "11": "close_window", + "12": "custom_payload", + "13": "edit_book", + "14": "query_entity_nbt", + "15": "use_entity", + "16": "generate_structure", + "17": "keep_alive", + "18": "lock_difficulty", + "19": "position", + "20": "position_look", + "21": "look", + "22": "flying", + "23": "vehicle_move", + "24": "steer_boat", + "25": "pick_item", + "26": "craft_recipe_request", + "27": "abilities", + "28": "block_dig", + "29": "entity_action", + "30": "steer_vehicle", + "31": "pong", + "32": "chat_session_update", + "33": "recipe_book", + "34": "displayed_recipe", + "35": "name_item", + "36": "resource_pack_receive", + "37": "advancement_tab", + "38": "select_trade", + "39": "set_beacon_effect", + "40": "held_item_slot", + "41": "update_command_block", + "42": "update_command_block_minecart", + "43": "set_creative_slot", + "44": "update_jigsaw_block", + "45": "update_structure_block", + "46": "update_sign", + "47": "arm_animation", + "48": "spectate", + "49": "block_place", + "50": "use_item" } } ] @@ -6511,7 +6620,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -6520,4 +6630,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.19.4/proto.yml b/data/pc/1.19.4/proto.yml new file mode 100644 index 000000000..4bb8bc525 --- /dev/null +++ b/data/pc/1.19.4/proto.yml @@ -0,0 +1,2413 @@ +!version: 1.19.4 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + vec3f: + x: f32 + y: f32 + z: f32 + vec4f: + x: f32 + y: f32 + z: f32 + w: f32 + vec3f64: + x: f64 + y: f64 + z: f64 + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 33: + rotation: f32 + if 42: + item: slot + if 43: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + default: void + entityEyeHeight: positionType ? + if minecraft:entity: varint + default: void + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 95: + delayInTicksBeforeShown: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + packedChunkPos: + z: i32 + x: i32 + soundSource: varint => + 0: master + 1: music + 2: record + 3: weather + 4: block + 5: hostile + 6: neutral + 7: player + 8: ambient + 9: voice + previousMessages: []varint + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + entityMetadataItem: $compareTo ? + if byte: i8 + if int: varint + if long: varlong + if float: f32 + if string: string + if component: string + if optional_component: [ + "option", + "string" + ] + if item_stack: slot + if boolean: bool + if rotations: + pitch: f32 + yaw: f32 + roll: f32 + if block_pos: position + if optional_block_pos: [ + "option", + "position" + ] + if direction: varint + if optional_uuid: [ + "option", + "UUID" + ] + if block_state: varint + if optional_block_state: optvarint + if compound_tag: nbt + if particle: particle + if villager_data: + villagerType: varint + villagerProfession: varint + level: varint + if optional_unsigned_int: optvarint + if pose: varint + if cat_variant: varint + if frog_variant: varint + if optional_global_pos: [ + "option", + "string" + ] + if painting_variant: varint + if sniffer_state: varint + if vector3: vec3f + if quaternion: vec4f + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "type": "varint", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + } + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_simple_recipe_format: + category: varint + minecraft_smelting_format: + group: string + category: varint + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + chat_session?: + uuid: UUID + publicKey: + expireTime: i64 + keyBytes: [ + "buffer", + { + "countType": "varint" + } + ] + keySignature: [ + "buffer", + { + "countType": "varint" + } + ] + game_profile: + name: string + properties: []varint + key: string + value: string + signature?: string + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:message + 19: minecraft:nbt + 20: minecraft:nbt_tag + 21: minecraft:nbt_path + 22: minecraft:objective + 23: minecraft:objective_criteria + 24: minecraft:operation + 25: minecraft:particle + 26: minecraft:angle + 27: minecraft:rotation + 28: minecraft:scoreboard_slot + 29: minecraft:score_holder + 30: minecraft:swizzle + 31: minecraft:team + 32: minecraft:item_slot + 33: minecraft:resource_location + 34: minecraft:function + 35: minecraft:entity_anchor + 36: minecraft:int_range + 37: minecraft:float_range + 38: minecraft:dimension + 39: minecraft:gamemode + 40: minecraft:time + 41: minecraft:resource_or_tag + 42: minecraft:resource_or_tag_key + 43: minecraft:resource + 44: minecraft:resource_key + 45: minecraft:template_mirror + 46: minecraft:template_rotation + 47: minecraft:heightmap + 48: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:dimension: void + if minecraft:gamemode: void + if minecraft:time: + min: i32 + if minecraft:resource_or_tag: + registry: string + if minecraft:resource_or_tag_key: + registry: string + if minecraft:resource: + registry: string + if minecraft:resource_key: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:heightmap: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + playerUUID?: UUID + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + suppressLightUpdates: bool + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_chat_suggestions: + action: varint + entries: string[]varint + packet_custom_payload: + channel: string + data: restBuffer + packet_hide_message: + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + packet_kick_disconnect: + reason: string + packet_profileless_chat: + message: string + type: varint + name: string + target?: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f64 + y: f64 + z: f64 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + worldType: string + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []varint + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + senderUuid: UUID + index: varint + signature?: [ + "buffer", + { + "count": 256 + } + ] + plainMessage: string + timestamp: i64 + salt: i64 + previousMessages: previousMessages + unsignedChatContent?: string + filterType: varint + filterTypeMask: filterType ? + if 2: i64[]varint + default: void + type: varint + networkName: string + networkTargetName?: string + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_remove: + players: UUID[]varint + packet_player_info: + action: i8 + data: []varint + uuid: UUID + player: ../action ? + if 1: game_profile + if 3: game_profile + if 5: game_profile + if 7: game_profile + if 9: game_profile + if 11: game_profile + if 13: game_profile + if 15: game_profile + if 17: game_profile + if 19: game_profile + if 21: game_profile + if 23: game_profile + if 25: game_profile + if 27: game_profile + if 29: game_profile + if 31: game_profile + if 33: game_profile + if 35: game_profile + if 37: game_profile + if 39: game_profile + if 41: game_profile + if 43: game_profile + if 45: game_profile + if 47: game_profile + if 49: game_profile + if 51: game_profile + if 53: game_profile + if 55: game_profile + if 57: game_profile + if 59: game_profile + if 61: game_profile + if 63: game_profile + default: void + chatSession: ../action ? + if 2: chat_session + if 3: chat_session + if 6: chat_session + if 7: chat_session + if 10: chat_session + if 11: chat_session + if 14: chat_session + if 15: chat_session + if 18: chat_session + if 19: chat_session + if 22: chat_session + if 23: chat_session + if 26: chat_session + if 27: chat_session + if 30: chat_session + if 31: chat_session + if 34: chat_session + if 35: chat_session + if 38: chat_session + if 39: chat_session + if 42: chat_session + if 43: chat_session + if 46: chat_session + if 47: chat_session + if 50: chat_session + if 51: chat_session + if 54: chat_session + if 55: chat_session + if 58: chat_session + if 59: chat_session + if 62: chat_session + if 63: chat_session + default: void + gamemode: ../action ? + if 4: varint + if 5: varint + if 6: varint + if 7: varint + if 12: varint + if 13: varint + if 14: varint + if 15: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 36: varint + if 37: varint + if 38: varint + if 39: varint + if 44: varint + if 45: varint + if 46: varint + if 47: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + listed: ../action ? + if 8: bool + if 9: bool + if 10: bool + if 11: bool + if 12: bool + if 13: bool + if 14: bool + if 15: bool + if 24: bool + if 25: bool + if 26: bool + if 27: bool + if 28: bool + if 29: bool + if 30: bool + if 31: bool + if 40: bool + if 41: bool + if 42: bool + if 43: bool + if 44: bool + if 45: bool + if 46: bool + if 47: bool + if 56: bool + if 57: bool + if 58: bool + if 59: bool + if 60: bool + if 61: bool + if 62: bool + if 63: bool + default: void + latency: ../action ? + if 16: varint + if 17: varint + if 18: varint + if 19: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 24: varint + if 25: varint + if 26: varint + if 27: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 48: varint + if 49: varint + if 50: varint + if 51: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 56: varint + if 57: varint + if 58: varint + if 59: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + displayName: ../action ? + if 32: [ + "option", + "string" + ] + if 33: [ + "option", + "string" + ] + if 34: [ + "option", + "string" + ] + if 35: [ + "option", + "string" + ] + if 36: [ + "option", + "string" + ] + if 37: [ + "option", + "string" + ] + if 38: [ + "option", + "string" + ] + if 39: [ + "option", + "string" + ] + if 40: [ + "option", + "string" + ] + if 41: [ + "option", + "string" + ] + if 42: [ + "option", + "string" + ] + if 43: [ + "option", + "string" + ] + if 44: [ + "option", + "string" + ] + if 45: [ + "option", + "string" + ] + if 46: [ + "option", + "string" + ] + if 47: [ + "option", + "string" + ] + if 48: [ + "option", + "string" + ] + if 49: [ + "option", + "string" + ] + if 50: [ + "option", + "string" + ] + if 51: [ + "option", + "string" + ] + if 52: [ + "option", + "string" + ] + if 53: [ + "option", + "string" + ] + if 54: [ + "option", + "string" + ] + if 55: [ + "option", + "string" + ] + if 56: [ + "option", + "string" + ] + if 57: [ + "option", + "string" + ] + if 58: [ + "option", + "string" + ] + if 59: [ + "option", + "string" + ] + if 60: [ + "option", + "string" + ] + if 61: [ + "option", + "string" + ] + if 62: [ + "option", + "string" + ] + if 63: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: i8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + death?: + dimensionName: string + location: position + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + totalExperience: varint + level: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: string + isActionBar: bool + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_feature_flags: + features: string[]varint + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: nbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd: string + iconBytes?: [ + "buffer", + { + "countType": "varint" + } + ] + enforcesSecureChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + category: varint + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + category: varint + ingredients: []$width + _: ingredient[]$height + result: slot + showNotification: bool + if minecraft:crafting_special_armordye: minecraft_simple_recipe_format + if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format + if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format + if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format + if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format + if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format + if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format + if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format + if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + if minecraft:smithing_transform: + template: ingredient + base: ingredient + addition: ingredient + result: slot + if minecraft:smithing_trim: + template: ingredient + base: ingredient + addition: ingredient + if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet_chunk_biomes: + biomes: []varint + position: packedChunkPos + data: [ + "buffer", + { + "countType": "varint" + } + ] + packet_damage_event: + entityId: varint + sourceTypeId: varint + sourceCauseId: varint + sourceDirectId: varint + sourcePosition?: vec3f64 + packet_hurt_animation: + entityId: varint + yaw: f32 + packet: + name: varint => + 0x00: bundle_delimiter + 0x01: spawn_entity + 0x02: spawn_entity_experience_orb + 0x03: named_entity_spawn + 0x04: animation + 0x05: statistics + 0x06: acknowledge_player_digging + 0x07: block_break_animation + 0x08: tile_entity_data + 0x09: block_action + 0x0a: block_change + 0x0b: boss_bar + 0x0c: difficulty + 0x0d: chunk_biomes + 0x0e: clear_titles + 0x0f: tab_complete + 0x10: declare_commands + 0x11: close_window + 0x12: window_items + 0x13: craft_progress_bar + 0x14: set_slot + 0x15: set_cooldown + 0x16: chat_suggestions + 0x17: custom_payload + 0x18: damage_event + 0x19: hide_message + 0x1a: kick_disconnect + 0x1b: profileless_chat + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: open_horse_window + 0x21: hurt_animation + 0x22: initialize_world_border + 0x23: keep_alive + 0x24: map_chunk + 0x25: world_event + 0x26: world_particles + 0x27: update_light + 0x28: login + 0x29: map + 0x2a: trade_list + 0x2b: rel_entity_move + 0x2c: entity_move_look + 0x2d: entity_look + 0x2e: vehicle_move + 0x2f: open_book + 0x30: open_window + 0x31: open_sign_entity + 0x32: ping + 0x33: craft_recipe_response + 0x34: abilities + 0x35: player_chat + 0x36: end_combat_event + 0x37: enter_combat_event + 0x38: death_combat_event + 0x39: player_remove + 0x3a: player_info + 0x3b: face_player + 0x3c: position + 0x3d: unlock_recipes + 0x3e: entity_destroy + 0x3f: remove_entity_effect + 0x40: resource_pack_send + 0x41: respawn + 0x42: entity_head_rotation + 0x43: multi_block_change + 0x44: select_advancement_tab + 0x45: server_data + 0x46: action_bar + 0x47: world_border_center + 0x48: world_border_lerp_size + 0x49: world_border_size + 0x4a: world_border_warning_delay + 0x4b: world_border_warning_reach + 0x4c: camera + 0x4d: held_item_slot + 0x4e: update_view_position + 0x4f: update_view_distance + 0x50: spawn_position + 0x51: scoreboard_display_objective + 0x52: entity_metadata + 0x53: attach_entity + 0x54: entity_velocity + 0x55: entity_equipment + 0x56: experience + 0x57: update_health + 0x58: scoreboard_objective + 0x59: set_passengers + 0x5a: teams + 0x5b: scoreboard_score + 0x5c: simulation_distance + 0x5d: set_title_subtitle + 0x5e: update_time + 0x5f: set_title_text + 0x60: set_title_time + 0x61: entity_sound_effect + 0x62: sound_effect + 0x63: stop_sound + 0x64: system_chat + 0x65: playerlist_header + 0x66: nbt_query_response + 0x67: collect + 0x68: entity_teleport + 0x69: advancements + 0x6a: entity_update_attributes + 0x6b: feature_flags + 0x6c: entity_effect + 0x6d: declare_recipes + 0x6e: tags + params: name ? + if bundle_delimiter: void + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if chunk_biomes: packet_chunk_biomes + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if chat_suggestions: packet_chat_suggestions + if custom_payload: packet_custom_payload + if damage_event: packet_damage_event + if hide_message: packet_hide_message + if kick_disconnect: packet_kick_disconnect + if profileless_chat: packet_profileless_chat + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if hurt_animation: packet_hurt_animation + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_remove: packet_player_remove + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if feature_flags: packet_feature_flags + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "count": 256 + } + ] + messageCount: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature?: [ + "buffer", + { + "count": 256 + } + ] + offset: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_set_difficulty: + newDifficulty: u8 + packet_message_acknowledgement: + count: varint + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet_chat_session_update: + sessionUUID: UUID + expireTime: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: message_acknowledgement + 0x04: chat_command + 0x05: chat_message + 0x06: chat_session_update + 0x07: client_command + 0x08: settings + 0x09: tab_complete + 0x0a: enchant_item + 0x0b: window_click + 0x0c: close_window + 0x0d: custom_payload + 0x0e: edit_book + 0x0f: query_entity_nbt + 0x10: use_entity + 0x11: generate_structure + 0x12: keep_alive + 0x13: lock_difficulty + 0x14: position + 0x15: position_look + 0x16: look + 0x17: flying + 0x18: vehicle_move + 0x19: steer_boat + 0x1a: pick_item + 0x1b: craft_recipe_request + 0x1c: abilities + 0x1d: block_dig + 0x1e: entity_action + 0x1f: steer_vehicle + 0x20: pong + 0x21: recipe_book + 0x22: displayed_recipe + 0x23: name_item + 0x24: resource_pack_receive + 0x25: advancement_tab + 0x26: select_trade + 0x27: set_beacon_effect + 0x28: held_item_slot + 0x29: update_command_block + 0x2a: update_command_block_minecart + 0x2b: set_creative_slot + 0x2c: update_jigsaw_block + 0x2d: update_structure_block + 0x2e: update_sign + 0x2f: arm_animation + 0x30: spectate + 0x31: block_place + 0x32: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if chat_session_update: packet_chat_session_update + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.19.4/protocol.json b/data/pc/1.19.4/protocol.json index ecd0cf60f..114a7e3ea 100644 --- a/data/pc/1.19.4/protocol.json +++ b/data/pc/1.19.4/protocol.json @@ -121,7 +121,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -291,7 +292,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -482,7 +484,8 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -1219,7 +1222,8 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -1238,7 +1242,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1317,8 +1322,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1332,7 +1337,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1372,8 +1378,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1387,7 +1393,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1420,8 +1427,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1435,7 +1442,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1561,11 +1569,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1582,7 +1590,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1657,9 +1666,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1674,7 +1683,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -5160,7 +5170,8 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } + }, + "default": "void" } ] } @@ -5455,117 +5466,117 @@ { "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "named_entity_spawn", - "0x04": "animation", - "0x05": "statistics", - "0x06": "acknowledge_player_digging", - "0x07": "block_break_animation", - "0x08": "tile_entity_data", - "0x09": "block_action", - "0x0a": "block_change", - "0x0b": "boss_bar", - "0x0c": "difficulty", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "set_cooldown", - "0x16": "chat_suggestions", - "0x17": "custom_payload", - "0x18": "damage_event", - "0x19": "hide_message", - "0x1a": "kick_disconnect", - "0x1b": "profileless_chat", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "hurt_animation", - "0x22": "initialize_world_border", - "0x23": "keep_alive", - "0x24": "map_chunk", - "0x25": "world_event", - "0x26": "world_particles", - "0x27": "update_light", - "0x28": "login", - "0x29": "map", - "0x2a": "trade_list", - "0x2b": "rel_entity_move", - "0x2c": "entity_move_look", - "0x2d": "entity_look", - "0x2e": "vehicle_move", - "0x2f": "open_book", - "0x30": "open_window", - "0x31": "open_sign_entity", - "0x32": "ping", - "0x33": "craft_recipe_response", - "0x34": "abilities", - "0x35": "player_chat", - "0x36": "end_combat_event", - "0x37": "enter_combat_event", - "0x38": "death_combat_event", - "0x39": "player_remove", - "0x3a": "player_info", - "0x3b": "face_player", - "0x3c": "position", - "0x3d": "unlock_recipes", - "0x3e": "entity_destroy", - "0x3f": "remove_entity_effect", - "0x40": "resource_pack_send", - "0x41": "respawn", - "0x42": "entity_head_rotation", - "0x43": "multi_block_change", - "0x44": "select_advancement_tab", - "0x45": "server_data", - "0x46": "action_bar", - "0x47": "world_border_center", - "0x48": "world_border_lerp_size", - "0x49": "world_border_size", - "0x4a": "world_border_warning_delay", - "0x4b": "world_border_warning_reach", - "0x4c": "camera", - "0x4d": "held_item_slot", - "0x4e": "update_view_position", - "0x4f": "update_view_distance", - "0x50": "spawn_position", - "0x51": "scoreboard_display_objective", - "0x52": "entity_metadata", - "0x53": "attach_entity", - "0x54": "entity_velocity", - "0x55": "entity_equipment", - "0x56": "experience", - "0x57": "update_health", - "0x58": "scoreboard_objective", - "0x59": "set_passengers", - "0x5a": "teams", - "0x5b": "scoreboard_score", - "0x5c": "simulation_distance", - "0x5d": "set_title_subtitle", - "0x5e": "update_time", - "0x5f": "set_title_text", - "0x60": "set_title_time", - "0x61": "entity_sound_effect", - "0x62": "sound_effect", - "0x63": "stop_sound", - "0x64": "system_chat", - "0x65": "playerlist_header", - "0x66": "nbt_query_response", - "0x67": "collect", - "0x68": "entity_teleport", - "0x69": "advancements", - "0x6a": "entity_update_attributes", - "0x6b": "feature_flags", - "0x6c": "entity_effect", - "0x6d": "declare_recipes", - "0x6e": "tags" + "0": "bundle_delimiter", + "1": "spawn_entity", + "2": "spawn_entity_experience_orb", + "3": "named_entity_spawn", + "4": "animation", + "5": "statistics", + "6": "acknowledge_player_digging", + "7": "block_break_animation", + "8": "tile_entity_data", + "9": "block_action", + "10": "block_change", + "11": "boss_bar", + "12": "difficulty", + "13": "chunk_biomes", + "14": "clear_titles", + "15": "tab_complete", + "16": "declare_commands", + "17": "close_window", + "18": "window_items", + "19": "craft_progress_bar", + "20": "set_slot", + "21": "set_cooldown", + "22": "chat_suggestions", + "23": "custom_payload", + "24": "damage_event", + "25": "hide_message", + "26": "kick_disconnect", + "27": "profileless_chat", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "open_horse_window", + "33": "hurt_animation", + "34": "initialize_world_border", + "35": "keep_alive", + "36": "map_chunk", + "37": "world_event", + "38": "world_particles", + "39": "update_light", + "40": "login", + "41": "map", + "42": "trade_list", + "43": "rel_entity_move", + "44": "entity_move_look", + "45": "entity_look", + "46": "vehicle_move", + "47": "open_book", + "48": "open_window", + "49": "open_sign_entity", + "50": "ping", + "51": "craft_recipe_response", + "52": "abilities", + "53": "player_chat", + "54": "end_combat_event", + "55": "enter_combat_event", + "56": "death_combat_event", + "57": "player_remove", + "58": "player_info", + "59": "face_player", + "60": "position", + "61": "unlock_recipes", + "62": "entity_destroy", + "63": "remove_entity_effect", + "64": "resource_pack_send", + "65": "respawn", + "66": "entity_head_rotation", + "67": "multi_block_change", + "68": "select_advancement_tab", + "69": "server_data", + "70": "action_bar", + "71": "world_border_center", + "72": "world_border_lerp_size", + "73": "world_border_size", + "74": "world_border_warning_delay", + "75": "world_border_warning_reach", + "76": "camera", + "77": "held_item_slot", + "78": "update_view_position", + "79": "update_view_distance", + "80": "spawn_position", + "81": "scoreboard_display_objective", + "82": "entity_metadata", + "83": "attach_entity", + "84": "entity_velocity", + "85": "entity_equipment", + "86": "experience", + "87": "update_health", + "88": "scoreboard_objective", + "89": "set_passengers", + "90": "teams", + "91": "scoreboard_score", + "92": "simulation_distance", + "93": "set_title_subtitle", + "94": "update_time", + "95": "set_title_text", + "96": "set_title_time", + "97": "entity_sound_effect", + "98": "sound_effect", + "99": "stop_sound", + "100": "system_chat", + "101": "playerlist_header", + "102": "nbt_query_response", + "103": "collect", + "104": "entity_teleport", + "105": "advancements", + "106": "entity_update_attributes", + "107": "feature_flags", + "108": "entity_effect", + "109": "declare_recipes", + "110": "tags" } } ] @@ -5688,7 +5699,8 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -6669,7 +6681,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -6725,57 +6738,57 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "client_command", - "0x08": "settings", - "0x09": "tab_complete", - "0x0a": "enchant_item", - "0x0b": "window_click", - "0x0c": "close_window", - "0x0d": "custom_payload", - "0x0e": "edit_book", - "0x0f": "query_entity_nbt", - "0x10": "use_entity", - "0x11": "generate_structure", - "0x12": "keep_alive", - "0x13": "lock_difficulty", - "0x14": "position", - "0x15": "position_look", - "0x16": "look", - "0x17": "flying", - "0x18": "vehicle_move", - "0x19": "steer_boat", - "0x1a": "pick_item", - "0x1b": "craft_recipe_request", - "0x1c": "abilities", - "0x1d": "block_dig", - "0x1e": "entity_action", - "0x1f": "steer_vehicle", - "0x20": "pong", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "message_acknowledgement", + "4": "chat_command", + "5": "chat_message", + "6": "chat_session_update", + "7": "client_command", + "8": "settings", + "9": "tab_complete", + "10": "enchant_item", + "11": "window_click", + "12": "close_window", + "13": "custom_payload", + "14": "edit_book", + "15": "query_entity_nbt", + "16": "use_entity", + "17": "generate_structure", + "18": "keep_alive", + "19": "lock_difficulty", + "20": "position", + "21": "position_look", + "22": "look", + "23": "flying", + "24": "vehicle_move", + "25": "steer_boat", + "26": "pick_item", + "27": "craft_recipe_request", + "28": "abilities", + "29": "block_dig", + "30": "entity_action", + "31": "steer_vehicle", + "32": "pong", + "33": "recipe_book", + "34": "displayed_recipe", + "35": "name_item", + "36": "resource_pack_receive", + "37": "advancement_tab", + "38": "select_trade", + "39": "set_beacon_effect", + "40": "held_item_slot", + "41": "update_command_block", + "42": "update_command_block_minecart", + "43": "set_creative_slot", + "44": "update_jigsaw_block", + "45": "update_structure_block", + "46": "update_sign", + "47": "arm_animation", + "48": "spectate", + "49": "block_place", + "50": "use_item" } } ] @@ -6838,7 +6851,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } diff --git a/data/pc/1.19/proto.yml b/data/pc/1.19/proto.yml new file mode 100644 index 000000000..01a11e392 --- /dev/null +++ b/data/pc/1.19/proto.yml @@ -0,0 +1,1990 @@ +!version: 1.19 + +^types: + varint: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 30: + rotation: f32 + if 39: + item: slot + if 40: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + default: void + entityEyeHeight: positionType ? + if minecraft:entity: varint + default: void + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 92: + delayInTicksBeforeShown: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:message + 19: minecraft:nbt + 20: minecraft:nbt_tag + 21: minecraft:nbt_path + 22: minecraft:objective + 23: minecraft:objective_criteria + 24: minecraft:operation + 25: minecraft:particle + 26: minecraft:angle + 27: minecraft:rotation + 28: minecraft:scoreboard_slot + 29: minecraft:score_holder + 30: minecraft:swizzle + 31: minecraft:team + 32: minecraft:item_slot + 33: minecraft:resource_location + 34: minecraft:mob_effect + 35: minecraft:function + 36: minecraft:entity_anchor + 37: minecraft:int_range + 38: minecraft:float_range + 39: minecraft:item_enchantment + 40: minecraft:entity_summon + 41: minecraft:dimension + 42: minecraft:time + 43: minecraft:resource_or_tag + 44: minecraft:resource + 45: minecraft:template_mirror + 46: minecraft:template_rotation + 47: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + signature?: + timestamp: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + hasVerifyToken: bool + crypto: hasVerifyToken ? + if true: + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + if false: + salt: i64 + messageSignature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_chat_preview: + queryId: i32 + message?: string + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + notTrustEdges: bool + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + worldType: string + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + signedChatContent: string + unsignedChatContent?: string + type: varint + senderUuid: UUID + senderName: string + senderTeam?: string + timestamp: i64 + salt: i64 + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_end_combat_event: + duration: varint + entityId: i32 + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + entityId: i32 + message: string + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + crypto: ../action ? + if 0: [ + "option", + [ + "container", + [ + { + "name": "timestamp", + "type": "i64" + }, + { + "name": "publicKey", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + }, + { + "name": "signature", + "type": [ + "buffer", + { + "countType": "varint" + } + ] + } + ] + ] + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + death?: + dimensionName: string + location: position + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_should_display_chat_preview: + should_display_chat_preview: bool + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: string + type: varint + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: nbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd?: string + icon?: string + previewsChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: named_entity_spawn + 0x03: animation + 0x04: statistics + 0x05: acknowledge_player_digging + 0x06: block_break_animation + 0x07: tile_entity_data + 0x08: block_action + 0x09: block_change + 0x0a: boss_bar + 0x0b: difficulty + 0x0c: chat_preview + 0x0d: clear_titles + 0x0e: tab_complete + 0x0f: declare_commands + 0x10: close_window + 0x11: window_items + 0x12: craft_progress_bar + 0x13: set_slot + 0x14: set_cooldown + 0x15: custom_payload + 0x16: named_sound_effect + 0x17: kick_disconnect + 0x18: entity_status + 0x19: explosion + 0x1a: unload_chunk + 0x1b: game_state_change + 0x1c: open_horse_window + 0x1d: initialize_world_border + 0x1e: keep_alive + 0x1f: map_chunk + 0x20: world_event + 0x21: world_particles + 0x22: update_light + 0x23: login + 0x24: map + 0x25: trade_list + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: vehicle_move + 0x2a: open_book + 0x2b: open_window + 0x2c: open_sign_entity + 0x2d: ping + 0x2e: craft_recipe_response + 0x2f: abilities + 0x30: player_chat + 0x31: end_combat_event + 0x32: enter_combat_event + 0x33: death_combat_event + 0x34: player_info + 0x35: face_player + 0x36: position + 0x37: unlock_recipes + 0x38: entity_destroy + 0x39: remove_entity_effect + 0x3a: resource_pack_send + 0x3b: respawn + 0x3c: entity_head_rotation + 0x3d: multi_block_change + 0x3e: select_advancement_tab + 0x3f: server_data + 0x40: action_bar + 0x41: world_border_center + 0x42: world_border_lerp_size + 0x43: world_border_size + 0x44: world_border_warning_delay + 0x45: world_border_warning_reach + 0x46: camera + 0x47: held_item_slot + 0x48: update_view_position + 0x49: update_view_distance + 0x4a: spawn_position + 0x4b: should_display_chat_preview + 0x4c: scoreboard_display_objective + 0x4d: entity_metadata + 0x4e: attach_entity + 0x4f: entity_velocity + 0x50: entity_equipment + 0x51: experience + 0x52: update_health + 0x53: scoreboard_objective + 0x54: set_passengers + 0x55: teams + 0x56: scoreboard_score + 0x57: simulation_distance + 0x58: set_title_subtitle + 0x59: update_time + 0x5a: set_title_text + 0x5b: set_title_time + 0x5c: entity_sound_effect + 0x5d: sound_effect + 0x5e: stop_sound + 0x5f: system_chat + 0x60: playerlist_header + 0x61: nbt_query_response + 0x62: collect + 0x63: entity_teleport + 0x64: advancements + 0x65: entity_update_attributes + 0x66: entity_effect + 0x67: declare_recipes + 0x68: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if chat_preview: packet_chat_preview + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if should_display_chat_preview: packet_should_display_chat_preview + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "countType": "varint" + } + ] + signedPreview: bool + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature: [ + "buffer", + { + "countType": "varint" + } + ] + signedPreview: bool + packet_chat_preview: + query: i32 + message: string + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat_command + 0x04: chat_message + 0x05: chat_preview + 0x06: client_command + 0x07: settings + 0x08: tab_complete + 0x09: enchant_item + 0x0a: window_click + 0x0b: close_window + 0x0c: custom_payload + 0x0d: edit_book + 0x0e: query_entity_nbt + 0x0f: use_entity + 0x10: generate_structure + 0x11: keep_alive + 0x12: lock_difficulty + 0x13: position + 0x14: position_look + 0x15: look + 0x16: flying + 0x17: vehicle_move + 0x18: steer_boat + 0x19: pick_item + 0x1a: craft_recipe_request + 0x1b: abilities + 0x1c: block_dig + 0x1d: entity_action + 0x1e: steer_vehicle + 0x1f: pong + 0x20: recipe_book + 0x21: displayed_recipe + 0x22: name_item + 0x23: resource_pack_receive + 0x24: advancement_tab + 0x25: select_trade + 0x26: set_beacon_effect + 0x27: held_item_slot + 0x28: update_command_block + 0x29: update_command_block_minecart + 0x2a: set_creative_slot + 0x2b: update_jigsaw_block + 0x2c: update_structure_block + 0x2d: update_sign + 0x2e: arm_animation + 0x2f: spectate + 0x30: block_place + 0x31: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if chat_preview: packet_chat_preview + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.19/protocol.json b/data/pc/1.19/protocol.json index fdd983d9d..96a511dd3 100644 --- a/data/pc/1.19/protocol.json +++ b/data/pc/1.19/protocol.json @@ -65,7 +65,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -235,7 +236,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -350,7 +352,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -941,7 +944,8 @@ "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -960,7 +964,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1039,8 +1044,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1054,7 +1059,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1094,8 +1100,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1109,7 +1115,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1142,8 +1149,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1157,7 +1164,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1283,11 +1291,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1304,7 +1312,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1411,7 +1420,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1443,9 +1453,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1460,7 +1470,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -4151,8 +4162,8 @@ { "compareTo": "flags", "fields": { - "3": "varint", - "1": "varint" + "1": "varint", + "3": "varint" }, "default": "void" } @@ -4165,8 +4176,8 @@ { "compareTo": "flags", "fields": { - "3": "string", - "2": "string" + "2": "string", + "3": "string" }, "default": "void" } @@ -4550,7 +4561,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4772,111 +4784,111 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "named_entity_spawn", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chat_preview", - "0x0d": "clear_titles", - "0x0e": "tab_complete", - "0x0f": "declare_commands", - "0x10": "close_window", - "0x11": "window_items", - "0x12": "craft_progress_bar", - "0x13": "set_slot", - "0x14": "set_cooldown", - "0x15": "custom_payload", - "0x16": "named_sound_effect", - "0x17": "kick_disconnect", - "0x18": "entity_status", - "0x19": "explosion", - "0x1a": "unload_chunk", - "0x1b": "game_state_change", - "0x1c": "open_horse_window", - "0x1d": "initialize_world_border", - "0x1e": "keep_alive", - "0x1f": "map_chunk", - "0x20": "world_event", - "0x21": "world_particles", - "0x22": "update_light", - "0x23": "login", - "0x24": "map", - "0x25": "trade_list", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "vehicle_move", - "0x2a": "open_book", - "0x2b": "open_window", - "0x2c": "open_sign_entity", - "0x2d": "ping", - "0x2e": "craft_recipe_response", - "0x2f": "abilities", - "0x30": "player_chat", - "0x31": "end_combat_event", - "0x32": "enter_combat_event", - "0x33": "death_combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "multi_block_change", - "0x3e": "select_advancement_tab", - "0x3f": "server_data", - "0x40": "action_bar", - "0x41": "world_border_center", - "0x42": "world_border_lerp_size", - "0x43": "world_border_size", - "0x44": "world_border_warning_delay", - "0x45": "world_border_warning_reach", - "0x46": "camera", - "0x47": "held_item_slot", - "0x48": "update_view_position", - "0x49": "update_view_distance", - "0x4a": "spawn_position", - "0x4b": "should_display_chat_preview", - "0x4c": "scoreboard_display_objective", - "0x4d": "entity_metadata", - "0x4e": "attach_entity", - "0x4f": "entity_velocity", - "0x50": "entity_equipment", - "0x51": "experience", - "0x52": "update_health", - "0x53": "scoreboard_objective", - "0x54": "set_passengers", - "0x55": "teams", - "0x56": "scoreboard_score", - "0x57": "simulation_distance", - "0x58": "set_title_subtitle", - "0x59": "update_time", - "0x5a": "set_title_text", - "0x5b": "set_title_time", - "0x5c": "entity_sound_effect", - "0x5d": "sound_effect", - "0x5e": "stop_sound", - "0x5f": "system_chat", - "0x60": "playerlist_header", - "0x61": "nbt_query_response", - "0x62": "collect", - "0x63": "entity_teleport", - "0x64": "advancements", - "0x65": "entity_update_attributes", - "0x66": "entity_effect", - "0x67": "declare_recipes", - "0x68": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "named_entity_spawn", + "3": "animation", + "4": "statistics", + "5": "acknowledge_player_digging", + "6": "block_break_animation", + "7": "tile_entity_data", + "8": "block_action", + "9": "block_change", + "10": "boss_bar", + "11": "difficulty", + "12": "chat_preview", + "13": "clear_titles", + "14": "tab_complete", + "15": "declare_commands", + "16": "close_window", + "17": "window_items", + "18": "craft_progress_bar", + "19": "set_slot", + "20": "set_cooldown", + "21": "custom_payload", + "22": "named_sound_effect", + "23": "kick_disconnect", + "24": "entity_status", + "25": "explosion", + "26": "unload_chunk", + "27": "game_state_change", + "28": "open_horse_window", + "29": "initialize_world_border", + "30": "keep_alive", + "31": "map_chunk", + "32": "world_event", + "33": "world_particles", + "34": "update_light", + "35": "login", + "36": "map", + "37": "trade_list", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "vehicle_move", + "42": "open_book", + "43": "open_window", + "44": "open_sign_entity", + "45": "ping", + "46": "craft_recipe_response", + "47": "abilities", + "48": "player_chat", + "49": "end_combat_event", + "50": "enter_combat_event", + "51": "death_combat_event", + "52": "player_info", + "53": "face_player", + "54": "position", + "55": "unlock_recipes", + "56": "entity_destroy", + "57": "remove_entity_effect", + "58": "resource_pack_send", + "59": "respawn", + "60": "entity_head_rotation", + "61": "multi_block_change", + "62": "select_advancement_tab", + "63": "server_data", + "64": "action_bar", + "65": "world_border_center", + "66": "world_border_lerp_size", + "67": "world_border_size", + "68": "world_border_warning_delay", + "69": "world_border_warning_reach", + "70": "camera", + "71": "held_item_slot", + "72": "update_view_position", + "73": "update_view_distance", + "74": "spawn_position", + "75": "should_display_chat_preview", + "76": "scoreboard_display_objective", + "77": "entity_metadata", + "78": "attach_entity", + "79": "entity_velocity", + "80": "entity_equipment", + "81": "experience", + "82": "update_health", + "83": "scoreboard_objective", + "84": "set_passengers", + "85": "teams", + "86": "scoreboard_score", + "87": "simulation_distance", + "88": "set_title_subtitle", + "89": "update_time", + "90": "set_title_text", + "91": "set_title_time", + "92": "entity_sound_effect", + "93": "sound_effect", + "94": "stop_sound", + "95": "system_chat", + "96": "playerlist_header", + "97": "nbt_query_response", + "98": "collect", + "99": "entity_teleport", + "100": "advancements", + "101": "entity_update_attributes", + "102": "entity_effect", + "103": "declare_recipes", + "104": "tags" } } ] @@ -4993,7 +5005,8 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -5957,7 +5970,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5982,56 +5996,56 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat_command", - "0x04": "chat_message", - "0x05": "chat_preview", - "0x06": "client_command", - "0x07": "settings", - "0x08": "tab_complete", - "0x09": "enchant_item", - "0x0a": "window_click", - "0x0b": "close_window", - "0x0c": "custom_payload", - "0x0d": "edit_book", - "0x0e": "query_entity_nbt", - "0x0f": "use_entity", - "0x10": "generate_structure", - "0x11": "keep_alive", - "0x12": "lock_difficulty", - "0x13": "position", - "0x14": "position_look", - "0x15": "look", - "0x16": "flying", - "0x17": "vehicle_move", - "0x18": "steer_boat", - "0x19": "pick_item", - "0x1a": "craft_recipe_request", - "0x1b": "abilities", - "0x1c": "block_dig", - "0x1d": "entity_action", - "0x1e": "steer_vehicle", - "0x1f": "pong", - "0x20": "recipe_book", - "0x21": "displayed_recipe", - "0x22": "name_item", - "0x23": "resource_pack_receive", - "0x24": "advancement_tab", - "0x25": "select_trade", - "0x26": "set_beacon_effect", - "0x27": "held_item_slot", - "0x28": "update_command_block", - "0x29": "update_command_block_minecart", - "0x2a": "set_creative_slot", - "0x2b": "update_jigsaw_block", - "0x2c": "update_structure_block", - "0x2d": "update_sign", - "0x2e": "arm_animation", - "0x2f": "spectate", - "0x30": "block_place", - "0x31": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat_command", + "4": "chat_message", + "5": "chat_preview", + "6": "client_command", + "7": "settings", + "8": "tab_complete", + "9": "enchant_item", + "10": "window_click", + "11": "close_window", + "12": "custom_payload", + "13": "edit_book", + "14": "query_entity_nbt", + "15": "use_entity", + "16": "generate_structure", + "17": "keep_alive", + "18": "lock_difficulty", + "19": "position", + "20": "position_look", + "21": "look", + "22": "flying", + "23": "vehicle_move", + "24": "steer_boat", + "25": "pick_item", + "26": "craft_recipe_request", + "27": "abilities", + "28": "block_dig", + "29": "entity_action", + "30": "steer_vehicle", + "31": "pong", + "32": "recipe_book", + "33": "displayed_recipe", + "34": "name_item", + "35": "resource_pack_receive", + "36": "advancement_tab", + "37": "select_trade", + "38": "set_beacon_effect", + "39": "held_item_slot", + "40": "update_command_block", + "41": "update_command_block_minecart", + "42": "set_creative_slot", + "43": "update_jigsaw_block", + "44": "update_structure_block", + "45": "update_sign", + "46": "arm_animation", + "47": "spectate", + "48": "block_place", + "49": "use_item" } } ] @@ -6093,7 +6107,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -6102,4 +6117,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.20.2/proto.yml b/data/pc/1.20.2/proto.yml new file mode 100644 index 000000000..b6a9178e6 --- /dev/null +++ b/data/pc/1.20.2/proto.yml @@ -0,0 +1,2508 @@ +!version: 1.20.2 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + anonymousNbt: native + anonOptionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + vec3f: + x: f32 + y: f32 + z: f32 + vec4f: + x: f32 + y: f32 + z: f32 + w: f32 + vec3f64: + x: f64 + y: f64 + z: f64 + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: anonOptionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 31: + rotation: f32 + if 40: + item: slot + if 41: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + default: void + entityEyeHeight: positionType ? + if minecraft:entity: varint + default: void + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 93: + delayInTicksBeforeShown: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + soundSource: varint => + 0: master + 1: music + 2: record + 3: weather + 4: block + 5: hostile + 6: neutral + 7: player + 8: ambient + 9: voice + packedChunkPos: + z: i32 + x: i32 + previousMessages: []varint + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + entityMetadataItem: $compareTo ? + if byte: i8 + if int: varint + if long: varlong + if float: f32 + if string: string + if component: string + if optional_component: [ + "option", + "string" + ] + if item_stack: slot + if boolean: bool + if rotations: + pitch: f32 + yaw: f32 + roll: f32 + if block_pos: position + if optional_block_pos: [ + "option", + "position" + ] + if direction: varint + if optional_uuid: [ + "option", + "UUID" + ] + if block_state: varint + if optional_block_state: optvarint + if compound_tag: anonymousNbt + if particle: particle + if villager_data: + villagerType: varint + villagerProfession: varint + level: varint + if optional_unsigned_int: optvarint + if pose: varint + if cat_variant: varint + if frog_variant: varint + if optional_global_pos: [ + "option", + "string" + ] + if painting_variant: varint + if sniffer_state: varint + if vector3: vec3f + if quaternion: vec4f + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "type": "varint", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + } + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_simple_recipe_format: + category: varint + minecraft_smelting_format: + group: string + category: varint + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: anonOptionalNbt + chat_session?: + uuid: UUID + publicKey: + expireTime: i64 + keyBytes: [ + "buffer", + { + "countType": "varint" + } + ] + keySignature: [ + "buffer", + { + "countType": "varint" + } + ] + game_profile: + name: string + properties: []varint + key: string + value: string + signature?: string + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:message + 19: minecraft:nbt + 20: minecraft:nbt_tag + 21: minecraft:nbt_path + 22: minecraft:objective + 23: minecraft:objective_criteria + 24: minecraft:operation + 25: minecraft:particle + 26: minecraft:angle + 27: minecraft:rotation + 28: minecraft:scoreboard_slot + 29: minecraft:score_holder + 30: minecraft:swizzle + 31: minecraft:team + 32: minecraft:item_slot + 33: minecraft:resource_location + 34: minecraft:function + 35: minecraft:entity_anchor + 36: minecraft:int_range + 37: minecraft:float_range + 38: minecraft:dimension + 39: minecraft:gamemode + 40: minecraft:time + 41: minecraft:resource_or_tag + 42: minecraft:resource_or_tag_key + 43: minecraft:resource + 44: minecraft:resource_key + 45: minecraft:template_mirror + 46: minecraft:template_rotation + 47: minecraft:heightmap + 48: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:dimension: void + if minecraft:gamemode: void + if minecraft:time: + min: i32 + if minecraft:resource_or_tag: + registry: string + if minecraft:resource_or_tag_key: + registry: string + if minecraft:resource: + registry: string + if minecraft:resource_key: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:heightmap: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + playerUUID: UUID + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet_login_acknowledged: + # Empty + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + 0x03: login_acknowledged + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + if login_acknowledged: packet_login_acknowledged + +^configuration.toClient.types: + packet_custom_payload: + channel: string + data: restBuffer + packet_disconnect: + reason: string + packet_finish_configuration: + # Empty + packet_keep_alive: + keepAliveId: i64 + packet_ping: + id: i32 + packet_registry_data: + codec: anonymousNbt + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_feature_flags: + features: string[]varint + packet_tags: + tags: []varint + tagType: string + tags: tags + packet: + name: varint => + 0x00: custom_payload + 0x01: disconnect + 0x02: finish_configuration + 0x03: keep_alive + 0x04: ping + 0x05: registry_data + 0x06: resource_pack_send + 0x07: feature_flags + 0x08: tags + params: name ? + if custom_payload: packet_custom_payload + if disconnect: packet_disconnect + if finish_configuration: packet_finish_configuration + if keep_alive: packet_keep_alive + if ping: packet_ping + if registry_data: packet_registry_data + if resource_pack_send: packet_resource_pack_send + if feature_flags: packet_feature_flags + if tags: packet_tags + +^configuration.toServer.types: + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_custom_payload: + channel: string + data: restBuffer + packet_finish_configuration: + # Empty + packet_keep_alive: + keepAliveId: i64 + packet_pong: + id: i32 + packet_resource_pack_receive: + result: varint + packet: + name: varint => + 0x00: settings + 0x01: custom_payload + 0x02: finish_configuration + 0x03: keep_alive + 0x04: pong + 0x05: resource_pack_receive + params: name ? + if settings: packet_settings + if custom_payload: packet_custom_payload + if finish_configuration: packet_finish_configuration + if keep_alive: packet_keep_alive + if pong: packet_pong + if resource_pack_receive: packet_resource_pack_receive + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + requirements: []varint + _: string[]varint + sendsTelemtryData: bool + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: anonOptionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_chunk_batch_finished: + batchSize: varint + packet_chunk_batch_start: + # Empty + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: anonOptionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_chat_suggestions: + action: varint + entries: string[]varint + packet_custom_payload: + channel: string + data: restBuffer + packet_hide_message: + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + packet_kick_disconnect: + reason: string + packet_profileless_chat: + message: string + type: varint + name: string + target?: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f64 + y: f64 + z: f64 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkZ: i32 + chunkX: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: anonymousNbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + worldNames: string[]varint + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + doLimitedCrafting: bool + worldType: string + worldName: string + hashedSeed: i64 + gameMode: u8 + previousGameMode: i8 + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + portalCooldown: varint + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []varint + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + isFrontText: bool + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + senderUuid: UUID + index: varint + signature?: [ + "buffer", + { + "count": 256 + } + ] + plainMessage: string + timestamp: i64 + salt: i64 + previousMessages: previousMessages + unsignedChatContent?: string + filterType: varint + filterTypeMask: filterType ? + if 2: i64[]varint + default: void + type: varint + networkName: string + networkTargetName?: string + packet_end_combat_event: + duration: varint + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + message: string + packet_player_remove: + players: UUID[]varint + packet_player_info: + action: i8 + data: []varint + uuid: UUID + player: ../action ? + if 1: game_profile + if 3: game_profile + if 5: game_profile + if 7: game_profile + if 9: game_profile + if 11: game_profile + if 13: game_profile + if 15: game_profile + if 17: game_profile + if 19: game_profile + if 21: game_profile + if 23: game_profile + if 25: game_profile + if 27: game_profile + if 29: game_profile + if 31: game_profile + if 33: game_profile + if 35: game_profile + if 37: game_profile + if 39: game_profile + if 41: game_profile + if 43: game_profile + if 45: game_profile + if 47: game_profile + if 49: game_profile + if 51: game_profile + if 53: game_profile + if 55: game_profile + if 57: game_profile + if 59: game_profile + if 61: game_profile + if 63: game_profile + default: void + chatSession: ../action ? + if 2: chat_session + if 3: chat_session + if 6: chat_session + if 7: chat_session + if 10: chat_session + if 11: chat_session + if 14: chat_session + if 15: chat_session + if 18: chat_session + if 19: chat_session + if 22: chat_session + if 23: chat_session + if 26: chat_session + if 27: chat_session + if 30: chat_session + if 31: chat_session + if 34: chat_session + if 35: chat_session + if 38: chat_session + if 39: chat_session + if 42: chat_session + if 43: chat_session + if 46: chat_session + if 47: chat_session + if 50: chat_session + if 51: chat_session + if 54: chat_session + if 55: chat_session + if 58: chat_session + if 59: chat_session + if 62: chat_session + if 63: chat_session + default: void + gamemode: ../action ? + if 4: varint + if 5: varint + if 6: varint + if 7: varint + if 12: varint + if 13: varint + if 14: varint + if 15: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 36: varint + if 37: varint + if 38: varint + if 39: varint + if 44: varint + if 45: varint + if 46: varint + if 47: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + listed: ../action ? + if 8: bool + if 9: bool + if 10: bool + if 11: bool + if 12: bool + if 13: bool + if 14: bool + if 15: bool + if 24: bool + if 25: bool + if 26: bool + if 27: bool + if 28: bool + if 29: bool + if 30: bool + if 31: bool + if 40: bool + if 41: bool + if 42: bool + if 43: bool + if 44: bool + if 45: bool + if 46: bool + if 47: bool + if 56: bool + if 57: bool + if 58: bool + if 59: bool + if 60: bool + if 61: bool + if 62: bool + if 63: bool + default: void + latency: ../action ? + if 16: varint + if 17: varint + if 18: varint + if 19: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 24: varint + if 25: varint + if 26: varint + if 27: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 48: varint + if 49: varint + if 50: varint + if 51: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 56: varint + if 57: varint + if 58: varint + if 59: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + displayName: ../action ? + if 32: [ + "option", + "string" + ] + if 33: [ + "option", + "string" + ] + if 34: [ + "option", + "string" + ] + if 35: [ + "option", + "string" + ] + if 36: [ + "option", + "string" + ] + if 37: [ + "option", + "string" + ] + if 38: [ + "option", + "string" + ] + if 39: [ + "option", + "string" + ] + if 40: [ + "option", + "string" + ] + if 41: [ + "option", + "string" + ] + if 42: [ + "option", + "string" + ] + if 43: [ + "option", + "string" + ] + if 44: [ + "option", + "string" + ] + if 45: [ + "option", + "string" + ] + if 46: [ + "option", + "string" + ] + if 47: [ + "option", + "string" + ] + if 48: [ + "option", + "string" + ] + if 49: [ + "option", + "string" + ] + if 50: [ + "option", + "string" + ] + if 51: [ + "option", + "string" + ] + if 52: [ + "option", + "string" + ] + if 53: [ + "option", + "string" + ] + if 54: [ + "option", + "string" + ] + if 55: [ + "option", + "string" + ] + if 56: [ + "option", + "string" + ] + if 57: [ + "option", + "string" + ] + if 58: [ + "option", + "string" + ] + if 59: [ + "option", + "string" + ] + if 60: [ + "option", + "string" + ] + if 61: [ + "option", + "string" + ] + if 62: [ + "option", + "string" + ] + if 63: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: i8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + portalCooldown: varint + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: varint + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: string + isActionBar: bool + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: anonymousNbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd: string + iconBytes?: [ + "buffer", + { + "countType": "varint" + } + ] + enforcesSecureChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + category: varint + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + category: varint + ingredients: []$width + _: ingredient[]$height + result: slot + showNotification: bool + if minecraft:crafting_special_armordye: minecraft_simple_recipe_format + if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format + if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format + if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format + if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format + if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format + if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format + if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format + if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing_transform: + template: ingredient + base: ingredient + addition: ingredient + result: slot + if minecraft:smithing_trim: + template: ingredient + base: ingredient + addition: ingredient + if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_ping_response: + id: i64 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet_chunk_biomes: + biomes: []varint + position: packedChunkPos + data: [ + "buffer", + { + "countType": "varint" + } + ] + packet_damage_event: + entityId: varint + sourceTypeId: varint + sourceCauseId: varint + sourceDirectId: varint + sourcePosition?: vec3f64 + packet_hurt_animation: + entityId: varint + yaw: f32 + packet_start_configuration: + # Empty + packet: + name: varint => + 0x00: bundle_delimiter + 0x01: spawn_entity + 0x02: spawn_entity_experience_orb + 0x03: animation + 0x04: statistics + 0x05: acknowledge_player_digging + 0x06: block_break_animation + 0x07: tile_entity_data + 0x08: block_action + 0x09: block_change + 0x0a: boss_bar + 0x0b: difficulty + 0x0c: chunk_batch_finished + 0x0d: chunk_batch_start + 0x0e: chunk_biomes + 0x0f: clear_titles + 0x10: tab_complete + 0x11: declare_commands + 0x12: close_window + 0x13: window_items + 0x14: craft_progress_bar + 0x15: set_slot + 0x16: set_cooldown + 0x17: chat_suggestions + 0x18: custom_payload + 0x19: damage_event + 0x1a: hide_message + 0x1b: kick_disconnect + 0x1c: profileless_chat + 0x1d: entity_status + 0x1e: explosion + 0x1f: unload_chunk + 0x20: game_state_change + 0x21: open_horse_window + 0x22: hurt_animation + 0x23: initialize_world_border + 0x24: keep_alive + 0x25: map_chunk + 0x26: world_event + 0x27: world_particles + 0x28: update_light + 0x29: login + 0x2a: map + 0x2b: trade_list + 0x2c: rel_entity_move + 0x2d: entity_move_look + 0x2e: entity_look + 0x2f: vehicle_move + 0x30: open_book + 0x31: open_window + 0x32: open_sign_entity + 0x33: ping + 0x34: ping_response + 0x35: craft_recipe_response + 0x36: abilities + 0x37: player_chat + 0x38: end_combat_event + 0x39: enter_combat_event + 0x3a: death_combat_event + 0x3b: player_remove + 0x3c: player_info + 0x3d: face_player + 0x3e: position + 0x3f: unlock_recipes + 0x40: entity_destroy + 0x41: remove_entity_effect + 0x42: resource_pack_send + 0x43: respawn + 0x44: entity_head_rotation + 0x45: multi_block_change + 0x46: select_advancement_tab + 0x47: server_data + 0x48: action_bar + 0x49: world_border_center + 0x4a: world_border_lerp_size + 0x4b: world_border_size + 0x4c: world_border_warning_delay + 0x4d: world_border_warning_reach + 0x4e: camera + 0x4f: held_item_slot + 0x50: update_view_position + 0x51: update_view_distance + 0x52: spawn_position + 0x53: scoreboard_display_objective + 0x54: entity_metadata + 0x55: attach_entity + 0x56: entity_velocity + 0x57: entity_equipment + 0x58: experience + 0x59: update_health + 0x5a: scoreboard_objective + 0x5b: set_passengers + 0x5c: teams + 0x5d: scoreboard_score + 0x5e: simulation_distance + 0x5f: set_title_subtitle + 0x60: update_time + 0x61: set_title_text + 0x62: set_title_time + 0x63: entity_sound_effect + 0x64: sound_effect + 0x65: start_configuration + 0x66: stop_sound + 0x67: system_chat + 0x68: playerlist_header + 0x69: nbt_query_response + 0x6a: collect + 0x6b: entity_teleport + 0x6c: advancements + 0x6d: entity_update_attributes + 0x6e: entity_effect + 0x6f: declare_recipes + 0x70: tags + params: name ? + if bundle_delimiter: void + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if chunk_batch_finished: packet_chunk_batch_finished + if chunk_batch_start: packet_chunk_batch_start + if chunk_biomes: packet_chunk_biomes + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if chat_suggestions: packet_chat_suggestions + if custom_payload: packet_custom_payload + if damage_event: packet_damage_event + if hide_message: packet_hide_message + if kick_disconnect: packet_kick_disconnect + if profileless_chat: packet_profileless_chat + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if hurt_animation: packet_hurt_animation + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if ping_response: packet_ping_response + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_remove: packet_player_remove + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if start_configuration: packet_start_configuration + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "count": 256 + } + ] + messageCount: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature?: [ + "buffer", + { + "count": 256 + } + ] + offset: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_set_difficulty: + newDifficulty: u8 + packet_message_acknowledgement: + count: varint + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + isFrontText: bool + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet_chat_session_update: + sessionUUID: UUID + expireTime: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet_chunk_batch_received: + chunksPerTick: f32 + packet_configuration_acknowledged: + # Empty + packet_ping_request: + id: i64 + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: message_acknowledgement + 0x04: chat_command + 0x05: chat_message + 0x06: chat_session_update + 0x07: chunk_batch_received + 0x08: client_command + 0x09: settings + 0x0a: tab_complete + 0x0b: configuration_acknowledged + 0x0c: enchant_item + 0x0d: window_click + 0x0e: close_window + 0x0f: custom_payload + 0x10: edit_book + 0x11: query_entity_nbt + 0x12: use_entity + 0x13: generate_structure + 0x14: keep_alive + 0x15: lock_difficulty + 0x16: position + 0x17: position_look + 0x18: look + 0x19: flying + 0x1a: vehicle_move + 0x1b: steer_boat + 0x1c: pick_item + 0x1d: ping_request + 0x1e: craft_recipe_request + 0x1f: abilities + 0x20: block_dig + 0x21: entity_action + 0x22: steer_vehicle + 0x23: pong + 0x24: recipe_book + 0x25: displayed_recipe + 0x26: name_item + 0x27: resource_pack_receive + 0x28: advancement_tab + 0x29: select_trade + 0x2a: set_beacon_effect + 0x2b: held_item_slot + 0x2c: update_command_block + 0x2d: update_command_block_minecart + 0x2e: set_creative_slot + 0x2f: update_jigsaw_block + 0x30: update_structure_block + 0x31: update_sign + 0x32: arm_animation + 0x33: spectate + 0x34: block_place + 0x35: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if chat_session_update: packet_chat_session_update + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if chunk_batch_received: packet_chunk_batch_received + if configuration_acknowledged: packet_configuration_acknowledged + if ping_request: packet_ping_request diff --git a/data/pc/1.20.2/protocol.json b/data/pc/1.20.2/protocol.json index 364fa5f1a..0dec205ef 100644 --- a/data/pc/1.20.2/protocol.json +++ b/data/pc/1.20.2/protocol.json @@ -121,7 +121,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -291,7 +292,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -482,7 +484,8 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -1219,7 +1222,8 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -1238,7 +1242,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1317,8 +1322,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1332,7 +1337,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1372,8 +1378,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1387,7 +1393,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1420,8 +1427,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1435,7 +1442,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1561,11 +1569,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1582,7 +1590,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1658,10 +1667,10 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response", - "0x03": "login_acknowledged" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response", + "3": "login_acknowledged" } } ] @@ -1677,7 +1686,8 @@ "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response", "login_acknowledged": "packet_login_acknowledged" - } + }, + "default": "void" } ] } @@ -1818,15 +1828,15 @@ { "type": "varint", "mappings": { - "0x00": "custom_payload", - "0x01": "disconnect", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "ping", - "0x05": "registry_data", - "0x06": "resource_pack_send", - "0x07": "feature_flags", - "0x08": "tags" + "0": "custom_payload", + "1": "disconnect", + "2": "finish_configuration", + "3": "keep_alive", + "4": "ping", + "5": "registry_data", + "6": "resource_pack_send", + "7": "feature_flags", + "8": "tags" } } ] @@ -1847,7 +1857,8 @@ "resource_pack_send": "packet_resource_pack_send", "feature_flags": "packet_feature_flags", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -1948,12 +1959,12 @@ { "type": "varint", "mappings": { - "0x00": "settings", - "0x01": "custom_payload", - "0x02": "finish_configuration", - "0x03": "keep_alive", - "0x04": "pong", - "0x05": "resource_pack_receive" + "0": "settings", + "1": "custom_payload", + "2": "finish_configuration", + "3": "keep_alive", + "4": "pong", + "5": "resource_pack_receive" } } ] @@ -1971,7 +1982,8 @@ "keep_alive": "packet_keep_alive", "pong": "packet_pong", "resource_pack_receive": "packet_resource_pack_receive" - } + }, + "default": "void" } ] } @@ -5379,7 +5391,8 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } + }, + "default": "void" } ] } @@ -5687,119 +5700,119 @@ { "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "animation", - "0x04": "statistics", - "0x05": "acknowledge_player_digging", - "0x06": "block_break_animation", - "0x07": "tile_entity_data", - "0x08": "block_action", - "0x09": "block_change", - "0x0a": "boss_bar", - "0x0b": "difficulty", - "0x0c": "chunk_batch_finished", - "0x0d": "chunk_batch_start", - "0x0e": "chunk_biomes", - "0x0f": "clear_titles", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "close_window", - "0x13": "window_items", - "0x14": "craft_progress_bar", - "0x15": "set_slot", - "0x16": "set_cooldown", - "0x17": "chat_suggestions", - "0x18": "custom_payload", - "0x19": "damage_event", - "0x1a": "hide_message", - "0x1b": "kick_disconnect", - "0x1c": "profileless_chat", - "0x1d": "entity_status", - "0x1e": "explosion", - "0x1f": "unload_chunk", - "0x20": "game_state_change", - "0x21": "open_horse_window", - "0x22": "hurt_animation", - "0x23": "initialize_world_border", - "0x24": "keep_alive", - "0x25": "map_chunk", - "0x26": "world_event", - "0x27": "world_particles", - "0x28": "update_light", - "0x29": "login", - "0x2a": "map", - "0x2b": "trade_list", - "0x2c": "rel_entity_move", - "0x2d": "entity_move_look", - "0x2e": "entity_look", - "0x2f": "vehicle_move", - "0x30": "open_book", - "0x31": "open_window", - "0x32": "open_sign_entity", - "0x33": "ping", - "0x34": "ping_response", - "0x35": "craft_recipe_response", - "0x36": "abilities", - "0x37": "player_chat", - "0x38": "end_combat_event", - "0x39": "enter_combat_event", - "0x3a": "death_combat_event", - "0x3b": "player_remove", - "0x3c": "player_info", - "0x3d": "face_player", - "0x3e": "position", - "0x3f": "unlock_recipes", - "0x40": "entity_destroy", - "0x41": "remove_entity_effect", - "0x42": "resource_pack_send", - "0x43": "respawn", - "0x44": "entity_head_rotation", - "0x45": "multi_block_change", - "0x46": "select_advancement_tab", - "0x47": "server_data", - "0x48": "action_bar", - "0x49": "world_border_center", - "0x4a": "world_border_lerp_size", - "0x4b": "world_border_size", - "0x4c": "world_border_warning_delay", - "0x4d": "world_border_warning_reach", - "0x4e": "camera", - "0x4f": "held_item_slot", - "0x50": "update_view_position", - "0x51": "update_view_distance", - "0x52": "spawn_position", - "0x53": "scoreboard_display_objective", - "0x54": "entity_metadata", - "0x55": "attach_entity", - "0x56": "entity_velocity", - "0x57": "entity_equipment", - "0x58": "experience", - "0x59": "update_health", - "0x5a": "scoreboard_objective", - "0x5b": "set_passengers", - "0x5c": "teams", - "0x5d": "scoreboard_score", - "0x5e": "simulation_distance", - "0x5f": "set_title_subtitle", - "0x60": "update_time", - "0x61": "set_title_text", - "0x62": "set_title_time", - "0x63": "entity_sound_effect", - "0x64": "sound_effect", - "0x65": "start_configuration", - "0x66": "stop_sound", - "0x67": "system_chat", - "0x68": "playerlist_header", - "0x69": "nbt_query_response", - "0x6a": "collect", - "0x6b": "entity_teleport", - "0x6c": "advancements", - "0x6d": "entity_update_attributes", - "0x6e": "entity_effect", - "0x6f": "declare_recipes", - "0x70": "tags" + "0": "bundle_delimiter", + "1": "spawn_entity", + "2": "spawn_entity_experience_orb", + "3": "animation", + "4": "statistics", + "5": "acknowledge_player_digging", + "6": "block_break_animation", + "7": "tile_entity_data", + "8": "block_action", + "9": "block_change", + "10": "boss_bar", + "11": "difficulty", + "12": "chunk_batch_finished", + "13": "chunk_batch_start", + "14": "chunk_biomes", + "15": "clear_titles", + "16": "tab_complete", + "17": "declare_commands", + "18": "close_window", + "19": "window_items", + "20": "craft_progress_bar", + "21": "set_slot", + "22": "set_cooldown", + "23": "chat_suggestions", + "24": "custom_payload", + "25": "damage_event", + "26": "hide_message", + "27": "kick_disconnect", + "28": "profileless_chat", + "29": "entity_status", + "30": "explosion", + "31": "unload_chunk", + "32": "game_state_change", + "33": "open_horse_window", + "34": "hurt_animation", + "35": "initialize_world_border", + "36": "keep_alive", + "37": "map_chunk", + "38": "world_event", + "39": "world_particles", + "40": "update_light", + "41": "login", + "42": "map", + "43": "trade_list", + "44": "rel_entity_move", + "45": "entity_move_look", + "46": "entity_look", + "47": "vehicle_move", + "48": "open_book", + "49": "open_window", + "50": "open_sign_entity", + "51": "ping", + "52": "ping_response", + "53": "craft_recipe_response", + "54": "abilities", + "55": "player_chat", + "56": "end_combat_event", + "57": "enter_combat_event", + "58": "death_combat_event", + "59": "player_remove", + "60": "player_info", + "61": "face_player", + "62": "position", + "63": "unlock_recipes", + "64": "entity_destroy", + "65": "remove_entity_effect", + "66": "resource_pack_send", + "67": "respawn", + "68": "entity_head_rotation", + "69": "multi_block_change", + "70": "select_advancement_tab", + "71": "server_data", + "72": "action_bar", + "73": "world_border_center", + "74": "world_border_lerp_size", + "75": "world_border_size", + "76": "world_border_warning_delay", + "77": "world_border_warning_reach", + "78": "camera", + "79": "held_item_slot", + "80": "update_view_position", + "81": "update_view_distance", + "82": "spawn_position", + "83": "scoreboard_display_objective", + "84": "entity_metadata", + "85": "attach_entity", + "86": "entity_velocity", + "87": "entity_equipment", + "88": "experience", + "89": "update_health", + "90": "scoreboard_objective", + "91": "set_passengers", + "92": "teams", + "93": "scoreboard_score", + "94": "simulation_distance", + "95": "set_title_subtitle", + "96": "update_time", + "97": "set_title_text", + "98": "set_title_time", + "99": "entity_sound_effect", + "100": "sound_effect", + "101": "start_configuration", + "102": "stop_sound", + "103": "system_chat", + "104": "playerlist_header", + "105": "nbt_query_response", + "106": "collect", + "107": "entity_teleport", + "108": "advancements", + "109": "entity_update_attributes", + "110": "entity_effect", + "111": "declare_recipes", + "112": "tags" } } ] @@ -5924,7 +5937,8 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -6909,7 +6923,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -6987,60 +7002,60 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "chunk_batch_received", - "0x08": "client_command", - "0x09": "settings", - "0x0a": "tab_complete", - "0x0b": "configuration_acknowledged", - "0x0c": "enchant_item", - "0x0d": "window_click", - "0x0e": "close_window", - "0x0f": "custom_payload", - "0x10": "edit_book", - "0x11": "query_entity_nbt", - "0x12": "use_entity", - "0x13": "generate_structure", - "0x14": "keep_alive", - "0x15": "lock_difficulty", - "0x16": "position", - "0x17": "position_look", - "0x18": "look", - "0x19": "flying", - "0x1a": "vehicle_move", - "0x1b": "steer_boat", - "0x1c": "pick_item", - "0x1d": "ping_request", - "0x1e": "craft_recipe_request", - "0x1f": "abilities", - "0x20": "block_dig", - "0x21": "entity_action", - "0x22": "steer_vehicle", - "0x23": "pong", - "0x24": "recipe_book", - "0x25": "displayed_recipe", - "0x26": "name_item", - "0x27": "resource_pack_receive", - "0x28": "advancement_tab", - "0x29": "select_trade", - "0x2a": "set_beacon_effect", - "0x2b": "held_item_slot", - "0x2c": "update_command_block", - "0x2d": "update_command_block_minecart", - "0x2e": "set_creative_slot", - "0x2f": "update_jigsaw_block", - "0x30": "update_structure_block", - "0x31": "update_sign", - "0x32": "arm_animation", - "0x33": "spectate", - "0x34": "block_place", - "0x35": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "message_acknowledgement", + "4": "chat_command", + "5": "chat_message", + "6": "chat_session_update", + "7": "chunk_batch_received", + "8": "client_command", + "9": "settings", + "10": "tab_complete", + "11": "configuration_acknowledged", + "12": "enchant_item", + "13": "window_click", + "14": "close_window", + "15": "custom_payload", + "16": "edit_book", + "17": "query_entity_nbt", + "18": "use_entity", + "19": "generate_structure", + "20": "keep_alive", + "21": "lock_difficulty", + "22": "position", + "23": "position_look", + "24": "look", + "25": "flying", + "26": "vehicle_move", + "27": "steer_boat", + "28": "pick_item", + "29": "ping_request", + "30": "craft_recipe_request", + "31": "abilities", + "32": "block_dig", + "33": "entity_action", + "34": "steer_vehicle", + "35": "pong", + "36": "recipe_book", + "37": "displayed_recipe", + "38": "name_item", + "39": "resource_pack_receive", + "40": "advancement_tab", + "41": "select_trade", + "42": "set_beacon_effect", + "43": "held_item_slot", + "44": "update_command_block", + "45": "update_command_block_minecart", + "46": "set_creative_slot", + "47": "update_jigsaw_block", + "48": "update_structure_block", + "49": "update_sign", + "50": "arm_animation", + "51": "spectate", + "52": "block_place", + "53": "use_item" } } ] @@ -7106,7 +7121,8 @@ "chunk_batch_received": "packet_chunk_batch_received", "configuration_acknowledged": "packet_configuration_acknowledged", "ping_request": "packet_ping_request" - } + }, + "default": "void" } ] } @@ -7115,4 +7131,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.20/proto.yml b/data/pc/1.20/proto.yml new file mode 100644 index 000000000..3f83117d1 --- /dev/null +++ b/data/pc/1.20/proto.yml @@ -0,0 +1,2409 @@ +!version: 1.20 + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + buffer: native + u8: native + u16: native + u32: native + u64: native + i8: native + i16: native + i32: native + i64: native + bool: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + vec3f: + x: f32 + y: f32 + z: f32 + vec4f: + x: f32 + y: f32 + z: f32 + w: f32 + vec3f64: + x: f64 + y: f64 + z: f64 + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 2: + blockState: varint + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 15: + fromRed: f32 + fromGreen: f32 + fromBlue: f32 + scale: f32 + toRed: f32 + toGreen: f32 + toBlue: f32 + if 25: + blockState: varint + if 31: + rotation: f32 + if 40: + item: slot + if 41: + positionType: string + entityId: positionType ? + if minecraft:entity: varint + default: void + entityEyeHeight: positionType ? + if minecraft:entity: varint + default: void + destination: positionType ? + if minecraft:block: position + if minecraft:entity: varint + ticks: varint + if 93: + delayInTicksBeforeShown: varint + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + packedChunkPos: + z: i32 + x: i32 + soundSource: varint => + 0: master + 1: music + 2: record + 3: weather + 4: block + 5: hostile + 6: neutral + 7: player + 8: ambient + 9: voice + previousMessages: []varint + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + entityMetadataItem: $compareTo ? + if byte: i8 + if int: varint + if long: varlong + if float: f32 + if string: string + if component: string + if optional_component: [ + "option", + "string" + ] + if item_stack: slot + if boolean: bool + if rotations: + pitch: f32 + yaw: f32 + roll: f32 + if block_pos: position + if optional_block_pos: [ + "option", + "position" + ] + if direction: varint + if optional_uuid: [ + "option", + "UUID" + ] + if block_state: varint + if optional_block_state: optvarint + if compound_tag: nbt + if particle: particle + if villager_data: + villagerType: varint + villagerProfession: varint + level: varint + if optional_unsigned_int: optvarint + if pose: varint + if cat_variant: varint + if frog_variant: varint + if optional_global_pos: [ + "option", + "string" + ] + if painting_variant: varint + if sniffer_state: varint + if vector3: vec3f + if quaternion: vec4f + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": [ + "mapper", + { + "type": "varint", + "mappings": { + "0": "byte", + "1": "int", + "2": "long", + "3": "float", + "4": "string", + "5": "component", + "6": "optional_component", + "7": "item_stack", + "8": "boolean", + "9": "rotations", + "10": "block_pos", + "11": "optional_block_pos", + "12": "direction", + "13": "optional_uuid", + "14": "block_state", + "15": "optional_block_state", + "16": "compound_tag", + "17": "particle", + "18": "villager_data", + "19": "optional_unsigned_int", + "20": "pose", + "21": "cat_variant", + "22": "frog_variant", + "23": "optional_global_pos", + "24": "painting_variant", + "25": "sniffer_state", + "26": "vector3", + "27": "quaternion" + } + } + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + minecraft_simple_recipe_format: + category: varint + minecraft_smelting_format: + group: string + category: varint + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + chunkBlockEntity: + _: [ + "bitfield", + [ + { + "name": "x", + "size": 4, + "signed": false + }, + { + "name": "z", + "size": 4, + "signed": false + } + ] + ] + y: i16 + type: varint + nbtData: optionalNbt + chat_session?: + uuid: UUID + publicKey: + expireTime: i64 + keyBytes: [ + "buffer", + { + "countType": "varint" + } + ] + keySignature: [ + "buffer", + { + "countType": "varint" + } + ] + game_profile: + name: string + properties: []varint + key: string + value: string + signature?: string + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: varint => + 0: brigadier:bool + 1: brigadier:float + 2: brigadier:double + 3: brigadier:integer + 4: brigadier:long + 5: brigadier:string + 6: minecraft:entity + 7: minecraft:game_profile + 8: minecraft:block_pos + 9: minecraft:column_pos + 10: minecraft:vec3 + 11: minecraft:vec2 + 12: minecraft:block_state + 13: minecraft:block_predicate + 14: minecraft:item_stack + 15: minecraft:item_predicate + 16: minecraft:color + 17: minecraft:component + 18: minecraft:message + 19: minecraft:nbt + 20: minecraft:nbt_tag + 21: minecraft:nbt_path + 22: minecraft:objective + 23: minecraft:objective_criteria + 24: minecraft:operation + 25: minecraft:particle + 26: minecraft:angle + 27: minecraft:rotation + 28: minecraft:scoreboard_slot + 29: minecraft:score_holder + 30: minecraft:swizzle + 31: minecraft:team + 32: minecraft:item_slot + 33: minecraft:resource_location + 34: minecraft:function + 35: minecraft:entity_anchor + 36: minecraft:int_range + 37: minecraft:float_range + 38: minecraft:dimension + 39: minecraft:gamemode + 40: minecraft:time + 41: minecraft:resource_or_tag + 42: minecraft:resource_or_tag_key + 43: minecraft:resource + 44: minecraft:resource_key + 45: minecraft:template_mirror + 46: minecraft:template_rotation + 47: minecraft:heightmap + 48: minecraft:uuid + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:dimension: void + if minecraft:gamemode: void + if minecraft:time: + min: i32 + if minecraft:resource_or_tag: + registry: string + if minecraft:resource_or_tag_key: + registry: string + if minecraft:resource: + registry: string + if minecraft:resource_key: + registry: string + if minecraft:template_mirror: void + if minecraft:template_rotation: void + if minecraft:heightmap: void + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + properties: []varint + name: string + value: string + signature?: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + playerUUID?: UUID + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + headPitch: i8 + objectData: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + sendsTelemtryData: bool + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: varint + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": true + } + ] + ] + records: varint[]varint + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + stateId: varint + items: slot[]varint + carriedItem: slot + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + stateId: varint + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_chat_suggestions: + action: varint + entries: string[]varint + packet_custom_payload: + channel: string + data: restBuffer + packet_hide_message: + id: varint + signature: id ? + if 0: [ + "buffer", + { + "count": 256 + } + ] + default: void + packet_kick_disconnect: + reason: string + packet_profileless_chat: + message: string + type: varint + name: string + target?: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f64 + y: f64 + z: f64 + radius: f32 + affectedBlockOffsets: []varint + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + heightmaps: nbt + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: chunkBlockEntity[]varint + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: varint + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + skyLight: []varint + _: u8[]varint + blockLight: []varint + _: u8[]varint + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: i8 + worldNames: string[]varint + dimensionCodec: nbt + worldType: string + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + simulationDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + death?: + dimensionName: string + location: position + portalCooldown: varint + packet_map: + itemDamage: varint + scale: i8 + locked: bool + icons?: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: u8 + rows: columns ? + if 0: void + default: u8 + x: columns ? + if 0: void + default: u8 + y: columns ? + if 0: void + default: u8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []varint + inputItem1: slot + outputItem: slot + inputItem2: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + isFrontText: bool + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_player_chat: + senderUuid: UUID + index: varint + signature?: [ + "buffer", + { + "count": 256 + } + ] + plainMessage: string + timestamp: i64 + salt: i64 + previousMessages: previousMessages + unsignedChatContent?: string + filterType: varint + filterTypeMask: filterType ? + if 2: i64[]varint + default: void + type: varint + networkName: string + networkTargetName?: string + packet_end_combat_event: + duration: varint + packet_enter_combat_event: + # Empty + packet_death_combat_event: + playerId: varint + message: string + packet_player_remove: + players: UUID[]varint + packet_player_info: + action: i8 + data: []varint + uuid: UUID + player: ../action ? + if 1: game_profile + if 3: game_profile + if 5: game_profile + if 7: game_profile + if 9: game_profile + if 11: game_profile + if 13: game_profile + if 15: game_profile + if 17: game_profile + if 19: game_profile + if 21: game_profile + if 23: game_profile + if 25: game_profile + if 27: game_profile + if 29: game_profile + if 31: game_profile + if 33: game_profile + if 35: game_profile + if 37: game_profile + if 39: game_profile + if 41: game_profile + if 43: game_profile + if 45: game_profile + if 47: game_profile + if 49: game_profile + if 51: game_profile + if 53: game_profile + if 55: game_profile + if 57: game_profile + if 59: game_profile + if 61: game_profile + if 63: game_profile + default: void + chatSession: ../action ? + if 2: chat_session + if 3: chat_session + if 6: chat_session + if 7: chat_session + if 10: chat_session + if 11: chat_session + if 14: chat_session + if 15: chat_session + if 18: chat_session + if 19: chat_session + if 22: chat_session + if 23: chat_session + if 26: chat_session + if 27: chat_session + if 30: chat_session + if 31: chat_session + if 34: chat_session + if 35: chat_session + if 38: chat_session + if 39: chat_session + if 42: chat_session + if 43: chat_session + if 46: chat_session + if 47: chat_session + if 50: chat_session + if 51: chat_session + if 54: chat_session + if 55: chat_session + if 58: chat_session + if 59: chat_session + if 62: chat_session + if 63: chat_session + default: void + gamemode: ../action ? + if 4: varint + if 5: varint + if 6: varint + if 7: varint + if 12: varint + if 13: varint + if 14: varint + if 15: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 36: varint + if 37: varint + if 38: varint + if 39: varint + if 44: varint + if 45: varint + if 46: varint + if 47: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + listed: ../action ? + if 8: bool + if 9: bool + if 10: bool + if 11: bool + if 12: bool + if 13: bool + if 14: bool + if 15: bool + if 24: bool + if 25: bool + if 26: bool + if 27: bool + if 28: bool + if 29: bool + if 30: bool + if 31: bool + if 40: bool + if 41: bool + if 42: bool + if 43: bool + if 44: bool + if 45: bool + if 46: bool + if 47: bool + if 56: bool + if 57: bool + if 58: bool + if 59: bool + if 60: bool + if 61: bool + if 62: bool + if 63: bool + default: void + latency: ../action ? + if 16: varint + if 17: varint + if 18: varint + if 19: varint + if 20: varint + if 21: varint + if 22: varint + if 23: varint + if 24: varint + if 25: varint + if 26: varint + if 27: varint + if 28: varint + if 29: varint + if 30: varint + if 31: varint + if 48: varint + if 49: varint + if 50: varint + if 51: varint + if 52: varint + if 53: varint + if 54: varint + if 55: varint + if 56: varint + if 57: varint + if 58: varint + if 59: varint + if 60: varint + if 61: varint + if 62: varint + if 63: varint + default: void + displayName: ../action ? + if 32: [ + "option", + "string" + ] + if 33: [ + "option", + "string" + ] + if 34: [ + "option", + "string" + ] + if 35: [ + "option", + "string" + ] + if 36: [ + "option", + "string" + ] + if 37: [ + "option", + "string" + ] + if 38: [ + "option", + "string" + ] + if 39: [ + "option", + "string" + ] + if 40: [ + "option", + "string" + ] + if 41: [ + "option", + "string" + ] + if 42: [ + "option", + "string" + ] + if 43: [ + "option", + "string" + ] + if 44: [ + "option", + "string" + ] + if 45: [ + "option", + "string" + ] + if 46: [ + "option", + "string" + ] + if 47: [ + "option", + "string" + ] + if 48: [ + "option", + "string" + ] + if 49: [ + "option", + "string" + ] + if 50: [ + "option", + "string" + ] + if 51: [ + "option", + "string" + ] + if 52: [ + "option", + "string" + ] + if 53: [ + "option", + "string" + ] + if 54: [ + "option", + "string" + ] + if 55: [ + "option", + "string" + ] + if 56: [ + "option", + "string" + ] + if 57: [ + "option", + "string" + ] + if 58: [ + "option", + "string" + ] + if 59: [ + "option", + "string" + ] + if 60: [ + "option", + "string" + ] + if 61: [ + "option", + "string" + ] + if 62: [ + "option", + "string" + ] + if 63: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: varint + packet_resource_pack_send: + url: string + hash: string + forced: bool + promptMessage?: string + packet_respawn: + dimension: string + worldName: string + hashedSeed: i64 + gamemode: i8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + death?: + dimensionName: string + location: position + portalCooldown: varint + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + totalExperience: varint + level: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + angle: f32 + packet_update_time: + age: i64 + time: i64 + packet_entity_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + entityId: varint + volume: f32 + pitch: f32 + seed: i64 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundEvent: soundId ? + if 0: + resource: string + range?: f32 + default: void + soundCategory: soundSource + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + seed: i64 + packet_system_chat: + content: string + isActionBar: bool + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []varint + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_feature_flags: + features: string[]varint + packet_entity_effect: + entityId: varint + effectId: varint + amplifier: i8 + duration: varint + hideParticles: i8 + factorCodec?: nbt + packet_select_advancement_tab: + id?: string + packet_server_data: + motd: string + iconBytes?: [ + "buffer", + { + "countType": "varint" + } + ] + enforcesSecureChat: bool + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + category: varint + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + category: varint + ingredients: []$width + _: ingredient[]$height + result: slot + showNotification: bool + if minecraft:crafting_special_armordye: minecraft_simple_recipe_format + if minecraft:crafting_special_bookcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapcloning: minecraft_simple_recipe_format + if minecraft:crafting_special_mapextending: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_rocket: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star: minecraft_simple_recipe_format + if minecraft:crafting_special_firework_star_fade: minecraft_simple_recipe_format + if minecraft:crafting_special_repairitem: minecraft_simple_recipe_format + if minecraft:crafting_special_tippedarrow: minecraft_simple_recipe_format + if minecraft:crafting_special_bannerduplicate: minecraft_simple_recipe_format + if minecraft:crafting_special_banneraddpattern: minecraft_simple_recipe_format + if minecraft:crafting_special_shielddecoration: minecraft_simple_recipe_format + if minecraft:crafting_special_shulkerboxcoloring: minecraft_simple_recipe_format + if minecraft:crafting_special_suspiciousstew: minecraft_simple_recipe_format + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing_transform: + template: ingredient + base: ingredient + addition: ingredient + result: slot + if minecraft:smithing_trim: + template: ingredient + base: ingredient + addition: ingredient + if minecraft:crafting_decorated_pot: minecraft_simple_recipe_format + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + sequenceId: varint + packet_clear_titles: + reset: bool + packet_initialize_world_border: + x: f64 + z: f64 + oldDiameter: f64 + newDiameter: f64 + speed: varint + portalTeleportBoundary: varint + warningBlocks: varint + warningTime: varint + packet_action_bar: + text: string + packet_world_border_center: + x: f64 + z: f64 + packet_world_border_lerp_size: + oldDiameter: f64 + newDiameter: f64 + speed: varint + packet_world_border_size: + diameter: f64 + packet_world_border_warning_delay: + warningTime: varint + packet_world_border_warning_reach: + warningBlocks: varint + packet_ping: + id: i32 + packet_set_title_subtitle: + text: string + packet_set_title_text: + text: string + packet_set_title_time: + fadeIn: i32 + stay: i32 + fadeOut: i32 + packet_simulation_distance: + distance: varint + packet_chunk_biomes: + biomes: []varint + position: packedChunkPos + data: [ + "buffer", + { + "countType": "varint" + } + ] + packet_damage_event: + entityId: varint + sourceTypeId: varint + sourceCauseId: varint + sourceDirectId: varint + sourcePosition?: vec3f64 + packet_hurt_animation: + entityId: varint + yaw: f32 + packet: + name: varint => + 0x00: bundle_delimiter + 0x01: spawn_entity + 0x02: spawn_entity_experience_orb + 0x03: named_entity_spawn + 0x04: animation + 0x05: statistics + 0x06: acknowledge_player_digging + 0x07: block_break_animation + 0x08: tile_entity_data + 0x09: block_action + 0x0a: block_change + 0x0b: boss_bar + 0x0c: difficulty + 0x0d: chunk_biomes + 0x0e: clear_titles + 0x0f: tab_complete + 0x10: declare_commands + 0x11: close_window + 0x12: window_items + 0x13: craft_progress_bar + 0x14: set_slot + 0x15: set_cooldown + 0x16: chat_suggestions + 0x17: custom_payload + 0x18: damage_event + 0x19: hide_message + 0x1a: kick_disconnect + 0x1b: profileless_chat + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: open_horse_window + 0x21: hurt_animation + 0x22: initialize_world_border + 0x23: keep_alive + 0x24: map_chunk + 0x25: world_event + 0x26: world_particles + 0x27: update_light + 0x28: login + 0x29: map + 0x2a: trade_list + 0x2b: rel_entity_move + 0x2c: entity_move_look + 0x2d: entity_look + 0x2e: vehicle_move + 0x2f: open_book + 0x30: open_window + 0x31: open_sign_entity + 0x32: ping + 0x33: craft_recipe_response + 0x34: abilities + 0x35: player_chat + 0x36: end_combat_event + 0x37: enter_combat_event + 0x38: death_combat_event + 0x39: player_remove + 0x3a: player_info + 0x3b: face_player + 0x3c: position + 0x3d: unlock_recipes + 0x3e: entity_destroy + 0x3f: remove_entity_effect + 0x40: resource_pack_send + 0x41: respawn + 0x42: entity_head_rotation + 0x43: multi_block_change + 0x44: select_advancement_tab + 0x45: server_data + 0x46: action_bar + 0x47: world_border_center + 0x48: world_border_lerp_size + 0x49: world_border_size + 0x4a: world_border_warning_delay + 0x4b: world_border_warning_reach + 0x4c: camera + 0x4d: held_item_slot + 0x4e: update_view_position + 0x4f: update_view_distance + 0x50: spawn_position + 0x51: scoreboard_display_objective + 0x52: entity_metadata + 0x53: attach_entity + 0x54: entity_velocity + 0x55: entity_equipment + 0x56: experience + 0x57: update_health + 0x58: scoreboard_objective + 0x59: set_passengers + 0x5a: teams + 0x5b: scoreboard_score + 0x5c: simulation_distance + 0x5d: set_title_subtitle + 0x5e: update_time + 0x5f: set_title_text + 0x60: set_title_time + 0x61: entity_sound_effect + 0x62: sound_effect + 0x63: stop_sound + 0x64: system_chat + 0x65: playerlist_header + 0x66: nbt_query_response + 0x67: collect + 0x68: entity_teleport + 0x69: advancements + 0x6a: entity_update_attributes + 0x6b: feature_flags + 0x6c: entity_effect + 0x6d: declare_recipes + 0x6e: tags + params: name ? + if bundle_delimiter: void + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if acknowledge_player_digging: packet_acknowledge_player_digging + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if chunk_biomes: packet_chunk_biomes + if clear_titles: packet_clear_titles + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if close_window: packet_close_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if chat_suggestions: packet_chat_suggestions + if custom_payload: packet_custom_payload + if damage_event: packet_damage_event + if hide_message: packet_hide_message + if kick_disconnect: packet_kick_disconnect + if profileless_chat: packet_profileless_chat + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if hurt_animation: packet_hurt_animation + if initialize_world_border: packet_initialize_world_border + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_window: packet_open_window + if open_sign_entity: packet_open_sign_entity + if ping: packet_ping + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if player_chat: packet_player_chat + if end_combat_event: packet_end_combat_event + if enter_combat_event: packet_enter_combat_event + if death_combat_event: packet_death_combat_event + if player_remove: packet_player_remove + if player_info: packet_player_info + if face_player: packet_face_player + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_head_rotation: packet_entity_head_rotation + if multi_block_change: packet_multi_block_change + if select_advancement_tab: packet_select_advancement_tab + if server_data: packet_server_data + if action_bar: packet_action_bar + if world_border_center: packet_world_border_center + if world_border_lerp_size: packet_world_border_lerp_size + if world_border_size: packet_world_border_size + if world_border_warning_delay: packet_world_border_warning_delay + if world_border_warning_reach: packet_world_border_warning_reach + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if spawn_position: packet_spawn_position + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if simulation_distance: packet_simulation_distance + if set_title_subtitle: packet_set_title_subtitle + if update_time: packet_update_time + if set_title_text: packet_set_title_text + if set_title_time: packet_set_title_time + if entity_sound_effect: packet_entity_sound_effect + if sound_effect: packet_sound_effect + if stop_sound: packet_stop_sound + if system_chat: packet_system_chat + if playerlist_header: packet_playerlist_header + if nbt_query_response: packet_nbt_query_response + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if advancements: packet_advancements + if entity_update_attributes: packet_entity_update_attributes + if feature_flags: packet_feature_flags + if entity_effect: packet_entity_effect + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_chat_command: + command: string + timestamp: i64 + salt: i64 + argumentSignatures: []varint + argumentName: string + signature: [ + "buffer", + { + "count": 256 + } + ] + messageCount: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_chat_message: + message: string + timestamp: i64 + salt: i64 + signature?: [ + "buffer", + { + "count": 256 + } + ] + offset: varint + acknowledged: [ + "buffer", + { + "count": 3 + } + ] + packet_set_difficulty: + newDifficulty: u8 + packet_message_acknowledgement: + count: varint + packet_edit_book: + hand: varint + pages: string[]varint + title?: string + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect?: varint + secondary_effect?: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varint + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + enableTextFiltering: bool + enableServerListing: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + stateId: varint + slot: i16 + mouseButton: i8 + mode: varint + changedSlots: []varint + location: i16 + item: slot + cursorItem: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + sequence: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + isFrontText: bool + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + sequence: varint + packet_use_item: + hand: varint + sequence: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet_pong: + id: i32 + packet_chat_session_update: + sessionUUID: UUID + expireTime: i64 + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + signature: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: message_acknowledgement + 0x04: chat_command + 0x05: chat_message + 0x06: chat_session_update + 0x07: client_command + 0x08: settings + 0x09: tab_complete + 0x0a: enchant_item + 0x0b: window_click + 0x0c: close_window + 0x0d: custom_payload + 0x0e: edit_book + 0x0f: query_entity_nbt + 0x10: use_entity + 0x11: generate_structure + 0x12: keep_alive + 0x13: lock_difficulty + 0x14: position + 0x15: position_look + 0x16: look + 0x17: flying + 0x18: vehicle_move + 0x19: steer_boat + 0x1a: pick_item + 0x1b: craft_recipe_request + 0x1c: abilities + 0x1d: block_dig + 0x1e: entity_action + 0x1f: steer_vehicle + 0x20: pong + 0x21: recipe_book + 0x22: displayed_recipe + 0x23: name_item + 0x24: resource_pack_receive + 0x25: advancement_tab + 0x26: select_trade + 0x27: set_beacon_effect + 0x28: held_item_slot + 0x29: update_command_block + 0x2a: update_command_block_minecart + 0x2b: set_creative_slot + 0x2c: update_jigsaw_block + 0x2d: update_structure_block + 0x2e: update_sign + 0x2f: arm_animation + 0x30: spectate + 0x31: block_place + 0x32: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if message_acknowledgement: packet_message_acknowledgement + if chat_command: packet_chat_command + if chat_message: packet_chat_message + if client_command: packet_client_command + if settings: packet_settings + if tab_complete: packet_tab_complete + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if pick_item: packet_pick_item + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if pong: packet_pong + if chat_session_update: packet_chat_session_update + if recipe_book: packet_recipe_book + if displayed_recipe: packet_displayed_recipe + if name_item: packet_name_item + if resource_pack_receive: packet_resource_pack_receive + if advancement_tab: packet_advancement_tab + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if held_item_slot: packet_held_item_slot + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_structure_block: packet_update_structure_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.20/protocol.json b/data/pc/1.20/protocol.json index 044c84b28..a4de0ddc4 100644 --- a/data/pc/1.20/protocol.json +++ b/data/pc/1.20/protocol.json @@ -121,7 +121,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -291,7 +292,8 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - } + }, + "default": "void" } ] }, @@ -482,7 +484,8 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -1219,7 +1222,8 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -1238,7 +1242,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -1317,8 +1322,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -1332,7 +1337,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -1372,8 +1378,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -1387,7 +1393,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1420,8 +1427,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -1435,7 +1442,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1561,11 +1569,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1582,7 +1590,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1657,9 +1666,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1674,7 +1683,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -5139,7 +5149,8 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - } + }, + "default": "void" } ] } @@ -5434,117 +5445,117 @@ { "type": "varint", "mappings": { - "0x00": "bundle_delimiter", - "0x01": "spawn_entity", - "0x02": "spawn_entity_experience_orb", - "0x03": "named_entity_spawn", - "0x04": "animation", - "0x05": "statistics", - "0x06": "acknowledge_player_digging", - "0x07": "block_break_animation", - "0x08": "tile_entity_data", - "0x09": "block_action", - "0x0a": "block_change", - "0x0b": "boss_bar", - "0x0c": "difficulty", - "0x0d": "chunk_biomes", - "0x0e": "clear_titles", - "0x0f": "tab_complete", - "0x10": "declare_commands", - "0x11": "close_window", - "0x12": "window_items", - "0x13": "craft_progress_bar", - "0x14": "set_slot", - "0x15": "set_cooldown", - "0x16": "chat_suggestions", - "0x17": "custom_payload", - "0x18": "damage_event", - "0x19": "hide_message", - "0x1a": "kick_disconnect", - "0x1b": "profileless_chat", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "hurt_animation", - "0x22": "initialize_world_border", - "0x23": "keep_alive", - "0x24": "map_chunk", - "0x25": "world_event", - "0x26": "world_particles", - "0x27": "update_light", - "0x28": "login", - "0x29": "map", - "0x2a": "trade_list", - "0x2b": "rel_entity_move", - "0x2c": "entity_move_look", - "0x2d": "entity_look", - "0x2e": "vehicle_move", - "0x2f": "open_book", - "0x30": "open_window", - "0x31": "open_sign_entity", - "0x32": "ping", - "0x33": "craft_recipe_response", - "0x34": "abilities", - "0x35": "player_chat", - "0x36": "end_combat_event", - "0x37": "enter_combat_event", - "0x38": "death_combat_event", - "0x39": "player_remove", - "0x3a": "player_info", - "0x3b": "face_player", - "0x3c": "position", - "0x3d": "unlock_recipes", - "0x3e": "entity_destroy", - "0x3f": "remove_entity_effect", - "0x40": "resource_pack_send", - "0x41": "respawn", - "0x42": "entity_head_rotation", - "0x43": "multi_block_change", - "0x44": "select_advancement_tab", - "0x45": "server_data", - "0x46": "action_bar", - "0x47": "world_border_center", - "0x48": "world_border_lerp_size", - "0x49": "world_border_size", - "0x4a": "world_border_warning_delay", - "0x4b": "world_border_warning_reach", - "0x4c": "camera", - "0x4d": "held_item_slot", - "0x4e": "update_view_position", - "0x4f": "update_view_distance", - "0x50": "spawn_position", - "0x51": "scoreboard_display_objective", - "0x52": "entity_metadata", - "0x53": "attach_entity", - "0x54": "entity_velocity", - "0x55": "entity_equipment", - "0x56": "experience", - "0x57": "update_health", - "0x58": "scoreboard_objective", - "0x59": "set_passengers", - "0x5a": "teams", - "0x5b": "scoreboard_score", - "0x5c": "simulation_distance", - "0x5d": "set_title_subtitle", - "0x5e": "update_time", - "0x5f": "set_title_text", - "0x60": "set_title_time", - "0x61": "entity_sound_effect", - "0x62": "sound_effect", - "0x63": "stop_sound", - "0x64": "system_chat", - "0x65": "playerlist_header", - "0x66": "nbt_query_response", - "0x67": "collect", - "0x68": "entity_teleport", - "0x69": "advancements", - "0x6a": "entity_update_attributes", - "0x6b": "feature_flags", - "0x6c": "entity_effect", - "0x6d": "declare_recipes", - "0x6e": "tags" + "0": "bundle_delimiter", + "1": "spawn_entity", + "2": "spawn_entity_experience_orb", + "3": "named_entity_spawn", + "4": "animation", + "5": "statistics", + "6": "acknowledge_player_digging", + "7": "block_break_animation", + "8": "tile_entity_data", + "9": "block_action", + "10": "block_change", + "11": "boss_bar", + "12": "difficulty", + "13": "chunk_biomes", + "14": "clear_titles", + "15": "tab_complete", + "16": "declare_commands", + "17": "close_window", + "18": "window_items", + "19": "craft_progress_bar", + "20": "set_slot", + "21": "set_cooldown", + "22": "chat_suggestions", + "23": "custom_payload", + "24": "damage_event", + "25": "hide_message", + "26": "kick_disconnect", + "27": "profileless_chat", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "open_horse_window", + "33": "hurt_animation", + "34": "initialize_world_border", + "35": "keep_alive", + "36": "map_chunk", + "37": "world_event", + "38": "world_particles", + "39": "update_light", + "40": "login", + "41": "map", + "42": "trade_list", + "43": "rel_entity_move", + "44": "entity_move_look", + "45": "entity_look", + "46": "vehicle_move", + "47": "open_book", + "48": "open_window", + "49": "open_sign_entity", + "50": "ping", + "51": "craft_recipe_response", + "52": "abilities", + "53": "player_chat", + "54": "end_combat_event", + "55": "enter_combat_event", + "56": "death_combat_event", + "57": "player_remove", + "58": "player_info", + "59": "face_player", + "60": "position", + "61": "unlock_recipes", + "62": "entity_destroy", + "63": "remove_entity_effect", + "64": "resource_pack_send", + "65": "respawn", + "66": "entity_head_rotation", + "67": "multi_block_change", + "68": "select_advancement_tab", + "69": "server_data", + "70": "action_bar", + "71": "world_border_center", + "72": "world_border_lerp_size", + "73": "world_border_size", + "74": "world_border_warning_delay", + "75": "world_border_warning_reach", + "76": "camera", + "77": "held_item_slot", + "78": "update_view_position", + "79": "update_view_distance", + "80": "spawn_position", + "81": "scoreboard_display_objective", + "82": "entity_metadata", + "83": "attach_entity", + "84": "entity_velocity", + "85": "entity_equipment", + "86": "experience", + "87": "update_health", + "88": "scoreboard_objective", + "89": "set_passengers", + "90": "teams", + "91": "scoreboard_score", + "92": "simulation_distance", + "93": "set_title_subtitle", + "94": "update_time", + "95": "set_title_text", + "96": "set_title_time", + "97": "entity_sound_effect", + "98": "sound_effect", + "99": "stop_sound", + "100": "system_chat", + "101": "playerlist_header", + "102": "nbt_query_response", + "103": "collect", + "104": "entity_teleport", + "105": "advancements", + "106": "entity_update_attributes", + "107": "feature_flags", + "108": "entity_effect", + "109": "declare_recipes", + "110": "tags" } } ] @@ -5667,7 +5678,8 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -6652,7 +6664,8 @@ "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -6708,57 +6721,57 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "message_acknowledgement", - "0x04": "chat_command", - "0x05": "chat_message", - "0x06": "chat_session_update", - "0x07": "client_command", - "0x08": "settings", - "0x09": "tab_complete", - "0x0a": "enchant_item", - "0x0b": "window_click", - "0x0c": "close_window", - "0x0d": "custom_payload", - "0x0e": "edit_book", - "0x0f": "query_entity_nbt", - "0x10": "use_entity", - "0x11": "generate_structure", - "0x12": "keep_alive", - "0x13": "lock_difficulty", - "0x14": "position", - "0x15": "position_look", - "0x16": "look", - "0x17": "flying", - "0x18": "vehicle_move", - "0x19": "steer_boat", - "0x1a": "pick_item", - "0x1b": "craft_recipe_request", - "0x1c": "abilities", - "0x1d": "block_dig", - "0x1e": "entity_action", - "0x1f": "steer_vehicle", - "0x20": "pong", - "0x21": "recipe_book", - "0x22": "displayed_recipe", - "0x23": "name_item", - "0x24": "resource_pack_receive", - "0x25": "advancement_tab", - "0x26": "select_trade", - "0x27": "set_beacon_effect", - "0x28": "held_item_slot", - "0x29": "update_command_block", - "0x2a": "update_command_block_minecart", - "0x2b": "set_creative_slot", - "0x2c": "update_jigsaw_block", - "0x2d": "update_structure_block", - "0x2e": "update_sign", - "0x2f": "arm_animation", - "0x30": "spectate", - "0x31": "block_place", - "0x32": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "message_acknowledgement", + "4": "chat_command", + "5": "chat_message", + "6": "chat_session_update", + "7": "client_command", + "8": "settings", + "9": "tab_complete", + "10": "enchant_item", + "11": "window_click", + "12": "close_window", + "13": "custom_payload", + "14": "edit_book", + "15": "query_entity_nbt", + "16": "use_entity", + "17": "generate_structure", + "18": "keep_alive", + "19": "lock_difficulty", + "20": "position", + "21": "position_look", + "22": "look", + "23": "flying", + "24": "vehicle_move", + "25": "steer_boat", + "26": "pick_item", + "27": "craft_recipe_request", + "28": "abilities", + "29": "block_dig", + "30": "entity_action", + "31": "steer_vehicle", + "32": "pong", + "33": "recipe_book", + "34": "displayed_recipe", + "35": "name_item", + "36": "resource_pack_receive", + "37": "advancement_tab", + "38": "select_trade", + "39": "set_beacon_effect", + "40": "held_item_slot", + "41": "update_command_block", + "42": "update_command_block_minecart", + "43": "set_creative_slot", + "44": "update_jigsaw_block", + "45": "update_structure_block", + "46": "update_sign", + "47": "arm_animation", + "48": "spectate", + "49": "block_place", + "50": "use_item" } } ] @@ -6821,7 +6834,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } diff --git a/data/pc/1.7/proto.yml b/data/pc/1.7/proto.yml new file mode 100644 index 000000000..bfdea925c --- /dev/null +++ b/data/pc/1.7/proto.yml @@ -0,0 +1,922 @@ +!version: 1.7 + +^types: + varint: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + compressedNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: compressedNbt + position_iii: + x: i32 + y: i32 + z: i32 + position_isi: + x: i32 + y: i16 + z: i32 + position_ibi: + x: i32 + y: u8 + z: i32 + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: i16 + if 2: i32 + if 3: f32 + if 4: string + if 5: slot + if 6: + x: i32 + y: i32 + z: i32 + if 7: + pitch: f32 + yaw: f32 + roll: f32 + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 127, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "type", + "size": 3, + "signed": false + }, + { + "name": "key", + "size": 5, + "signed": false + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "i16" + } + ] + verifyToken: [ + "buffer", + { + "countType": "i16" + } + ] + packet_success: + uuid: string + username: string + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "i16" + } + ] + verifyToken: [ + "buffer", + { + "countType": "i16" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_keep_alive: + keepAliveId: i32 + packet_login: + entityId: i32 + gameMode: u8 + dimension: i8 + difficulty: u8 + maxPlayers: u8 + levelType: string + packet_chat: + message: string + packet_update_time: + age: i64 + time: i64 + packet_entity_equipment: + entityId: i32 + slot: i16 + item: slot + packet_spawn_position: + location: position_iii + packet_update_health: + health: f32 + food: i16 + foodSaturation: f32 + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_held_item_slot: + slot: i8 + packet_bed: + entityId: i32 + location: position_ibi + packet_animation: + entityId: varint + animation: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: string + playerName: string + data: []varint + name: string + value: string + signature: string + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + currentItem: i16 + metadata: entityMetadata + packet_collect: + collectedEntityId: i32 + collectorEntityId: i32 + packet_spawn_entity: + entityId: varint + type: i8 + x: i32 + y: i32 + z: i32 + pitch: i8 + yaw: i8 + objectData: + intField: i32 + velocityX: intField ? + if 0: void + default: i16 + velocityY: intField ? + if 0: void + default: i16 + velocityZ: intField ? + if 0: void + default: i16 + packet_spawn_entity_living: + entityId: varint + type: u8 + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + title: string + location: position_iii + direction: i32 + packet_spawn_entity_experience_orb: + entityId: varint + x: i32 + y: i32 + z: i32 + count: i16 + packet_entity_velocity: + entityId: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_destroy: + entityIds: i32[]i8 + packet_entity: + entityId: i32 + packet_rel_entity_move: + entityId: i32 + dX: i8 + dY: i8 + dZ: i8 + packet_entity_look: + entityId: i32 + yaw: i8 + pitch: i8 + packet_entity_move_look: + entityId: i32 + dX: i8 + dY: i8 + dZ: i8 + yaw: i8 + pitch: i8 + packet_entity_teleport: + entityId: i32 + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + packet_entity_head_rotation: + entityId: i32 + headYaw: i8 + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_attach_entity: + entityId: i32 + vehicleId: i32 + leash: bool + packet_entity_metadata: + entityId: i32 + metadata: entityMetadata + packet_entity_effect: + entityId: i32 + effectId: i8 + amplifier: i8 + duration: i16 + packet_remove_entity_effect: + entityId: i32 + effectId: i8 + packet_experience: + experienceBar: f32 + level: i16 + totalExperience: i16 + packet_update_attributes: + entityId: i32 + properties: []i32 + key: string + value: f64 + modifiers: []i16 + uuid: UUID + amount: f64 + operation: i8 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: u16 + addBitMap: u16 + compressedChunkData: [ + "buffer", + { + "countType": "i32" + } + ] + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + recordCount: [ + "count", + { + "type": "i16", + "countFor": "records" + } + ] + dataLength: i32 + records: []$recordCount + _: [ + "bitfield", + [ + { + "name": "metadata", + "size": 4, + "signed": false + }, + { + "name": "blockId", + "size": 12, + "signed": false + } + ] + ] + y: u8 + _: [ + "bitfield", + [ + { + "name": "z", + "size": 4, + "signed": false + }, + { + "name": "x", + "size": 4, + "signed": false + } + ] + ] + packet_block_change: + location: position_ibi + type: varint + metadata: u8 + packet_block_action: + location: position_isi + byte1: u8 + byte2: u8 + blockId: varint + packet_block_break_animation: + entityId: varint + location: position_iii + destroyStage: i8 + packet_map_chunk_bulk: + chunkColumnCount: [ + "count", + { + "type": "i16", + "countFor": "meta" + } + ] + dataLength: [ + "count", + { + "type": "i32", + "countFor": "compressedChunkData" + } + ] + skyLightSent: bool + compressedChunkData: [ + "buffer", + { + "count": "dataLength" + } + ] + meta: []$chunkColumnCount + x: i32 + z: i32 + bitMap: u16 + addBitMap: u16 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_world_event: + effectId: i32 + location: position_ibi + data: i32 + global: bool + packet_named_sound_effect: + soundName: string + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_world_particles: + particleName: string + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: i32 + y: i32 + z: i32 + packet_open_window: + windowId: u8 + inventoryType: u8 + windowTitle: string + slotCount: u8 + useProvidedTitle: bool + entityId: inventoryType ? + if 11: i32 + default: void + packet_close_window: + windowId: u8 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_transaction: + windowId: u8 + action: i16 + accepted: bool + packet_update_sign: + location: position_isi + text1: string + text2: string + text3: string + text4: string + packet_map: + itemDamage: varint + data: [ + "buffer", + { + "countType": "i16" + } + ] + packet_tile_entity_data: + location: position_isi + action: u8 + nbtData: compressedNbt + packet_open_sign_entity: + location: position_iii + packet_statistics: + entries: []varint + name: string + value: varint + packet_player_info: + playerName: string + online: bool + ping: i16 + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_tab_complete: + matches: string[]varint + packet_scoreboard_objective: + name: string + displayText: string + action: i8 + packet_scoreboard_score: + itemName: string + action: i8 + scoreName: action ? + if 1: void + default: string + value: action ? + if 1: void + default: i32 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_scoreboard_team: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]i16 + if 3: string[]i16 + if 4: string[]i16 + default: void + packet_custom_payload: + channel: string + data: [ + "buffer", + { + "countType": "i16" + } + ] + packet_kick_disconnect: + reason: string + packet: + name: varint => + 0x00: keep_alive + 0x01: login + 0x02: chat + 0x03: update_time + 0x04: entity_equipment + 0x05: spawn_position + 0x06: update_health + 0x07: respawn + 0x08: position + 0x09: held_item_slot + 0x0a: bed + 0x0b: animation + 0x0c: named_entity_spawn + 0x0d: collect + 0x0e: spawn_entity + 0x0f: spawn_entity_living + 0x10: spawn_entity_painting + 0x11: spawn_entity_experience_orb + 0x12: entity_velocity + 0x13: entity_destroy + 0x14: entity + 0x15: rel_entity_move + 0x16: entity_look + 0x17: entity_move_look + 0x18: entity_teleport + 0x19: entity_head_rotation + 0x1a: entity_status + 0x1b: attach_entity + 0x1c: entity_metadata + 0x1d: entity_effect + 0x1e: remove_entity_effect + 0x1f: experience + 0x20: update_attributes + 0x21: map_chunk + 0x22: multi_block_change + 0x23: block_change + 0x24: block_action + 0x25: block_break_animation + 0x26: map_chunk_bulk + 0x27: explosion + 0x28: world_event + 0x29: named_sound_effect + 0x2a: world_particles + 0x2b: game_state_change + 0x2c: spawn_entity_weather + 0x2d: open_window + 0x2e: close_window + 0x2f: set_slot + 0x30: window_items + 0x31: craft_progress_bar + 0x32: transaction + 0x33: update_sign + 0x34: map + 0x35: tile_entity_data + 0x36: open_sign_entity + 0x37: statistics + 0x38: player_info + 0x39: abilities + 0x3a: tab_complete + 0x3b: scoreboard_objective + 0x3c: scoreboard_score + 0x3d: scoreboard_display_objective + 0x3e: scoreboard_team + 0x3f: custom_payload + 0x40: kick_disconnect + params: name ? + if keep_alive: packet_keep_alive + if login: packet_login + if chat: packet_chat + if update_time: packet_update_time + if entity_equipment: packet_entity_equipment + if spawn_position: packet_spawn_position + if update_health: packet_update_health + if respawn: packet_respawn + if position: packet_position + if held_item_slot: packet_held_item_slot + if bed: packet_bed + if animation: packet_animation + if named_entity_spawn: packet_named_entity_spawn + if collect: packet_collect + if spawn_entity: packet_spawn_entity + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if entity_velocity: packet_entity_velocity + if entity_destroy: packet_entity_destroy + if entity: packet_entity + if rel_entity_move: packet_rel_entity_move + if entity_look: packet_entity_look + if entity_move_look: packet_entity_move_look + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_status: packet_entity_status + if attach_entity: packet_attach_entity + if entity_metadata: packet_entity_metadata + if entity_effect: packet_entity_effect + if remove_entity_effect: packet_remove_entity_effect + if experience: packet_experience + if update_attributes: packet_update_attributes + if map_chunk: packet_map_chunk + if multi_block_change: packet_multi_block_change + if block_change: packet_block_change + if block_action: packet_block_action + if block_break_animation: packet_block_break_animation + if map_chunk_bulk: packet_map_chunk_bulk + if explosion: packet_explosion + if world_event: packet_world_event + if named_sound_effect: packet_named_sound_effect + if world_particles: packet_world_particles + if game_state_change: packet_game_state_change + if spawn_entity_weather: packet_spawn_entity_weather + if open_window: packet_open_window + if close_window: packet_close_window + if set_slot: packet_set_slot + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if transaction: packet_transaction + if update_sign: packet_update_sign + if map: packet_map + if tile_entity_data: packet_tile_entity_data + if open_sign_entity: packet_open_sign_entity + if statistics: packet_statistics + if player_info: packet_player_info + if abilities: packet_abilities + if tab_complete: packet_tab_complete + if scoreboard_objective: packet_scoreboard_objective + if scoreboard_score: packet_scoreboard_score + if scoreboard_display_objective: packet_scoreboard_display_objective + if scoreboard_team: packet_scoreboard_team + if custom_payload: packet_custom_payload + if kick_disconnect: packet_kick_disconnect + +^play.toServer.types: + packet_keep_alive: + keepAliveId: i32 + packet_chat: + message: string + packet_use_entity: + target: i32 + mouse: i8 + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + packet_flying: + onGround: bool + packet_position: + x: f64 + stance: f64 + y: f64 + z: f64 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_position_look: + x: f64 + stance: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_block_dig: + status: i8 + location: position_ibi + face: i8 + packet_block_place: + location: position_ibi + direction: i8 + heldItem: slot + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_held_item_slot: + slotId: i16 + packet_arm_animation: + entityId: i32 + animation: i8 + packet_entity_action: + entityId: i32 + actionId: i8 + jumpBoost: i32 + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: bool + unmount: bool + packet_close_window: + windowId: u8 + packet_window_click: + windowId: i8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_set_creative_slot: + slot: i16 + item: slot + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_update_sign: + location: position_isi + text1: string + text2: string + text3: string + text4: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_tab_complete: + text: string + packet_settings: + locale: string + viewDistance: i8 + chatFlags: i8 + chatColors: bool + difficulty: u8 + showCape: bool + packet_client_command: + payload: i8 + packet_custom_payload: + channel: string + data: [ + "buffer", + { + "countType": "i16" + } + ] + packet: + name: varint => + 0x00: keep_alive + 0x01: chat + 0x02: use_entity + 0x03: flying + 0x04: position + 0x05: look + 0x06: position_look + 0x07: block_dig + 0x08: block_place + 0x09: held_item_slot + 0x0a: arm_animation + 0x0b: entity_action + 0x0c: steer_vehicle + 0x0d: close_window + 0x0e: window_click + 0x0f: transaction + 0x10: set_creative_slot + 0x11: enchant_item + 0x12: update_sign + 0x13: abilities + 0x14: tab_complete + 0x15: settings + 0x16: client_command + 0x17: custom_payload + params: name ? + if keep_alive: packet_keep_alive + if chat: packet_chat + if use_entity: packet_use_entity + if flying: packet_flying + if position: packet_position + if look: packet_look + if position_look: packet_position_look + if block_dig: packet_block_dig + if block_place: packet_block_place + if held_item_slot: packet_held_item_slot + if arm_animation: packet_arm_animation + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if close_window: packet_close_window + if window_click: packet_window_click + if transaction: packet_transaction + if set_creative_slot: packet_set_creative_slot + if enchant_item: packet_enchant_item + if update_sign: packet_update_sign + if abilities: packet_abilities + if tab_complete: packet_tab_complete + if settings: packet_settings + if client_command: packet_client_command + if custom_payload: packet_custom_payload diff --git a/data/pc/1.7/protocol.json b/data/pc/1.7/protocol.json index 6c52a0a0b..aa32edc1c 100644 --- a/data/pc/1.7/protocol.json +++ b/data/pc/1.7/protocol.json @@ -163,7 +163,8 @@ } ] ] - } + }, + "default": "void" } ], "entityMetadata": [ @@ -277,8 +278,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -292,7 +293,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -332,8 +334,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -347,7 +349,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -380,8 +383,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -395,7 +398,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -466,9 +470,9 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success" + "0": "disconnect", + "1": "encryption_begin", + "2": "success" } } ] @@ -483,7 +487,8 @@ "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", "success": "packet_success" - } + }, + "default": "void" } ] } @@ -535,8 +540,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -550,7 +555,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -2218,71 +2224,71 @@ { "type": "varint", "mappings": { - "0x00": "keep_alive", - "0x01": "login", - "0x02": "chat", - "0x03": "update_time", - "0x04": "entity_equipment", - "0x05": "spawn_position", - "0x06": "update_health", - "0x07": "respawn", - "0x08": "position", - "0x09": "held_item_slot", - "0x0a": "bed", - "0x0b": "animation", - "0x0c": "named_entity_spawn", - "0x0d": "collect", - "0x0e": "spawn_entity", - "0x0f": "spawn_entity_living", - "0x10": "spawn_entity_painting", - "0x11": "spawn_entity_experience_orb", - "0x12": "entity_velocity", - "0x13": "entity_destroy", - "0x14": "entity", - "0x15": "rel_entity_move", - "0x16": "entity_look", - "0x17": "entity_move_look", - "0x18": "entity_teleport", - "0x19": "entity_head_rotation", - "0x1a": "entity_status", - "0x1b": "attach_entity", - "0x1c": "entity_metadata", - "0x1d": "entity_effect", - "0x1e": "remove_entity_effect", - "0x1f": "experience", - "0x20": "update_attributes", - "0x21": "map_chunk", - "0x22": "multi_block_change", - "0x23": "block_change", - "0x24": "block_action", - "0x25": "block_break_animation", - "0x26": "map_chunk_bulk", - "0x27": "explosion", - "0x28": "world_event", - "0x29": "named_sound_effect", - "0x2a": "world_particles", - "0x2b": "game_state_change", - "0x2c": "spawn_entity_weather", - "0x2d": "open_window", - "0x2e": "close_window", - "0x2f": "set_slot", - "0x30": "window_items", - "0x31": "craft_progress_bar", - "0x32": "transaction", - "0x33": "update_sign", - "0x34": "map", - "0x35": "tile_entity_data", - "0x36": "open_sign_entity", - "0x37": "statistics", - "0x38": "player_info", - "0x39": "abilities", - "0x3a": "tab_complete", - "0x3b": "scoreboard_objective", - "0x3c": "scoreboard_score", - "0x3d": "scoreboard_display_objective", - "0x3e": "scoreboard_team", - "0x3f": "custom_payload", - "0x40": "kick_disconnect" + "0": "keep_alive", + "1": "login", + "2": "chat", + "3": "update_time", + "4": "entity_equipment", + "5": "spawn_position", + "6": "update_health", + "7": "respawn", + "8": "position", + "9": "held_item_slot", + "10": "bed", + "11": "animation", + "12": "named_entity_spawn", + "13": "collect", + "14": "spawn_entity", + "15": "spawn_entity_living", + "16": "spawn_entity_painting", + "17": "spawn_entity_experience_orb", + "18": "entity_velocity", + "19": "entity_destroy", + "20": "entity", + "21": "rel_entity_move", + "22": "entity_look", + "23": "entity_move_look", + "24": "entity_teleport", + "25": "entity_head_rotation", + "26": "entity_status", + "27": "attach_entity", + "28": "entity_metadata", + "29": "entity_effect", + "30": "remove_entity_effect", + "31": "experience", + "32": "update_attributes", + "33": "map_chunk", + "34": "multi_block_change", + "35": "block_change", + "36": "block_action", + "37": "block_break_animation", + "38": "map_chunk_bulk", + "39": "explosion", + "40": "world_event", + "41": "named_sound_effect", + "42": "world_particles", + "43": "game_state_change", + "44": "spawn_entity_weather", + "45": "open_window", + "46": "close_window", + "47": "set_slot", + "48": "window_items", + "49": "craft_progress_bar", + "50": "transaction", + "51": "update_sign", + "52": "map", + "53": "tile_entity_data", + "54": "open_sign_entity", + "55": "statistics", + "56": "player_info", + "57": "abilities", + "58": "tab_complete", + "59": "scoreboard_objective", + "60": "scoreboard_score", + "61": "scoreboard_display_objective", + "62": "scoreboard_team", + "63": "custom_payload", + "64": "kick_disconnect" } } ] @@ -2359,7 +2365,8 @@ "scoreboard_team": "packet_scoreboard_team", "custom_payload": "packet_custom_payload", "kick_disconnect": "packet_kick_disconnect" - } + }, + "default": "void" } ] } @@ -2827,30 +2834,30 @@ { "type": "varint", "mappings": { - "0x00": "keep_alive", - "0x01": "chat", - "0x02": "use_entity", - "0x03": "flying", - "0x04": "position", - "0x05": "look", - "0x06": "position_look", - "0x07": "block_dig", - "0x08": "block_place", - "0x09": "held_item_slot", - "0x0a": "arm_animation", - "0x0b": "entity_action", - "0x0c": "steer_vehicle", - "0x0d": "close_window", - "0x0e": "window_click", - "0x0f": "transaction", - "0x10": "set_creative_slot", - "0x11": "enchant_item", - "0x12": "update_sign", - "0x13": "abilities", - "0x14": "tab_complete", - "0x15": "settings", - "0x16": "client_command", - "0x17": "custom_payload" + "0": "keep_alive", + "1": "chat", + "2": "use_entity", + "3": "flying", + "4": "position", + "5": "look", + "6": "position_look", + "7": "block_dig", + "8": "block_place", + "9": "held_item_slot", + "10": "arm_animation", + "11": "entity_action", + "12": "steer_vehicle", + "13": "close_window", + "14": "window_click", + "15": "transaction", + "16": "set_creative_slot", + "17": "enchant_item", + "18": "update_sign", + "19": "abilities", + "20": "tab_complete", + "21": "settings", + "22": "client_command", + "23": "custom_payload" } } ] @@ -2886,7 +2893,8 @@ "settings": "packet_settings", "client_command": "packet_client_command", "custom_payload": "packet_custom_payload" - } + }, + "default": "void" } ] } @@ -2895,4 +2903,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.8/proto.yml b/data/pc/1.8/proto.yml new file mode 100644 index 000000000..384ad4b74 --- /dev/null +++ b/data/pc/1.8/proto.yml @@ -0,0 +1,1035 @@ +!version: 1.8 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: i16 + if 2: i32 + if 3: f32 + if 4: string + if 5: slot + if 6: + x: i32 + y: i32 + z: i32 + if 7: + pitch: f32 + yaw: f32 + roll: f32 + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 127, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "type", + "size": 3, + "signed": false + }, + { + "name": "key", + "size": 5, + "signed": false + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_keep_alive: + keepAliveId: varint + packet_login: + entityId: i32 + gameMode: u8 + dimension: i8 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_chat: + message: string + position: i8 + packet_update_time: + age: i64 + time: i64 + packet_entity_equipment: + entityId: varint + slot: i16 + item: slot + packet_spawn_position: + location: position + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + packet_held_item_slot: + slot: i8 + packet_bed: + entityId: varint + location: position + packet_animation: + entityId: varint + animation: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + currentItem: i16 + metadata: entityMetadata + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_spawn_entity: + entityId: varint + type: i8 + x: i32 + y: i32 + z: i32 + pitch: i8 + yaw: i8 + objectData: + intField: i32 + velocityX: intField ? + if 0: void + default: i16 + velocityY: intField ? + if 0: void + default: i16 + velocityZ: intField ? + if 0: void + default: i16 + packet_spawn_entity_living: + entityId: varint + type: u8 + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + title: string + location: position + direction: u8 + packet_spawn_entity_experience_orb: + entityId: varint + x: i32 + y: i32 + z: i32 + count: i16 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_destroy: + entityIds: varint[]varint + packet_entity: + entityId: varint + packet_rel_entity_move: + entityId: varint + dX: i8 + dY: i8 + dZ: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i8 + dY: i8 + dZ: i8 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_teleport: + entityId: varint + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_attach_entity: + entityId: i32 + vehicleId: i32 + leash: bool + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: bool + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: u16 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_map_chunk_bulk: + skyLightSent: bool + meta: []varint + x: i32 + z: i32 + bitMap: u16 + data: restBuffer + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_named_sound_effect: + soundName: string + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: i32 + y: i32 + z: i32 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_close_window: + windowId: u8 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_map: + itemDamage: varint + scale: i8 + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_open_sign_entity: + location: position + packet_statistics: + entries: []varint + name: string + value: varint + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_tab_complete: + matches: string[]varint + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_scoreboard_team: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_custom_payload: + channel: string + data: restBuffer + packet_kick_disconnect: + reason: string + packet_difficulty: + difficulty: u8 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_camera: + cameraId: varint + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_set_compression: + threshold: varint + packet_playerlist_header: + header: string + footer: string + packet_resource_pack_send: + url: string + hash: string + packet_update_entity_nbt: + entityId: varint + tag: nbt + packet: + name: varint => + 0x00: keep_alive + 0x01: login + 0x02: chat + 0x03: update_time + 0x04: entity_equipment + 0x05: spawn_position + 0x06: update_health + 0x07: respawn + 0x08: position + 0x09: held_item_slot + 0x0a: bed + 0x0b: animation + 0x0c: named_entity_spawn + 0x0d: collect + 0x0e: spawn_entity + 0x0f: spawn_entity_living + 0x10: spawn_entity_painting + 0x11: spawn_entity_experience_orb + 0x12: entity_velocity + 0x13: entity_destroy + 0x14: entity + 0x15: rel_entity_move + 0x16: entity_look + 0x17: entity_move_look + 0x18: entity_teleport + 0x19: entity_head_rotation + 0x1a: entity_status + 0x1b: attach_entity + 0x1c: entity_metadata + 0x1d: entity_effect + 0x1e: remove_entity_effect + 0x1f: experience + 0x20: update_attributes + 0x21: map_chunk + 0x22: multi_block_change + 0x23: block_change + 0x24: block_action + 0x25: block_break_animation + 0x26: map_chunk_bulk + 0x27: explosion + 0x28: world_event + 0x29: named_sound_effect + 0x2a: world_particles + 0x2b: game_state_change + 0x2c: spawn_entity_weather + 0x2d: open_window + 0x2e: close_window + 0x2f: set_slot + 0x30: window_items + 0x31: craft_progress_bar + 0x32: transaction + 0x33: update_sign + 0x34: map + 0x35: tile_entity_data + 0x36: open_sign_entity + 0x37: statistics + 0x38: player_info + 0x39: abilities + 0x3a: tab_complete + 0x3b: scoreboard_objective + 0x3c: scoreboard_score + 0x3d: scoreboard_display_objective + 0x3e: scoreboard_team + 0x3f: custom_payload + 0x40: kick_disconnect + 0x41: difficulty + 0x42: combat_event + 0x43: camera + 0x44: world_border + 0x45: title + 0x46: set_compression + 0x47: playerlist_header + 0x48: resource_pack_send + 0x49: update_entity_nbt + params: name ? + if keep_alive: packet_keep_alive + if login: packet_login + if chat: packet_chat + if update_time: packet_update_time + if entity_equipment: packet_entity_equipment + if spawn_position: packet_spawn_position + if update_health: packet_update_health + if respawn: packet_respawn + if position: packet_position + if held_item_slot: packet_held_item_slot + if bed: packet_bed + if animation: packet_animation + if named_entity_spawn: packet_named_entity_spawn + if collect: packet_collect + if spawn_entity: packet_spawn_entity + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if entity_velocity: packet_entity_velocity + if entity_destroy: packet_entity_destroy + if entity: packet_entity + if rel_entity_move: packet_rel_entity_move + if entity_look: packet_entity_look + if entity_move_look: packet_entity_move_look + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_status: packet_entity_status + if attach_entity: packet_attach_entity + if entity_metadata: packet_entity_metadata + if entity_effect: packet_entity_effect + if remove_entity_effect: packet_remove_entity_effect + if experience: packet_experience + if update_attributes: packet_update_attributes + if map_chunk: packet_map_chunk + if multi_block_change: packet_multi_block_change + if block_change: packet_block_change + if block_action: packet_block_action + if block_break_animation: packet_block_break_animation + if map_chunk_bulk: packet_map_chunk_bulk + if explosion: packet_explosion + if world_event: packet_world_event + if named_sound_effect: packet_named_sound_effect + if world_particles: packet_world_particles + if game_state_change: packet_game_state_change + if spawn_entity_weather: packet_spawn_entity_weather + if open_window: packet_open_window + if close_window: packet_close_window + if set_slot: packet_set_slot + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if transaction: packet_transaction + if update_sign: packet_update_sign + if map: packet_map + if tile_entity_data: packet_tile_entity_data + if open_sign_entity: packet_open_sign_entity + if statistics: packet_statistics + if player_info: packet_player_info + if abilities: packet_abilities + if tab_complete: packet_tab_complete + if scoreboard_objective: packet_scoreboard_objective + if scoreboard_score: packet_scoreboard_score + if scoreboard_display_objective: packet_scoreboard_display_objective + if scoreboard_team: packet_scoreboard_team + if custom_payload: packet_custom_payload + if kick_disconnect: packet_kick_disconnect + if difficulty: packet_difficulty + if combat_event: packet_combat_event + if camera: packet_camera + if world_border: packet_world_border + if title: packet_title + if set_compression: packet_set_compression + if playerlist_header: packet_playerlist_header + if resource_pack_send: packet_resource_pack_send + if update_entity_nbt: packet_update_entity_nbt + +^play.toServer.types: + packet_keep_alive: + keepAliveId: varint + packet_chat: + message: string + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + packet_flying: + onGround: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_block_dig: + status: varint + location: position + face: i8 + packet_block_place: + location: position + direction: i8 + heldItem: slot + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_held_item_slot: + slotId: i16 + packet_arm_animation: + # Empty + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_close_window: + windowId: u8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_set_creative_slot: + slot: i16 + item: slot + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_tab_complete: + text: string + block?: position + packet_settings: + locale: string + viewDistance: i8 + chatFlags: i8 + chatColors: bool + skinParts: u8 + packet_client_command: + payload: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_spectate: + target: UUID + packet_resource_pack_receive: + hash: string + result: varint + packet: + name: varint => + 0x00: keep_alive + 0x01: chat + 0x02: use_entity + 0x03: flying + 0x04: position + 0x05: look + 0x06: position_look + 0x07: block_dig + 0x08: block_place + 0x09: held_item_slot + 0x0a: arm_animation + 0x0b: entity_action + 0x0c: steer_vehicle + 0x0d: close_window + 0x0e: window_click + 0x0f: transaction + 0x10: set_creative_slot + 0x11: enchant_item + 0x12: update_sign + 0x13: abilities + 0x14: tab_complete + 0x15: settings + 0x16: client_command + 0x17: custom_payload + 0x18: spectate + 0x19: resource_pack_receive + params: name ? + if keep_alive: packet_keep_alive + if chat: packet_chat + if use_entity: packet_use_entity + if flying: packet_flying + if position: packet_position + if look: packet_look + if position_look: packet_position_look + if block_dig: packet_block_dig + if block_place: packet_block_place + if held_item_slot: packet_held_item_slot + if arm_animation: packet_arm_animation + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if close_window: packet_close_window + if window_click: packet_window_click + if transaction: packet_transaction + if set_creative_slot: packet_set_creative_slot + if enchant_item: packet_enchant_item + if update_sign: packet_update_sign + if abilities: packet_abilities + if tab_complete: packet_tab_complete + if settings: packet_settings + if client_command: packet_client_command + if custom_payload: packet_custom_payload + if spectate: packet_spectate + if resource_pack_receive: packet_resource_pack_receive diff --git a/data/pc/1.8/protocol.json b/data/pc/1.8/protocol.json index a37b9aeb0..d1609be76 100644 --- a/data/pc/1.8/protocol.json +++ b/data/pc/1.8/protocol.json @@ -133,7 +133,8 @@ } ] ] - } + }, + "default": "void" } ], "entityMetadata": [ @@ -247,8 +248,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -262,7 +263,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -302,8 +304,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -317,7 +319,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -350,8 +353,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -365,7 +368,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -445,10 +449,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -464,7 +468,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -516,8 +521,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -531,7 +536,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1614,14 +1620,34 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] }, - "default":"void" + "default": "void" } ] } @@ -2683,80 +2709,80 @@ { "type": "varint", "mappings": { - "0x00": "keep_alive", - "0x01": "login", - "0x02": "chat", - "0x03": "update_time", - "0x04": "entity_equipment", - "0x05": "spawn_position", - "0x06": "update_health", - "0x07": "respawn", - "0x08": "position", - "0x09": "held_item_slot", - "0x0a": "bed", - "0x0b": "animation", - "0x0c": "named_entity_spawn", - "0x0d": "collect", - "0x0e": "spawn_entity", - "0x0f": "spawn_entity_living", - "0x10": "spawn_entity_painting", - "0x11": "spawn_entity_experience_orb", - "0x12": "entity_velocity", - "0x13": "entity_destroy", - "0x14": "entity", - "0x15": "rel_entity_move", - "0x16": "entity_look", - "0x17": "entity_move_look", - "0x18": "entity_teleport", - "0x19": "entity_head_rotation", - "0x1a": "entity_status", - "0x1b": "attach_entity", - "0x1c": "entity_metadata", - "0x1d": "entity_effect", - "0x1e": "remove_entity_effect", - "0x1f": "experience", - "0x20": "update_attributes", - "0x21": "map_chunk", - "0x22": "multi_block_change", - "0x23": "block_change", - "0x24": "block_action", - "0x25": "block_break_animation", - "0x26": "map_chunk_bulk", - "0x27": "explosion", - "0x28": "world_event", - "0x29": "named_sound_effect", - "0x2a": "world_particles", - "0x2b": "game_state_change", - "0x2c": "spawn_entity_weather", - "0x2d": "open_window", - "0x2e": "close_window", - "0x2f": "set_slot", - "0x30": "window_items", - "0x31": "craft_progress_bar", - "0x32": "transaction", - "0x33": "update_sign", - "0x34": "map", - "0x35": "tile_entity_data", - "0x36": "open_sign_entity", - "0x37": "statistics", - "0x38": "player_info", - "0x39": "abilities", - "0x3a": "tab_complete", - "0x3b": "scoreboard_objective", - "0x3c": "scoreboard_score", - "0x3d": "scoreboard_display_objective", - "0x3e": "scoreboard_team", - "0x3f": "custom_payload", - "0x40": "kick_disconnect", - "0x41": "difficulty", - "0x42": "combat_event", - "0x43": "camera", - "0x44": "world_border", - "0x45": "title", - "0x46": "set_compression", - "0x47": "playerlist_header", - "0x48": "resource_pack_send", - "0x49": "update_entity_nbt" + "0": "keep_alive", + "1": "login", + "2": "chat", + "3": "update_time", + "4": "entity_equipment", + "5": "spawn_position", + "6": "update_health", + "7": "respawn", + "8": "position", + "9": "held_item_slot", + "10": "bed", + "11": "animation", + "12": "named_entity_spawn", + "13": "collect", + "14": "spawn_entity", + "15": "spawn_entity_living", + "16": "spawn_entity_painting", + "17": "spawn_entity_experience_orb", + "18": "entity_velocity", + "19": "entity_destroy", + "20": "entity", + "21": "rel_entity_move", + "22": "entity_look", + "23": "entity_move_look", + "24": "entity_teleport", + "25": "entity_head_rotation", + "26": "entity_status", + "27": "attach_entity", + "28": "entity_metadata", + "29": "entity_effect", + "30": "remove_entity_effect", + "31": "experience", + "32": "update_attributes", + "33": "map_chunk", + "34": "multi_block_change", + "35": "block_change", + "36": "block_action", + "37": "block_break_animation", + "38": "map_chunk_bulk", + "39": "explosion", + "40": "world_event", + "41": "named_sound_effect", + "42": "world_particles", + "43": "game_state_change", + "44": "spawn_entity_weather", + "45": "open_window", + "46": "close_window", + "47": "set_slot", + "48": "window_items", + "49": "craft_progress_bar", + "50": "transaction", + "51": "update_sign", + "52": "map", + "53": "tile_entity_data", + "54": "open_sign_entity", + "55": "statistics", + "56": "player_info", + "57": "abilities", + "58": "tab_complete", + "59": "scoreboard_objective", + "60": "scoreboard_score", + "61": "scoreboard_display_objective", + "62": "scoreboard_team", + "63": "custom_payload", + "64": "kick_disconnect", + "65": "difficulty", + "66": "combat_event", + "67": "camera", + "68": "world_border", + "69": "title", + "70": "set_compression", + "71": "playerlist_header", + "72": "resource_pack_send", + "73": "update_entity_nbt" } } ] @@ -2842,7 +2868,8 @@ "playerlist_header": "packet_playerlist_header", "resource_pack_send": "packet_resource_pack_send", "update_entity_nbt": "packet_update_entity_nbt" - } + }, + "default": "void" } ] } @@ -3309,32 +3336,32 @@ { "type": "varint", "mappings": { - "0x00": "keep_alive", - "0x01": "chat", - "0x02": "use_entity", - "0x03": "flying", - "0x04": "position", - "0x05": "look", - "0x06": "position_look", - "0x07": "block_dig", - "0x08": "block_place", - "0x09": "held_item_slot", - "0x0a": "arm_animation", - "0x0b": "entity_action", - "0x0c": "steer_vehicle", - "0x0d": "close_window", - "0x0e": "window_click", - "0x0f": "transaction", - "0x10": "set_creative_slot", - "0x11": "enchant_item", - "0x12": "update_sign", - "0x13": "abilities", - "0x14": "tab_complete", - "0x15": "settings", - "0x16": "client_command", - "0x17": "custom_payload", - "0x18": "spectate", - "0x19": "resource_pack_receive" + "0": "keep_alive", + "1": "chat", + "2": "use_entity", + "3": "flying", + "4": "position", + "5": "look", + "6": "position_look", + "7": "block_dig", + "8": "block_place", + "9": "held_item_slot", + "10": "arm_animation", + "11": "entity_action", + "12": "steer_vehicle", + "13": "close_window", + "14": "window_click", + "15": "transaction", + "16": "set_creative_slot", + "17": "enchant_item", + "18": "update_sign", + "19": "abilities", + "20": "tab_complete", + "21": "settings", + "22": "client_command", + "23": "custom_payload", + "24": "spectate", + "25": "resource_pack_receive" } } ] @@ -3372,7 +3399,8 @@ "custom_payload": "packet_custom_payload", "spectate": "packet_spectate", "resource_pack_receive": "packet_resource_pack_receive" - } + }, + "default": "void" } ] } @@ -3381,4 +3409,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.9.1-pre2/proto.yml b/data/pc/1.9.1-pre2/proto.yml new file mode 100644 index 000000000..37c4caa5c --- /dev/null +++ b/data/pc/1.9.1-pre2/proto.yml @@ -0,0 +1,1109 @@ +!version: 1.9.1-pre2 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: update_sign + 0x47: sound_effect + 0x48: playerlist_header + 0x49: collect + 0x4a: entity_teleport + 0x4b: entity_update_attributes + 0x4c: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if update_sign: packet_update_sign + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + hash: string + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.9.1-pre2/protocol.json b/data/pc/1.9.1-pre2/protocol.json index eb9caf1d8..2f25eee6d 100644 --- a/data/pc/1.9.1-pre2/protocol.json +++ b/data/pc/1.9.1-pre2/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1409,15 +1415,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2796,83 +2822,83 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "update_sign", - "0x47": "sound_effect", - "0x48": "playerlist_header", - "0x49": "collect", - "0x4a": "entity_teleport", - "0x4b": "entity_update_attributes", - "0x4c": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "update_sign", + "71": "sound_effect", + "72": "playerlist_header", + "73": "collect", + "74": "entity_teleport", + "75": "entity_update_attributes", + "76": "entity_effect" } } ] @@ -2961,7 +2987,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3511,36 +3538,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3582,7 +3609,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3591,4 +3619,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.9.2/proto.yml b/data/pc/1.9.2/proto.yml new file mode 100644 index 000000000..d152ef208 --- /dev/null +++ b/data/pc/1.9.2/proto.yml @@ -0,0 +1,1109 @@ +!version: 1.9.2 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: update_sign + 0x47: sound_effect + 0x48: playerlist_header + 0x49: collect + 0x4a: entity_teleport + 0x4b: entity_update_attributes + 0x4c: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if update_sign: packet_update_sign + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + hash: string + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.9.2/protocol.json b/data/pc/1.9.2/protocol.json index eb9caf1d8..2f25eee6d 100644 --- a/data/pc/1.9.2/protocol.json +++ b/data/pc/1.9.2/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1409,15 +1415,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2796,83 +2822,83 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "update_sign", - "0x47": "sound_effect", - "0x48": "playerlist_header", - "0x49": "collect", - "0x4a": "entity_teleport", - "0x4b": "entity_update_attributes", - "0x4c": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "update_sign", + "71": "sound_effect", + "72": "playerlist_header", + "73": "collect", + "74": "entity_teleport", + "75": "entity_update_attributes", + "76": "entity_effect" } } ] @@ -2961,7 +2987,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3511,36 +3538,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3582,7 +3609,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3591,4 +3619,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.9.4/proto.yml b/data/pc/1.9.4/proto.yml new file mode 100644 index 000000000..ac07cba4e --- /dev/null +++ b/data/pc/1.9.4/proto.yml @@ -0,0 +1,1102 @@ +!version: 1.9.4 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: sound_effect + 0x47: playerlist_header + 0x48: collect + 0x49: entity_teleport + 0x4a: entity_update_attributes + 0x4b: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + hash: string + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.9.4/protocol.json b/data/pc/1.9.4/protocol.json index eadb09f7c..023f6d47b 100644 --- a/data/pc/1.9.4/protocol.json +++ b/data/pc/1.9.4/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1344,9 +1350,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1418,15 +1425,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2780,82 +2807,82 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "sound_effect", + "71": "playerlist_header", + "72": "collect", + "73": "entity_teleport", + "74": "entity_update_attributes", + "75": "entity_effect" } } ] @@ -2943,7 +2970,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3493,36 +3521,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3564,7 +3592,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3573,4 +3602,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/1.9/proto.yml b/data/pc/1.9/proto.yml new file mode 100644 index 000000000..a7db93447 --- /dev/null +++ b/data/pc/1.9/proto.yml @@ -0,0 +1,1109 @@ +!version: 1.9 + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i8 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: update_sign + 0x47: sound_effect + 0x48: playerlist_header + 0x49: collect + 0x4a: entity_teleport + 0x4b: entity_update_attributes + 0x4c: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if update_sign: packet_update_sign + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + hash: string + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/1.9/protocol.json b/data/pc/1.9/protocol.json index a54596498..8a07fa2a0 100644 --- a/data/pc/1.9/protocol.json +++ b/data/pc/1.9/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1409,15 +1415,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2796,83 +2822,83 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "update_sign", - "0x47": "sound_effect", - "0x48": "playerlist_header", - "0x49": "collect", - "0x4a": "entity_teleport", - "0x4b": "entity_update_attributes", - "0x4c": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "update_sign", + "71": "sound_effect", + "72": "playerlist_header", + "73": "collect", + "74": "entity_teleport", + "75": "entity_update_attributes", + "76": "entity_effect" } } ] @@ -2961,7 +2987,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3511,36 +3538,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3582,7 +3609,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3591,4 +3619,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/15w40b/proto.yml b/data/pc/15w40b/proto.yml new file mode 100644 index 000000000..904243242 --- /dev/null +++ b/data/pc/15w40b/proto.yml @@ -0,0 +1,1070 @@ +!version: 15w40b + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_keep_alive: + keepAliveId: varint + packet_login: + entityId: i32 + gameMode: u8 + dimension: i8 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_chat: + message: string + position: i8 + packet_update_time: + age: i64 + time: i64 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_spawn_position: + location: position + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + packet_held_item_slot: + slot: i8 + packet_bed: + entityId: varint + location: position + packet_animation: + entityId: varint + animation: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_spawn_entity: + entityId: varint + entityUUID: UUID + type: i8 + x: i32 + y: i32 + z: i32 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + title: string + location: position + direction: u8 + packet_spawn_entity_experience_orb: + entityId: varint + x: i32 + y: i32 + z: i32 + count: i16 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_destroy: + entityIds: varint[]varint + packet_entity: + entityId: varint + packet_rel_entity_move: + entityId: varint + dX: i8 + dY: i8 + dZ: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i8 + dY: i8 + dZ: i8 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_teleport: + entityId: varint + x: i32 + y: i32 + z: i32 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_attach_entity: + entityId: i32 + vehicleId: i32 + leash: bool + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: bool + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_named_sound_effect: + soundName: string + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: u8 + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: i32 + y: i32 + z: i32 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_close_window: + windowId: u8 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_open_sign_entity: + location: position + packet_statistics: + entries: []varint + name: string + value: varint + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_tab_complete: + matches: string[]varint + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_scoreboard_team: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_custom_payload: + channel: string + data: restBuffer + packet_kick_disconnect: + reason: string + packet_difficulty: + difficulty: u8 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_camera: + cameraId: varint + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_set_compression: + threshold: varint + packet_playerlist_header: + header: string + footer: string + packet_resource_pack_send: + url: string + hash: string + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet: + name: varint => + 0x1f: keep_alive + 0x24: login + 0x0f: chat + 0x43: update_time + 0x3c: entity_equipment + 0x42: spawn_position + 0x3e: update_health + 0x33: respawn + 0x2e: position + 0x37: held_item_slot + 0x2f: bed + 0x06: animation + 0x05: named_entity_spawn + 0x47: collect + 0x00: spawn_entity + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x01: spawn_entity_experience_orb + 0x3b: entity_velocity + 0x30: entity_destroy + 0x29: entity + 0x26: rel_entity_move + 0x28: entity_look + 0x27: entity_move_look + 0x48: entity_teleport + 0x34: entity_head_rotation + 0x1a: entity_status + 0x3a: attach_entity + 0x39: entity_metadata + 0x4a: entity_effect + 0x31: remove_entity_effect + 0x3d: experience + 0x49: update_attributes + 0x20: map_chunk + 0x10: multi_block_change + 0x0b: block_change + 0x0a: block_action + 0x08: block_break_animation + 0x1b: explosion + 0x21: world_event + 0x23: named_sound_effect + 0x22: world_particles + 0x1e: game_state_change + 0x02: spawn_entity_weather + 0x13: open_window + 0x12: close_window + 0x16: set_slot + 0x14: window_items + 0x15: craft_progress_bar + 0x11: transaction + 0x45: update_sign + 0x25: map + 0x09: tile_entity_data + 0x2a: open_sign_entity + 0x07: statistics + 0x2d: player_info + 0x2b: abilities + 0x0e: tab_complete + 0x3f: scoreboard_objective + 0x41: scoreboard_score + 0x38: scoreboard_display_objective + 0x40: scoreboard_team + 0x18: custom_payload + 0x19: kick_disconnect + 0x0d: difficulty + 0x2c: combat_event + 0x36: camera + 0x35: world_border + 0x44: title + 0x1d: set_compression + 0x46: playerlist_header + 0x32: resource_pack_send + 0x0c: boss_bar + 0x17: set_cooldown + 0x1c: unload_chunk + params: name ? + if keep_alive: packet_keep_alive + if login: packet_login + if chat: packet_chat + if update_time: packet_update_time + if entity_equipment: packet_entity_equipment + if spawn_position: packet_spawn_position + if update_health: packet_update_health + if respawn: packet_respawn + if position: packet_position + if held_item_slot: packet_held_item_slot + if bed: packet_bed + if animation: packet_animation + if named_entity_spawn: packet_named_entity_spawn + if collect: packet_collect + if spawn_entity: packet_spawn_entity + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if entity_velocity: packet_entity_velocity + if entity_destroy: packet_entity_destroy + if entity: packet_entity + if rel_entity_move: packet_rel_entity_move + if entity_look: packet_entity_look + if entity_move_look: packet_entity_move_look + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_status: packet_entity_status + if attach_entity: packet_attach_entity + if entity_metadata: packet_entity_metadata + if entity_effect: packet_entity_effect + if remove_entity_effect: packet_remove_entity_effect + if experience: packet_experience + if update_attributes: packet_update_attributes + if map_chunk: packet_map_chunk + if multi_block_change: packet_multi_block_change + if block_change: packet_block_change + if block_action: packet_block_action + if block_break_animation: packet_block_break_animation + if explosion: packet_explosion + if world_event: packet_world_event + if named_sound_effect: packet_named_sound_effect + if world_particles: packet_world_particles + if game_state_change: packet_game_state_change + if spawn_entity_weather: packet_spawn_entity_weather + if open_window: packet_open_window + if close_window: packet_close_window + if set_slot: packet_set_slot + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if transaction: packet_transaction + if update_sign: packet_update_sign + if map: packet_map + if tile_entity_data: packet_tile_entity_data + if open_sign_entity: packet_open_sign_entity + if statistics: packet_statistics + if player_info: packet_player_info + if abilities: packet_abilities + if tab_complete: packet_tab_complete + if scoreboard_objective: packet_scoreboard_objective + if scoreboard_score: packet_scoreboard_score + if scoreboard_display_objective: packet_scoreboard_display_objective + if scoreboard_team: packet_scoreboard_team + if custom_payload: packet_custom_payload + if kick_disconnect: packet_kick_disconnect + if difficulty: packet_difficulty + if combat_event: packet_combat_event + if camera: packet_camera + if world_border: packet_world_border + if title: packet_title + if set_compression: packet_set_compression + if playerlist_header: packet_playerlist_header + if resource_pack_send: packet_resource_pack_send + if boss_bar: packet_boss_bar + if set_cooldown: packet_set_cooldown + if unload_chunk: packet_unload_chunk + +^play.toServer.types: + packet_keep_alive: + keepAliveId: varint + packet_chat: + message: string + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_flying: + onGround: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_block_dig: + status: varint + location: position + face: i8 + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_held_item_slot: + slotId: i16 + packet_arm_animation: + hand: varint + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_close_window: + windowId: u8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_set_creative_slot: + slot: i16 + item: slot + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_tab_complete: + text: string + block?: position + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_client_command: + payload: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_spectate: + target: UUID + packet_resource_pack_receive: + hash: string + result: varint + packet_use_item: + hand: varint + packet: + name: varint => + 0x0a: keep_alive + 0x01: chat + 0x09: use_entity + 0x0e: flying + 0x0b: position + 0x0d: look + 0x0c: position_look + 0x10: block_dig + 0x19: block_place + 0x14: held_item_slot + 0x17: arm_animation + 0x11: entity_action + 0x12: steer_vehicle + 0x07: close_window + 0x06: window_click + 0x04: transaction + 0x15: set_creative_slot + 0x05: enchant_item + 0x16: update_sign + 0x0f: abilities + 0x00: tab_complete + 0x03: settings + 0x02: client_command + 0x08: custom_payload + 0x18: spectate + 0x13: resource_pack_receive + 0x1a: use_item + params: name ? + if keep_alive: packet_keep_alive + if chat: packet_chat + if use_entity: packet_use_entity + if flying: packet_flying + if position: packet_position + if look: packet_look + if position_look: packet_position_look + if block_dig: packet_block_dig + if block_place: packet_block_place + if held_item_slot: packet_held_item_slot + if arm_animation: packet_arm_animation + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if close_window: packet_close_window + if window_click: packet_window_click + if transaction: packet_transaction + if set_creative_slot: packet_set_creative_slot + if enchant_item: packet_enchant_item + if update_sign: packet_update_sign + if abilities: packet_abilities + if tab_complete: packet_tab_complete + if settings: packet_settings + if client_command: packet_client_command + if custom_payload: packet_custom_payload + if spectate: packet_spectate + if resource_pack_receive: packet_resource_pack_receive + if use_item: packet_use_item diff --git a/data/pc/15w40b/protocol.json b/data/pc/15w40b/protocol.json index 003bdd958..adfe4c904 100644 --- a/data/pc/15w40b/protocol.json +++ b/data/pc/15w40b/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1537,15 +1543,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2720,81 +2746,81 @@ { "type": "varint", "mappings": { - "0x1f": "keep_alive", - "0x24": "login", - "0x0f": "chat", - "0x43": "update_time", - "0x3c": "entity_equipment", - "0x42": "spawn_position", - "0x3e": "update_health", - "0x33": "respawn", - "0x2e": "position", - "0x37": "held_item_slot", - "0x2f": "bed", - "0x06": "animation", - "0x05": "named_entity_spawn", - "0x47": "collect", - "0x00": "spawn_entity", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x01": "spawn_entity_experience_orb", - "0x3b": "entity_velocity", - "0x30": "entity_destroy", - "0x29": "entity", - "0x26": "rel_entity_move", - "0x28": "entity_look", - "0x27": "entity_move_look", - "0x48": "entity_teleport", - "0x34": "entity_head_rotation", - "0x1a": "entity_status", - "0x3a": "attach_entity", - "0x39": "entity_metadata", - "0x4a": "entity_effect", - "0x31": "remove_entity_effect", - "0x3d": "experience", - "0x49": "update_attributes", - "0x20": "map_chunk", - "0x10": "multi_block_change", - "0x0b": "block_change", - "0x0a": "block_action", - "0x08": "block_break_animation", - "0x1b": "explosion", - "0x21": "world_event", - "0x23": "named_sound_effect", - "0x22": "world_particles", - "0x1e": "game_state_change", - "0x02": "spawn_entity_weather", - "0x13": "open_window", - "0x12": "close_window", - "0x16": "set_slot", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x11": "transaction", - "0x45": "update_sign", - "0x25": "map", - "0x09": "tile_entity_data", - "0x2a": "open_sign_entity", - "0x07": "statistics", - "0x2d": "player_info", - "0x2b": "abilities", - "0x0e": "tab_complete", - "0x3f": "scoreboard_objective", - "0x41": "scoreboard_score", - "0x38": "scoreboard_display_objective", - "0x40": "scoreboard_team", - "0x18": "custom_payload", - "0x19": "kick_disconnect", - "0x0d": "difficulty", - "0x2c": "combat_event", - "0x36": "camera", - "0x35": "world_border", - "0x44": "title", - "0x1d": "set_compression", - "0x46": "playerlist_header", - "0x32": "resource_pack_send", - "0x0c": "boss_bar", - "0x17": "set_cooldown", - "0x1c": "unload_chunk" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "kick_disconnect", + "26": "entity_status", + "27": "explosion", + "28": "unload_chunk", + "29": "set_compression", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "named_sound_effect", + "36": "login", + "37": "map", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "entity", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "scoreboard_team", + "65": "scoreboard_score", + "66": "spawn_position", + "67": "update_time", + "68": "title", + "69": "update_sign", + "70": "playerlist_header", + "71": "collect", + "72": "entity_teleport", + "73": "update_attributes", + "74": "entity_effect" } } ] @@ -2881,7 +2907,8 @@ "boss_bar": "packet_boss_bar", "set_cooldown": "packet_set_cooldown", "unload_chunk": "packet_unload_chunk" - } + }, + "default": "void" } ] } @@ -3380,33 +3407,33 @@ { "type": "varint", "mappings": { - "0x0a": "keep_alive", - "0x01": "chat", - "0x09": "use_entity", - "0x0e": "flying", - "0x0b": "position", - "0x0d": "look", - "0x0c": "position_look", - "0x10": "block_dig", - "0x19": "block_place", - "0x14": "held_item_slot", - "0x17": "arm_animation", - "0x11": "entity_action", - "0x12": "steer_vehicle", - "0x07": "close_window", - "0x06": "window_click", - "0x04": "transaction", - "0x15": "set_creative_slot", - "0x05": "enchant_item", - "0x16": "update_sign", - "0x0f": "abilities", - "0x00": "tab_complete", - "0x03": "settings", - "0x02": "client_command", - "0x08": "custom_payload", - "0x18": "spectate", - "0x13": "resource_pack_receive", - "0x1a": "use_item" + "0": "tab_complete", + "1": "chat", + "2": "client_command", + "3": "settings", + "4": "transaction", + "5": "enchant_item", + "6": "window_click", + "7": "close_window", + "8": "custom_payload", + "9": "use_entity", + "10": "keep_alive", + "11": "position", + "12": "position_look", + "13": "look", + "14": "flying", + "15": "abilities", + "16": "block_dig", + "17": "entity_action", + "18": "steer_vehicle", + "19": "resource_pack_receive", + "20": "held_item_slot", + "21": "set_creative_slot", + "22": "update_sign", + "23": "arm_animation", + "24": "spectate", + "25": "block_place", + "26": "use_item" } } ] @@ -3445,7 +3472,8 @@ "spectate": "packet_spectate", "resource_pack_receive": "packet_resource_pack_receive", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3454,4 +3482,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/16w20a/proto.yml b/data/pc/16w20a/proto.yml new file mode 100644 index 000000000..cb7d84342 --- /dev/null +++ b/data/pc/16w20a/proto.yml @@ -0,0 +1,1102 @@ +!version: 16w20a + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: u8 + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: sound_effect + 0x47: playerlist_header + 0x48: collect + 0x49: entity_teleport + 0x4a: entity_update_attributes + 0x4b: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + hash: string + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/16w20a/protocol.json b/data/pc/16w20a/protocol.json index 1e8c69756..4234d54b1 100644 --- a/data/pc/16w20a/protocol.json +++ b/data/pc/16w20a/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1344,9 +1350,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1418,15 +1425,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2780,82 +2807,82 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "sound_effect", + "71": "playerlist_header", + "72": "collect", + "73": "entity_teleport", + "74": "entity_update_attributes", + "75": "entity_effect" } } ] @@ -2943,7 +2970,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3493,36 +3521,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3564,7 +3592,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3573,4 +3602,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/16w35a/proto.yml b/data/pc/16w35a/proto.yml new file mode 100644 index 000000000..dae685bab --- /dev/null +++ b/data/pc/16w35a/proto.yml @@ -0,0 +1,1102 @@ +!version: 16w35a + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + default: void + fadeIn: action ? + if 2: i32 + default: void + stay: action ? + if 2: i32 + default: void + fadeOut: action ? + if 2: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: tab_complete + 0x0f: chat + 0x10: multi_block_change + 0x11: transaction + 0x12: close_window + 0x13: open_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: keep_alive + 0x20: map_chunk + 0x21: world_event + 0x22: world_particles + 0x23: login + 0x24: map + 0x25: rel_entity_move + 0x26: entity_move_look + 0x27: entity_look + 0x28: entity + 0x29: vehicle_move + 0x2a: open_sign_entity + 0x2b: abilities + 0x2c: combat_event + 0x2d: player_info + 0x2e: position + 0x2f: bed + 0x30: entity_destroy + 0x31: remove_entity_effect + 0x32: resource_pack_send + 0x33: respawn + 0x34: entity_head_rotation + 0x35: world_border + 0x36: camera + 0x37: held_item_slot + 0x38: scoreboard_display_objective + 0x39: entity_metadata + 0x3a: attach_entity + 0x3b: entity_velocity + 0x3c: entity_equipment + 0x3d: experience + 0x3e: update_health + 0x3f: scoreboard_objective + 0x40: set_passengers + 0x41: teams + 0x42: scoreboard_score + 0x43: spawn_position + 0x44: update_time + 0x45: title + 0x46: sound_effect + 0x47: playerlist_header + 0x48: collect + 0x49: entity_teleport + 0x4a: entity_update_attributes + 0x4b: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: i8 + cursorY: i8 + cursorZ: i8 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: tab_complete + 0x02: chat + 0x03: client_command + 0x04: settings + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: position + 0x0d: position_look + 0x0e: look + 0x0f: flying + 0x10: vehicle_move + 0x11: steer_boat + 0x12: abilities + 0x13: block_dig + 0x14: entity_action + 0x15: steer_vehicle + 0x16: resource_pack_receive + 0x17: held_item_slot + 0x18: set_creative_slot + 0x19: update_sign + 0x1a: arm_animation + 0x1b: spectate + 0x1c: block_place + 0x1d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/16w35a/protocol.json b/data/pc/16w35a/protocol.json index ce34aaf97..9009cdcaf 100644 --- a/data/pc/16w35a/protocol.json +++ b/data/pc/16w35a/protocol.json @@ -128,7 +128,8 @@ "UUID" ], "12": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -240,8 +241,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -255,7 +256,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -295,8 +297,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -310,7 +312,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -343,8 +346,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -358,7 +361,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -438,10 +442,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -457,7 +461,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -509,8 +514,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -524,7 +529,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1344,9 +1350,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1418,15 +1425,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2784,82 +2811,82 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "tab_complete", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "transaction", - "0x12": "close_window", - "0x13": "open_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "keep_alive", - "0x20": "map_chunk", - "0x21": "world_event", - "0x22": "world_particles", - "0x23": "login", - "0x24": "map", - "0x25": "rel_entity_move", - "0x26": "entity_move_look", - "0x27": "entity_look", - "0x28": "entity", - "0x29": "vehicle_move", - "0x2a": "open_sign_entity", - "0x2b": "abilities", - "0x2c": "combat_event", - "0x2d": "player_info", - "0x2e": "position", - "0x2f": "bed", - "0x30": "entity_destroy", - "0x31": "remove_entity_effect", - "0x32": "resource_pack_send", - "0x33": "respawn", - "0x34": "entity_head_rotation", - "0x35": "world_border", - "0x36": "camera", - "0x37": "held_item_slot", - "0x38": "scoreboard_display_objective", - "0x39": "entity_metadata", - "0x3a": "attach_entity", - "0x3b": "entity_velocity", - "0x3c": "entity_equipment", - "0x3d": "experience", - "0x3e": "update_health", - "0x3f": "scoreboard_objective", - "0x40": "set_passengers", - "0x41": "teams", - "0x42": "scoreboard_score", - "0x43": "spawn_position", - "0x44": "update_time", - "0x45": "title", - "0x46": "sound_effect", - "0x47": "playerlist_header", - "0x48": "collect", - "0x49": "entity_teleport", - "0x4a": "entity_update_attributes", - "0x4b": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "tab_complete", + "15": "chat", + "16": "multi_block_change", + "17": "transaction", + "18": "close_window", + "19": "open_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "keep_alive", + "32": "map_chunk", + "33": "world_event", + "34": "world_particles", + "35": "login", + "36": "map", + "37": "rel_entity_move", + "38": "entity_move_look", + "39": "entity_look", + "40": "entity", + "41": "vehicle_move", + "42": "open_sign_entity", + "43": "abilities", + "44": "combat_event", + "45": "player_info", + "46": "position", + "47": "bed", + "48": "entity_destroy", + "49": "remove_entity_effect", + "50": "resource_pack_send", + "51": "respawn", + "52": "entity_head_rotation", + "53": "world_border", + "54": "camera", + "55": "held_item_slot", + "56": "scoreboard_display_objective", + "57": "entity_metadata", + "58": "attach_entity", + "59": "entity_velocity", + "60": "entity_equipment", + "61": "experience", + "62": "update_health", + "63": "scoreboard_objective", + "64": "set_passengers", + "65": "teams", + "66": "scoreboard_score", + "67": "spawn_position", + "68": "update_time", + "69": "title", + "70": "sound_effect", + "71": "playerlist_header", + "72": "collect", + "73": "entity_teleport", + "74": "entity_update_attributes", + "75": "entity_effect" } } ] @@ -2947,7 +2974,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3493,36 +3521,36 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "tab_complete", - "0x02": "chat", - "0x03": "client_command", - "0x04": "settings", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "position", - "0x0d": "position_look", - "0x0e": "look", - "0x0f": "flying", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "abilities", - "0x13": "block_dig", - "0x14": "entity_action", - "0x15": "steer_vehicle", - "0x16": "resource_pack_receive", - "0x17": "held_item_slot", - "0x18": "set_creative_slot", - "0x19": "update_sign", - "0x1a": "arm_animation", - "0x1b": "spectate", - "0x1c": "block_place", - "0x1d": "use_item" + "0": "teleport_confirm", + "1": "tab_complete", + "2": "chat", + "3": "client_command", + "4": "settings", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "position", + "13": "position_look", + "14": "look", + "15": "flying", + "16": "vehicle_move", + "17": "steer_boat", + "18": "abilities", + "19": "block_dig", + "20": "entity_action", + "21": "steer_vehicle", + "22": "resource_pack_receive", + "23": "held_item_slot", + "24": "set_creative_slot", + "25": "update_sign", + "26": "arm_animation", + "27": "spectate", + "28": "block_place", + "29": "use_item" } } ] @@ -3564,7 +3592,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3573,4 +3602,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/17w15a/proto.yml b/data/pc/17w15a/proto.yml new file mode 100644 index 000000000..6b52f141f --- /dev/null +++ b/data/pc/17w15a/proto.yml @@ -0,0 +1,1165 @@ +!version: 17w15a + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: varint + frameType: varint + backgroundTexture?: string + xCord: varint + yCord: varint + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + notification: bool + craftingBookOpen: bool + filteringCraftable: bool + recipes: []varint + identifier: string + isUnlocked: bool + hasBeenDisplayed: bool + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundCategory: varint + soundId: varint + parrottedEntityType: string + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: advancements + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: tab_complete + 0x10: chat + 0x11: multi_block_change + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: login + 0x25: map + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: entity + 0x2a: vehicle_move + 0x2b: open_sign_entity + 0x2c: abilities + 0x2d: combat_event + 0x2e: player_info + 0x2f: position + 0x30: bed + 0x31: unlock_recipes + 0x32: entity_destroy + 0x33: remove_entity_effect + 0x34: resource_pack_send + 0x35: respawn + 0x36: entity_head_rotation + 0x37: world_border + 0x38: camera + 0x39: held_item_slot + 0x3a: scoreboard_display_objective + 0x3b: entity_metadata + 0x3c: attach_entity + 0x3d: entity_velocity + 0x3e: entity_equipment + 0x3f: experience + 0x40: update_health + 0x41: scoreboard_objective + 0x42: set_passengers + 0x43: teams + 0x44: scoreboard_score + 0x45: spawn_position + 0x46: update_time + 0x47: title + 0x48: sound_effect + 0x49: playerlist_header + 0x4a: collect + 0x4b: entity_teleport + 0x4c: entity_update_attributes + 0x4d: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_prepare_crafting_grid: + windowId: u8 + actionNumber: u16 + returnEntry: []u8 + item: slot + craftingSlot: u8 + playerSlot: u8 + prepareEntry: []u8 + item: slot + craftingSlot: u8 + playerSlot: u8 + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: i32 + _: type ? + if 1: + displayedRecipe: string + if 2: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: prepare_crafting_grid + 0x02: tab_complete + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: use_entity + 0x0c: keep_alive + 0x0d: position + 0x0e: position_look + 0x0f: look + 0x10: flying + 0x11: vehicle_move + 0x12: steer_boat + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: held_item_slot + 0x1a: set_creative_slot + 0x1b: update_sign + 0x1c: arm_animation + 0x1d: spectate + 0x1e: block_place + 0x1f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if prepare_crafting_grid: packet_prepare_crafting_grid + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/17w15a/protocol.json b/data/pc/17w15a/protocol.json index f7aac2e38..c7b995ce6 100644 --- a/data/pc/17w15a/protocol.json +++ b/data/pc/17w15a/protocol.json @@ -129,7 +129,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -241,8 +242,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -256,7 +257,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -296,8 +298,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -311,7 +313,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -344,8 +347,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -359,7 +362,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -439,10 +443,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -458,7 +462,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -510,8 +515,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -525,7 +530,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -1520,9 +1526,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1594,15 +1601,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2137,8 +2164,8 @@ "type": [ "array", { - "countType":"varint", - "type":[ + "countType": "varint", + "type": [ "container", [ { @@ -3008,84 +3035,84 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "advancements", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "tab_complete", - "0x10": "chat", - "0x11": "multi_block_change", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "entity_update_attributes", - "0x4d": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "advancements", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "tab_complete", + "16": "chat", + "17": "multi_block_change", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "login", + "37": "map", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "entity", + "42": "vehicle_move", + "43": "open_sign_entity", + "44": "abilities", + "45": "combat_event", + "46": "player_info", + "47": "position", + "48": "bed", + "49": "unlock_recipes", + "50": "entity_destroy", + "51": "remove_entity_effect", + "52": "resource_pack_send", + "53": "respawn", + "54": "entity_head_rotation", + "55": "world_border", + "56": "camera", + "57": "held_item_slot", + "58": "scoreboard_display_objective", + "59": "entity_metadata", + "60": "attach_entity", + "61": "entity_velocity", + "62": "entity_equipment", + "63": "experience", + "64": "update_health", + "65": "scoreboard_objective", + "66": "set_passengers", + "67": "teams", + "68": "scoreboard_score", + "69": "spawn_position", + "70": "update_time", + "71": "title", + "72": "sound_effect", + "73": "playerlist_header", + "74": "collect", + "75": "entity_teleport", + "76": "entity_update_attributes", + "77": "entity_effect" } } ] @@ -3175,7 +3202,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3210,7 +3238,7 @@ "type": [ "array", { - "countType":"u8", + "countType": "u8", "type": [ "container", [ @@ -3236,8 +3264,8 @@ "type": [ "array", { - "countType":"u8", - "type":[ + "countType": "u8", + "type": [ "container", [ { @@ -3672,13 +3700,13 @@ "type": "i32" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "1":[ + "compareTo": "type", + "fields": { + "1": [ "container", [ { @@ -3700,7 +3728,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -3828,38 +3857,38 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "flying", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "held_item_slot", - "0x1a": "set_creative_slot", - "0x1b": "update_sign", - "0x1c": "arm_animation", - "0x1d": "spectate", - "0x1e": "block_place", - "0x1f": "use_item" + "0": "teleport_confirm", + "1": "prepare_crafting_grid", + "2": "tab_complete", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "use_entity", + "12": "keep_alive", + "13": "position", + "14": "position_look", + "15": "look", + "16": "flying", + "17": "vehicle_move", + "18": "steer_boat", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "held_item_slot", + "26": "set_creative_slot", + "27": "update_sign", + "28": "arm_animation", + "29": "spectate", + "30": "block_place", + "31": "use_item" } } ] @@ -3903,7 +3932,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3912,4 +3942,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/17w18b/proto.yml b/data/pc/17w18b/proto.yml new file mode 100644 index 000000000..e20259efe --- /dev/null +++ b/data/pc/17w18b/proto.yml @@ -0,0 +1,1163 @@ +!version: 17w18b + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + itemDamage: i16 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + name: string + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + backgroundTexture?: string + showToast: bool + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + matches: string[]varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: varint + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: varint[]$2 + if 37: varint[]$1 + if 38: varint[]$1 + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: i16 + craftingBookOpen: bool + filteringCraftable: bool + recipes1: i32[]varint + recipes2: i32[]varint + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: advancements + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: tab_complete + 0x10: chat + 0x11: multi_block_change + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: login + 0x25: map + 0x26: rel_entity_move + 0x27: entity_move_look + 0x28: entity_look + 0x29: entity + 0x2a: vehicle_move + 0x2b: open_sign_entity + 0x2c: abilities + 0x2d: combat_event + 0x2e: player_info + 0x2f: position + 0x30: bed + 0x31: unlock_recipes + 0x32: entity_destroy + 0x33: remove_entity_effect + 0x34: resource_pack_send + 0x35: respawn + 0x36: entity_head_rotation + 0x37: world_border + 0x38: camera + 0x39: held_item_slot + 0x3a: scoreboard_display_objective + 0x3b: entity_metadata + 0x3c: attach_entity + 0x3d: entity_velocity + 0x3e: entity_equipment + 0x3f: experience + 0x40: update_health + 0x41: scoreboard_objective + 0x42: set_passengers + 0x43: teams + 0x44: scoreboard_score + 0x45: spawn_position + 0x46: update_time + 0x47: title + 0x48: sound_effect + 0x49: playerlist_header + 0x4a: collect + 0x4b: entity_teleport + 0x4c: entity_update_attributes + 0x4d: entity_effect + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_prepare_crafting_grid: + windowId: u8 + actionNumber: u16 + returnEntry: []u16 + item: slot + craftingSlot: u8 + playerSlot: u8 + prepareEntry: []u16 + item: slot + craftingSlot: u8 + playerSlot: u8 + packet_tab_complete: + text: string + assumeCommand: bool + lookedAtBlock?: position + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: varint + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: i32 + _: type ? + if 1: + displayedRecipe: string + if 2: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet: + name: varint => + 0x00: teleport_confirm + 0x01: prepare_crafting_grid + 0x02: tab_complete + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: transaction + 0x07: enchant_item + 0x08: window_click + 0x09: close_window + 0x0a: custom_payload + 0x0b: use_entity + 0x0c: keep_alive + 0x0d: position + 0x0e: position_look + 0x0f: look + 0x10: flying + 0x11: vehicle_move + 0x12: steer_boat + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: held_item_slot + 0x1a: set_creative_slot + 0x1b: update_sign + 0x1c: arm_animation + 0x1d: spectate + 0x1e: block_place + 0x1f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if prepare_crafting_grid: packet_prepare_crafting_grid + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item diff --git a/data/pc/17w18b/protocol.json b/data/pc/17w18b/protocol.json index de80ea044..0eec5a1fe 100644 --- a/data/pc/17w18b/protocol.json +++ b/data/pc/17w18b/protocol.json @@ -129,7 +129,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -241,8 +242,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -256,7 +257,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -296,8 +298,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -311,7 +313,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -344,8 +347,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -359,7 +362,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -439,10 +443,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -458,7 +462,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -510,8 +515,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -525,7 +530,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -862,8 +868,8 @@ ] }, { - "name":"showToast", - "type":"bool" + "name": "showToast", + "type": "bool" }, { "name": "xCord", @@ -1524,9 +1530,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1598,15 +1605,35 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":["array",{"count":2,"type":"varint"}], - "37":["array",{"count":1,"type":"varint"}], - "38":["array",{"count":1,"type":"varint"}] - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": [ + "array", + { + "count": "2", + "type": "varint" + } + ], + "37": [ + "array", + { + "count": "1", + "type": "varint" + } + ], + "38": [ + "array", + { + "count": "1", + "type": "varint" + } + ] + }, + "default": "void" + } ] } ] @@ -2137,22 +2164,22 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"i32" + "countType": "varint", + "type": "i32" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "array", { - "countType":"varint", - "type":"i32" + "countType": "varint", + "type": "i32" } ] } @@ -3002,84 +3029,84 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "advancements", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "tab_complete", - "0x10": "chat", - "0x11": "multi_block_change", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "rel_entity_move", - "0x27": "entity_move_look", - "0x28": "entity_look", - "0x29": "entity", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "abilities", - "0x2d": "combat_event", - "0x2e": "player_info", - "0x2f": "position", - "0x30": "bed", - "0x31": "unlock_recipes", - "0x32": "entity_destroy", - "0x33": "remove_entity_effect", - "0x34": "resource_pack_send", - "0x35": "respawn", - "0x36": "entity_head_rotation", - "0x37": "world_border", - "0x38": "camera", - "0x39": "held_item_slot", - "0x3a": "scoreboard_display_objective", - "0x3b": "entity_metadata", - "0x3c": "attach_entity", - "0x3d": "entity_velocity", - "0x3e": "entity_equipment", - "0x3f": "experience", - "0x40": "update_health", - "0x41": "scoreboard_objective", - "0x42": "set_passengers", - "0x43": "teams", - "0x44": "scoreboard_score", - "0x45": "spawn_position", - "0x46": "update_time", - "0x47": "title", - "0x48": "sound_effect", - "0x49": "playerlist_header", - "0x4a": "collect", - "0x4b": "entity_teleport", - "0x4c": "entity_update_attributes", - "0x4d": "entity_effect" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "advancements", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "tab_complete", + "16": "chat", + "17": "multi_block_change", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "login", + "37": "map", + "38": "rel_entity_move", + "39": "entity_move_look", + "40": "entity_look", + "41": "entity", + "42": "vehicle_move", + "43": "open_sign_entity", + "44": "abilities", + "45": "combat_event", + "46": "player_info", + "47": "position", + "48": "bed", + "49": "unlock_recipes", + "50": "entity_destroy", + "51": "remove_entity_effect", + "52": "resource_pack_send", + "53": "respawn", + "54": "entity_head_rotation", + "55": "world_border", + "56": "camera", + "57": "held_item_slot", + "58": "scoreboard_display_objective", + "59": "entity_metadata", + "60": "attach_entity", + "61": "entity_velocity", + "62": "entity_equipment", + "63": "experience", + "64": "update_health", + "65": "scoreboard_objective", + "66": "set_passengers", + "67": "teams", + "68": "scoreboard_score", + "69": "spawn_position", + "70": "update_time", + "71": "title", + "72": "sound_effect", + "73": "playerlist_header", + "74": "collect", + "75": "entity_teleport", + "76": "entity_update_attributes", + "77": "entity_effect" } } ] @@ -3169,7 +3196,8 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - } + }, + "default": "void" } ] } @@ -3204,7 +3232,7 @@ "type": [ "array", { - "countType":"u16", + "countType": "u16", "type": [ "container", [ @@ -3230,8 +3258,8 @@ "type": [ "array", { - "countType":"u16", - "type":[ + "countType": "u16", + "type": [ "container", [ { @@ -3666,13 +3694,13 @@ "type": "i32" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "1":[ + "compareTo": "type", + "fields": { + "1": [ "container", [ { @@ -3694,7 +3722,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -3822,38 +3851,38 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "prepare_crafting_grid", - "0x02": "tab_complete", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "transaction", - "0x07": "enchant_item", - "0x08": "window_click", - "0x09": "close_window", - "0x0a": "custom_payload", - "0x0b": "use_entity", - "0x0c": "keep_alive", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "flying", - "0x11": "vehicle_move", - "0x12": "steer_boat", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "held_item_slot", - "0x1a": "set_creative_slot", - "0x1b": "update_sign", - "0x1c": "arm_animation", - "0x1d": "spectate", - "0x1e": "block_place", - "0x1f": "use_item" + "0": "teleport_confirm", + "1": "prepare_crafting_grid", + "2": "tab_complete", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "transaction", + "7": "enchant_item", + "8": "window_click", + "9": "close_window", + "10": "custom_payload", + "11": "use_entity", + "12": "keep_alive", + "13": "position", + "14": "position_look", + "15": "look", + "16": "flying", + "17": "vehicle_move", + "18": "steer_boat", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "held_item_slot", + "26": "set_creative_slot", + "27": "update_sign", + "28": "arm_animation", + "29": "spectate", + "30": "block_place", + "31": "use_item" } } ] @@ -3897,7 +3926,8 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - } + }, + "default": "void" } ] } @@ -3906,4 +3936,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/17w50a/proto.yml b/data/pc/17w50a/proto.yml new file mode 100644 index 000000000..dfb95ce35 --- /dev/null +++ b/data/pc/17w50a/proto.yml @@ -0,0 +1,1418 @@ +!version: 17w50a + +^types: + varint: native + varlong: native + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + blockId: i16 + _: blockId ? + if -1: void + default: + itemCount: i8 + nbtData: optionalNbt + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: slot + if 6: bool + if 7: + pitch: f32 + yaw: f32 + roll: f32 + if 8: position + if 9: [ + "option", + "position" + ] + if 10: varint + if 11: [ + "option", + "UUID" + ] + if 12: varint + if 13: nbt + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "i8" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: string + username: string + packet_compress: + threshold: varint + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: i8 + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + metadata: entityMetadata + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: string + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + metadata: entityMetadata + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + unknown1: varint + unknown2: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: string[]varint + packet_declare_commands: + nodes: []varint + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint + if minecraft:entity: i8 + if minecraft:score_holder: i8 + if minecraft:range: bool + default: void + suggests: ../flags/has_custom_suggestions ? + if 1: string + default: void + rootIndex: varint + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: u8 + inventoryType: string + windowTitle: string + slotCount: u8 + entityId: inventoryType ? + if EntityHorse: i32 + default: void + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f32 + y: f32 + z: f32 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: particleId ? + if 36: slot + if 37: varint + if 38: varint + if 46: varint + default: void + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + difficulty: u8 + maxPlayers: u8 + levelType: string + reducedDebugInfo: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + icons: []varint + directionAndType: i8 + x: i8 + z: i8 + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_bed: + entityId: varint + location: position + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + difficulty: u8 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: string + if 2: string + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + color: mode ? + if 0: i8 + if 2: i8 + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + recipeId: string + type: string + data: type ? + if crafting_shapeless: + group: string + ingredients: []varint + _: slot[]varint + result: slot + if crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: []$height + _: slot[]varint + result: slot + if crafting_special_armordye: void + if crafting_special_bookcloning: void + if crafting_special_mapcloning: void + if crafting_special_mapextending: void + if crafting_special_firework_rocket: void + if crafting_special_firework_star: void + if crafting_special_firework_star_fade: void + if crafting_special_repairitem: void + if crafting_special_tippedarrow: void + if crafting_special_bannerduplicate: void + if crafting_special_banneraddpattern: void + if crafting_special_shielddecoration: void + if crafting_special_shulkerboxcoloring: void + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: block_break_animation + 0x09: tile_entity_data + 0x0a: block_action + 0x0b: block_change + 0x0c: boss_bar + 0x0d: difficulty + 0x0e: chat + 0x0f: multi_block_change + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: open_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: login + 0x25: map + 0x26: entity + 0x27: rel_entity_move + 0x28: entity_move_look + 0x29: entity_look + 0x2a: vehicle_move + 0x2b: open_sign_entity + 0x2c: craft_recipe_response + 0x2d: abilities + 0x2e: combat_event + 0x2f: player_info + 0x30: position + 0x31: bed + 0x32: unlock_recipes + 0x33: entity_destroy + 0x34: remove_entity_effect + 0x35: resource_pack_send + 0x36: respawn + 0x37: entity_head_rotation + 0x38: select_advancement_tab + 0x39: world_border + 0x3a: camera + 0x3b: held_item_slot + 0x3c: scoreboard_display_objective + 0x3d: entity_metadata + 0x3e: attach_entity + 0x3f: entity_velocity + 0x40: entity_equipment + 0x41: experience + 0x42: update_health + 0x43: scoreboard_objective + 0x44: set_passengers + 0x45: teams + 0x46: scoreboard_score + 0x47: spawn_position + 0x48: update_time + 0x49: title + 0x4a: stop_sound + 0x4b: sound_effect + 0x4c: playerlist_header + 0x4d: collect + 0x4e: entity_teleport + 0x4f: advancements + 0x50: entity_update_attributes + 0x51: entity_effect + 0x52: declare_recipes + 0x53: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if login: packet_login + if map: packet_map + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if bed: packet_bed + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: i32 + if 1: + craftingBookOpen: bool + craftingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + location: position + direction: varint + hand: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: chat + 0x02: client_command + 0x03: settings + 0x04: tab_complete + 0x05: transaction + 0x06: enchant_item + 0x07: window_click + 0x08: close_window + 0x09: custom_payload + 0x0a: use_entity + 0x0b: keep_alive + 0x0c: flying + 0x0d: position + 0x0e: position_look + 0x0f: look + 0x10: vehicle_move + 0x11: steer_boat + 0x12: craft_recipe_request + 0x13: abilities + 0x14: block_dig + 0x15: entity_action + 0x16: steer_vehicle + 0x17: crafting_book_data + 0x18: resource_pack_receive + 0x19: advancement_tab + 0x1a: held_item_slot + 0x1b: set_creative_slot + 0x1c: update_sign + 0x1d: arm_animation + 0x1e: spectate + 0x1f: block_place + 0x20: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/17w50a/protocol.json b/data/pc/17w50a/protocol.json index d715bb449..f8a51f6f0 100644 --- a/data/pc/17w50a/protocol.json +++ b/data/pc/17w50a/protocol.json @@ -125,7 +125,8 @@ ], "12": "varint", "13": "nbt" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -237,8 +238,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -252,7 +253,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -292,8 +294,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -307,7 +309,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -340,8 +343,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -355,7 +358,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -435,10 +439,10 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress" } } ] @@ -454,7 +458,8 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - } + }, + "default": "void" } ] } @@ -506,8 +511,8 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin" + "0": "login_start", + "1": "encryption_begin" } } ] @@ -521,7 +526,8 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - } + }, + "default": "void" } ] } @@ -859,10 +865,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1184,219 +1206,345 @@ [ { "name": "nodes", - "type": ["array", { - "countType": "varint", - "type": ["container",[ - { - "name": "flags", - "type": [ - "bitfield", - [ - { "name": "unused", "size": 3, "signed": false }, - { "name": "has_custom_suggestions", "size": 1, "signed": false }, - { "name": "has_redirect_node", "size": 1, "signed": false }, - { "name": "has_command", "size": 1, "signed": false }, - { "name": "command_node_type", "size": 2, "signed": false } - ] - ] - }, - { - "name": "children", - "type": ["array", - { - "countType": "varint", - "type": "varint" - }] - }, - { - "name": "redirectNode", - "type": ["switch", - { - "compareTo": "flags/has_redirect_node", - "fields": { - "1":"varint" - }, - "default": "void" - }] - }, - { - "name": "extraNodeData", - "type": ["switch", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ { - "compareTo": "flags/command_node_type", - "fields": { - "0": "void", - "1": "string", - "2": ["container", [ + "name": "flags", + "type": [ + "bitfield", + [ { - "name": "name", - "type": "string" + "name": "unused", + "size": 3, + "signed": false }, { - "name": "parser", - "type": "string" + "name": "has_custom_suggestions", + "size": 1, + "signed": false }, { - "name": "properties", - "type": ["switch",{ - "compareTo": "parser", - "fields": { - "brigadier:double": ["container", [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { "name": "unused", "size": 6, "signed": false }, - { "name": "max_present", "size": 1, "signed": false }, - { "name": "min_present", "size": 1, "signed": false } - ] - ] - }, - { - "name": "min", - "type":["switch",{ - "compareTo":"flags/min_present", - "fields":{ - "1":"f64" - }, - "default": "void" - }] - }, - { - "name": "max", - "type":["switch",{ - "compareTo":"flags/max_present", - "fields":{ - "1":"f64" - }, - "default": "void" - }] - } - ]], - "brigadier:float": ["container", [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { "name": "unused", "size": 6, "signed": false }, - { "name": "max_present", "size": 1, "signed": false }, - { "name": "min_present", "size": 1, "signed": false } - ] - ] - }, - { - "name": "min", - "type":["switch",{ - "compareTo":"flags/min_present", - "fields":{ - "1":"f32" - }, - "default": "void" - }] - }, - { - "name": "max", - "type":["switch",{ - "compareTo":"flags/max_present", - "fields":{ - "1":"f32" - }, - "default": "void" - }] - } - ]], - "brigadier:integer": ["container", [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { "name": "unused", "size": 6, "signed": false }, - { "name": "max_present", "size": 1, "signed": false }, - { "name": "min_present", "size": 1, "signed": false } - ] - ] - }, - { - "name": "min", - "type":["switch",{ - "compareTo":"flags/min_present", - "fields":{ - "1":"i32" - }, - "default": "void" - }] - }, - { - "name": "max", - "type":["switch",{ - "compareTo":"flags/max_present", - "fields":{ - "1":"i32" - }, - "default": "void" - }] - } - ]], - "brigadier:long": ["container", [ - { - "name": "flags", - "type": [ - "bitfield", - [ - { "name": "unused", "size": 6, "signed": false }, - { "name": "max_present", "size": 1, "signed": false }, - { "name": "min_present", "size": 1, "signed": false } - ] - ] - }, - { - "name": "min", - "type": ["switch",{ - "compareTo": "flags/min_present", + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + }, + { + "name": "children", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + }, + { + "name": "redirectNode", + "type": [ + "switch", + { + "compareTo": "flags/has_redirect_node", + "fields": { + "1": "varint" + }, + "default": "void" + } + ] + }, + { + "name": "extraNodeData", + "type": [ + "switch", + { + "compareTo": "flags/command_node_type", + "fields": { + "0": "void", + "1": "string", + "2": [ + "container", + [ + { + "name": "name", + "type": "string" + }, + { + "name": "parser", + "type": "string" + }, + { + "name": "properties", + "type": [ + "switch", + { + "compareTo": "parser", "fields": { - "1": "i64" + "brigadier:double": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "fields": { + "1": "f64" + }, + "default": "void" + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "fields": { + "1": "f64" + }, + "default": "void" + } + ] + } + ] + ], + "brigadier:float": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "fields": { + "1": "f32" + }, + "default": "void" + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "fields": { + "1": "f32" + }, + "default": "void" + } + ] + } + ] + ], + "brigadier:integer": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "fields": { + "1": "i32" + }, + "default": "void" + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "fields": { + "1": "i32" + }, + "default": "void" + } + ] + } + ] + ], + "brigadier:long": [ + "container", + [ + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + }, + { + "name": "min", + "type": [ + "switch", + { + "compareTo": "flags/min_present", + "fields": { + "1": "i64" + }, + "default": "void" + } + ] + }, + { + "name": "max", + "type": [ + "switch", + { + "compareTo": "flags/max_present", + "fields": { + "1": "i64" + }, + "default": "void" + } + ] + } + ] + ], + "brigadier:string": "varint", + "minecraft:entity": "i8", + "minecraft:score_holder": "i8", + "minecraft:range": "bool" }, "default": "void" - }] - }, - { - "name": "max", - "type": ["switch",{ - "compareTo": "flags/max_present", + } + ] + }, + { + "name": "suggests", + "type": [ + "switch", + { + "compareTo": "../flags/has_custom_suggestions", "fields": { - "1": "i64" + "1": "string" }, "default": "void" - }] - } - ]], - "brigadier:string": "varint", - "minecraft:entity": "i8", - "minecraft:score_holder": "i8", - "minecraft:range": "bool" - }, - "default": "void" - }] + } + ] + } + ] + ] }, - { - "name": "suggests", - "type": ["switch", { - "compareTo": "../flags/has_custom_suggestions", - "fields": { - "1": "string" - }, - "default": "void" - }] - } - ]] - } - }] - } - ]] - }] + "default": "void" + } + ] + } + ] + ] + } + ] }, { "name": "rootIndex", @@ -1775,9 +1923,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -1849,16 +1998,18 @@ }, { "name": "data", - "type": ["switch",{ - "compareTo":"particleId", - "fields":{ - "36":"slot", - "37":"varint", - "38":"varint", - "46":"varint" - }, - "default":"void" - } + "type": [ + "switch", + { + "compareTo": "particleId", + "fields": { + "36": "slot", + "37": "varint", + "38": "varint", + "46": "varint" + }, + "default": "void" + } ] } ] @@ -2402,18 +2553,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -2421,8 +2572,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3097,25 +3248,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3314,110 +3471,150 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "recipeId", - "type": "string" - }, - { - "name": "type", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": ["array",{ - "countType":"varint", - "type": "slot" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": ["array",{ - "countType":"varint", - "type": "slot" - }] - }] - }] - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "recipeId", + "type": "string" + }, + { + "name": "type", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": [ + "array", + { + "countType": "varint", + "type": "slot" + } + ] + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "crafting_special_armordye": "void", + "crafting_special_bookcloning": "void", + "crafting_special_mapcloning": "void", + "crafting_special_mapextending": "void", + "crafting_special_firework_rocket": "void", + "crafting_special_firework_star": "void", + "crafting_special_firework_star_fade": "void", + "crafting_special_repairitem": "void", + "crafting_special_tippedarrow": "void", + "crafting_special_bannerduplicate": "void", + "crafting_special_banneraddpattern": "void", + "crafting_special_shielddecoration": "void", + "crafting_special_shulkerboxcoloring": "void" + }, + "default": "void" } - ]], - "crafting_special_armordye": "void", - "crafting_special_bookcloning": "void", - "crafting_special_mapcloning": "void", - "crafting_special_mapextending": "void", - "crafting_special_firework_rocket": "void", - "crafting_special_firework_star": "void", - "crafting_special_firework_star_fade": "void", - "crafting_special_repairitem": "void", - "crafting_special_tippedarrow": "void", - "crafting_special_bannerduplicate": "void", - "crafting_special_banneraddpattern": "void", - "crafting_special_shielddecoration": "void", - "crafting_special_shulkerboxcoloring": "void" + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ - { - "name": "tagName", - "type": "string" - }, - { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -3441,90 +3638,90 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "block_break_animation", - "0x09": "tile_entity_data", - "0x0a": "block_action", - "0x0b": "block_change", - "0x0c": "boss_bar", - "0x0d": "difficulty", - "0x0e": "chat", - "0x0f": "multi_block_change", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "open_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "login", - "0x25": "map", - "0x26": "entity", - "0x27": "rel_entity_move", - "0x28": "entity_move_look", - "0x29": "entity_look", - "0x2a": "vehicle_move", - "0x2b": "open_sign_entity", - "0x2c": "craft_recipe_response", - "0x2d": "abilities", - "0x2e": "combat_event", - "0x2f": "player_info", - "0x30": "position", - "0x31": "bed", - "0x32": "unlock_recipes", - "0x33": "entity_destroy", - "0x34": "remove_entity_effect", - "0x35": "resource_pack_send", - "0x36": "respawn", - "0x37": "entity_head_rotation", - "0x38": "select_advancement_tab", - "0x39": "world_border", - "0x3a": "camera", - "0x3b": "held_item_slot", - "0x3c": "scoreboard_display_objective", - "0x3d": "entity_metadata", - "0x3e": "attach_entity", - "0x3f": "entity_velocity", - "0x40": "entity_equipment", - "0x41": "experience", - "0x42": "update_health", - "0x43": "scoreboard_objective", - "0x44": "set_passengers", - "0x45": "teams", - "0x46": "scoreboard_score", - "0x47": "spawn_position", - "0x48": "update_time", - "0x49": "title", - "0x4a": "stop_sound", - "0x4b": "sound_effect", - "0x4c": "playerlist_header", - "0x4d": "collect", - "0x4e": "entity_teleport", - "0x4f": "advancements", - "0x50": "entity_update_attributes", - "0x51": "entity_effect", - "0x52": "declare_recipes", - "0x53": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "block_break_animation", + "9": "tile_entity_data", + "10": "block_action", + "11": "block_change", + "12": "boss_bar", + "13": "difficulty", + "14": "chat", + "15": "multi_block_change", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "open_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "login", + "37": "map", + "38": "entity", + "39": "rel_entity_move", + "40": "entity_move_look", + "41": "entity_look", + "42": "vehicle_move", + "43": "open_sign_entity", + "44": "craft_recipe_response", + "45": "abilities", + "46": "combat_event", + "47": "player_info", + "48": "position", + "49": "bed", + "50": "unlock_recipes", + "51": "entity_destroy", + "52": "remove_entity_effect", + "53": "resource_pack_send", + "54": "respawn", + "55": "entity_head_rotation", + "56": "select_advancement_tab", + "57": "world_border", + "58": "camera", + "59": "held_item_slot", + "60": "scoreboard_display_objective", + "61": "entity_metadata", + "62": "attach_entity", + "63": "entity_velocity", + "64": "entity_equipment", + "65": "experience", + "66": "update_health", + "67": "scoreboard_objective", + "68": "set_passengers", + "69": "teams", + "70": "scoreboard_score", + "71": "spawn_position", + "72": "update_time", + "73": "title", + "74": "stop_sound", + "75": "sound_effect", + "76": "playerlist_header", + "77": "collect", + "78": "entity_teleport", + "79": "advancements", + "80": "entity_update_attributes", + "81": "entity_effect", + "82": "declare_recipes", + "83": "tags" } } ] @@ -3620,7 +3817,8 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - } + }, + "default": "void" } ] } @@ -4062,13 +4260,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -4090,7 +4288,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -4220,11 +4419,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -4240,39 +4440,39 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "chat", - "0x02": "client_command", - "0x03": "settings", - "0x04": "tab_complete", - "0x05": "transaction", - "0x06": "enchant_item", - "0x07": "window_click", - "0x08": "close_window", - "0x09": "custom_payload", - "0x0a": "use_entity", - "0x0b": "keep_alive", - "0x0c": "flying", - "0x0d": "position", - "0x0e": "position_look", - "0x0f": "look", - "0x10": "vehicle_move", - "0x11": "steer_boat", - "0x12": "craft_recipe_request", - "0x13": "abilities", - "0x14": "block_dig", - "0x15": "entity_action", - "0x16": "steer_vehicle", - "0x17": "crafting_book_data", - "0x18": "resource_pack_receive", - "0x19": "advancement_tab", - "0x1a": "held_item_slot", - "0x1b": "set_creative_slot", - "0x1c": "update_sign", - "0x1d": "arm_animation", - "0x1e": "spectate", - "0x1f": "block_place", - "0x20": "use_item" + "0": "teleport_confirm", + "1": "chat", + "2": "client_command", + "3": "settings", + "4": "tab_complete", + "5": "transaction", + "6": "enchant_item", + "7": "window_click", + "8": "close_window", + "9": "custom_payload", + "10": "use_entity", + "11": "keep_alive", + "12": "flying", + "13": "position", + "14": "position_look", + "15": "look", + "16": "vehicle_move", + "17": "steer_boat", + "18": "craft_recipe_request", + "19": "abilities", + "20": "block_dig", + "21": "entity_action", + "22": "steer_vehicle", + "23": "crafting_book_data", + "24": "resource_pack_receive", + "25": "advancement_tab", + "26": "held_item_slot", + "27": "set_creative_slot", + "28": "update_sign", + "29": "arm_animation", + "30": "spectate", + "31": "block_place", + "32": "use_item" } } ] @@ -4317,7 +4517,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -4326,4 +4527,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/20w13b/proto.yml b/data/pc/20w13b/proto.yml new file mode 100644 index 000000000..ef293938f --- /dev/null +++ b/data/pc/20w13b/proto.yml @@ -0,0 +1,1732 @@ +!version: 20w13b + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 34: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_weather: + entityId: varint + type: i8 + x: f64 + y: f64 + z: f64 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + packet_multi_block_change: + chunkX: i32 + chunkZ: i32 + records: []varint + horizontalPos: u8 + y: u8 + blockId: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + groundUp: bool + bitMap: varint + heightmaps: nbt + biomes: groundUp ? + if false: void + if true: i32[]$1024 + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + skyLightMask: varint + blockLightMask: varint + emptySkyLightMask: varint + emptyBlockLightMask: varint + data: restBuffer + packet_login: + entityId: i32 + gameMode: u8 + dimension: i32 + hashedSeed: i64 + maxPlayers: u8 + levelType: string + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + packet_respawn: + dimension: i32 + hashedSeed: i64 + gamemode: u8 + levelType: string + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + slot: varint + item: slot + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + blockTags: tags + itemTags: tags + fluidTags: tags + entityTags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_weather + 0x03: spawn_entity_living + 0x04: spawn_entity_painting + 0x05: named_entity_spawn + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: multi_block_change + 0x11: tab_complete + 0x12: declare_commands + 0x13: transaction + 0x14: close_window + 0x15: window_items + 0x16: craft_progress_bar + 0x17: set_slot + 0x18: set_cooldown + 0x19: custom_payload + 0x1a: named_sound_effect + 0x1b: kick_disconnect + 0x1c: entity_status + 0x1d: explosion + 0x1e: unload_chunk + 0x1f: game_state_change + 0x20: open_horse_window + 0x21: keep_alive + 0x22: map_chunk + 0x23: world_event + 0x24: world_particles + 0x25: update_light + 0x26: login + 0x27: map + 0x28: trade_list + 0x29: rel_entity_move + 0x2a: entity_move_look + 0x2b: entity_look + 0x2c: entity + 0x2d: vehicle_move + 0x2e: open_book + 0x2f: open_window + 0x30: open_sign_entity + 0x31: craft_recipe_response + 0x32: abilities + 0x33: combat_event + 0x34: player_info + 0x35: face_player + 0x36: position + 0x37: unlock_recipes + 0x38: entity_destroy + 0x39: remove_entity_effect + 0x3a: resource_pack_send + 0x3b: respawn + 0x3c: entity_head_rotation + 0x3d: select_advancement_tab + 0x3e: world_border + 0x3f: camera + 0x40: held_item_slot + 0x41: update_view_position + 0x42: update_view_distance + 0x43: spawn_position + 0x44: scoreboard_display_objective + 0x45: entity_metadata + 0x46: attach_entity + 0x47: entity_velocity + 0x48: entity_equipment + 0x49: experience + 0x4a: update_health + 0x4b: scoreboard_objective + 0x4c: set_passengers + 0x4d: teams + 0x4e: scoreboard_score + 0x4f: update_time + 0x50: title + 0x51: entity_sound_effect + 0x52: sound_effect + 0x53: stop_sound + 0x54: playerlist_header + 0x55: nbt_query_response + 0x56: collect + 0x57: entity_teleport + 0x58: advancements + 0x59: entity_update_attributes + 0x5a: entity_effect + 0x5b: declare_recipes + 0x5c: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_weather: packet_spawn_entity_weather + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_crafting_book_data: + type: varint + _: type ? + if 0: + displayedRecipe: string + if 1: + craftingBookOpen: bool + craftingFilter: bool + smeltingBookOpen: bool + smeltingFilter: bool + blastingBookOpen: bool + blastingFilter: bool + smokingBookOpen: bool + smokingFilter: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: keep_alive + 0x10: lock_difficulty + 0x11: position + 0x12: position_look + 0x13: look + 0x14: flying + 0x15: vehicle_move + 0x16: steer_boat + 0x17: pick_item + 0x18: craft_recipe_request + 0x19: abilities + 0x1a: block_dig + 0x1b: entity_action + 0x1c: steer_vehicle + 0x1d: crafting_book_data + 0x1e: name_item + 0x1f: resource_pack_receive + 0x20: advancement_tab + 0x21: select_trade + 0x22: set_beacon_effect + 0x23: held_item_slot + 0x24: update_command_block + 0x25: update_command_block_minecart + 0x26: set_creative_slot + 0x27: update_jigsaw_block + 0x28: update_structure_block + 0x29: update_sign + 0x2a: arm_animation + 0x2b: spectate + 0x2c: block_place + 0x2d: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if crafting_book_data: packet_crafting_book_data + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/20w13b/protocol.json b/data/pc/20w13b/protocol.json index b53aea11f..759eec04f 100644 --- a/data/pc/20w13b/protocol.json +++ b/data/pc/20w13b/protocol.json @@ -49,7 +49,6 @@ "true": [ "container", [ - { "name": "itemId", "type": "varint" @@ -64,7 +63,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -94,7 +94,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -102,7 +103,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -122,15 +124,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "34": [ - "container", [ + "34": [ + "container", + [ { "name": "item", "type": "slot" @@ -215,7 +219,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -232,7 +237,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -691,7 +697,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -710,7 +717,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -789,8 +797,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -804,7 +812,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -844,8 +853,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -859,7 +868,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -892,8 +902,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -907,7 +917,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1004,11 +1015,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1025,7 +1036,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1093,9 +1105,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1110,7 +1122,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1440,10 +1453,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1758,19 +1787,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -2230,11 +2262,15 @@ "compareTo": "groundUp", "fields": { "false": "void", - "true": ["array", { - "count": 1024, - "type": "i32" - }] - } + "true": [ + "array", + { + "count": "1024", + "type": "i32" + } + ] + }, + "default": "void" } ] }, @@ -2250,9 +2286,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2453,7 +2490,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2536,48 +2576,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3005,18 +3051,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3024,8 +3070,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3747,25 +3793,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -3964,145 +4016,185 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" } - ]] - }], + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagName", + "type": "string" + }, + { + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] + } + ] + ] + } + ], "packet_tags": [ "container", [ @@ -4155,99 +4247,99 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_weather", - "0x03": "spawn_entity_living", - "0x04": "spawn_entity_painting", - "0x05": "named_entity_spawn", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "multi_block_change", - "0x11": "tab_complete", - "0x12": "declare_commands", - "0x13": "transaction", - "0x14": "close_window", - "0x15": "window_items", - "0x16": "craft_progress_bar", - "0x17": "set_slot", - "0x18": "set_cooldown", - "0x19": "custom_payload", - "0x1a": "named_sound_effect", - "0x1b": "kick_disconnect", - "0x1c": "entity_status", - "0x1d": "explosion", - "0x1e": "unload_chunk", - "0x1f": "game_state_change", - "0x20": "open_horse_window", - "0x21": "keep_alive", - "0x22": "map_chunk", - "0x23": "world_event", - "0x24": "world_particles", - "0x25": "update_light", - "0x26": "login", - "0x27": "map", - "0x28": "trade_list", - "0x29": "rel_entity_move", - "0x2a": "entity_move_look", - "0x2b": "entity_look", - "0x2c": "entity", - "0x2d": "vehicle_move", - "0x2e": "open_book", - "0x2f": "open_window", - "0x30": "open_sign_entity", - "0x31": "craft_recipe_response", - "0x32": "abilities", - "0x33": "combat_event", - "0x34": "player_info", - "0x35": "face_player", - "0x36": "position", - "0x37": "unlock_recipes", - "0x38": "entity_destroy", - "0x39": "remove_entity_effect", - "0x3a": "resource_pack_send", - "0x3b": "respawn", - "0x3c": "entity_head_rotation", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "spawn_position", - "0x44": "scoreboard_display_objective", - "0x45": "entity_metadata", - "0x46": "attach_entity", - "0x47": "entity_velocity", - "0x48": "entity_equipment", - "0x49": "experience", - "0x4a": "update_health", - "0x4b": "scoreboard_objective", - "0x4c": "set_passengers", - "0x4d": "teams", - "0x4e": "scoreboard_score", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_weather", + "3": "spawn_entity_living", + "4": "spawn_entity_painting", + "5": "named_entity_spawn", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "multi_block_change", + "17": "tab_complete", + "18": "declare_commands", + "19": "transaction", + "20": "close_window", + "21": "window_items", + "22": "craft_progress_bar", + "23": "set_slot", + "24": "set_cooldown", + "25": "custom_payload", + "26": "named_sound_effect", + "27": "kick_disconnect", + "28": "entity_status", + "29": "explosion", + "30": "unload_chunk", + "31": "game_state_change", + "32": "open_horse_window", + "33": "keep_alive", + "34": "map_chunk", + "35": "world_event", + "36": "world_particles", + "37": "update_light", + "38": "login", + "39": "map", + "40": "trade_list", + "41": "rel_entity_move", + "42": "entity_move_look", + "43": "entity_look", + "44": "entity", + "45": "vehicle_move", + "46": "open_book", + "47": "open_window", + "48": "open_sign_entity", + "49": "craft_recipe_response", + "50": "abilities", + "51": "combat_event", + "52": "player_info", + "53": "face_player", + "54": "position", + "55": "unlock_recipes", + "56": "entity_destroy", + "57": "remove_entity_effect", + "58": "resource_pack_send", + "59": "respawn", + "60": "entity_head_rotation", + "61": "select_advancement_tab", + "62": "world_border", + "63": "camera", + "64": "held_item_slot", + "65": "update_view_position", + "66": "update_view_distance", + "67": "spawn_position", + "68": "scoreboard_display_objective", + "69": "entity_metadata", + "70": "attach_entity", + "71": "entity_velocity", + "72": "entity_equipment", + "73": "experience", + "74": "update_health", + "75": "scoreboard_objective", + "76": "set_passengers", + "77": "teams", + "78": "scoreboard_score", + "79": "update_time", + "80": "title", + "81": "entity_sound_effect", + "82": "sound_effect", + "83": "stop_sound", + "84": "playerlist_header", + "85": "nbt_query_response", + "86": "collect", + "87": "entity_teleport", + "88": "advancements", + "89": "entity_update_attributes", + "90": "entity_effect", + "91": "declare_recipes", + "92": "tags" } } ] @@ -4352,7 +4444,8 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - } + }, + "default": "void" } ] } @@ -4494,8 +4587,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5003,13 +5095,13 @@ "type": "varint" }, { - "anon":true, - "type":[ + "anon": true, + "type": [ "switch", { - "compareTo":"type", - "fields":{ - "0":[ + "compareTo": "type", + "fields": { + "0": [ "container", [ { @@ -5055,7 +5147,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -5218,11 +5311,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5238,52 +5332,52 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "keep_alive", - "0x10": "lock_difficulty", - "0x11": "position", - "0x12": "position_look", - "0x13": "look", - "0x14": "flying", - "0x15": "vehicle_move", - "0x16": "steer_boat", - "0x17": "pick_item", - "0x18": "craft_recipe_request", - "0x19": "abilities", - "0x1a": "block_dig", - "0x1b": "entity_action", - "0x1c": "steer_vehicle", - "0x1d": "crafting_book_data", - "0x1e": "name_item", - "0x1f": "resource_pack_receive", - "0x20": "advancement_tab", - "0x21": "select_trade", - "0x22": "set_beacon_effect", - "0x23": "held_item_slot", - "0x24": "update_command_block", - "0x25": "update_command_block_minecart", - "0x26": "set_creative_slot", - "0x27": "update_jigsaw_block", - "0x28": "update_structure_block", - "0x29": "update_sign", - "0x2a": "arm_animation", - "0x2b": "spectate", - "0x2c": "block_place", - "0x2d": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "keep_alive", + "16": "lock_difficulty", + "17": "position", + "18": "position_look", + "19": "look", + "20": "flying", + "21": "vehicle_move", + "22": "steer_boat", + "23": "pick_item", + "24": "craft_recipe_request", + "25": "abilities", + "26": "block_dig", + "27": "entity_action", + "28": "steer_vehicle", + "29": "crafting_book_data", + "30": "name_item", + "31": "resource_pack_receive", + "32": "advancement_tab", + "33": "select_trade", + "34": "set_beacon_effect", + "35": "held_item_slot", + "36": "update_command_block", + "37": "update_command_block_minecart", + "38": "set_creative_slot", + "39": "update_jigsaw_block", + "40": "update_structure_block", + "41": "update_sign", + "42": "arm_animation", + "43": "spectate", + "44": "block_place", + "45": "use_item" } } ] @@ -5341,7 +5435,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5350,4 +5445,4 @@ } } } -} +} \ No newline at end of file diff --git a/data/pc/21w07a/proto.yml b/data/pc/21w07a/proto.yml new file mode 100644 index 000000000..1a19c0ffd --- /dev/null +++ b/data/pc/21w07a/proto.yml @@ -0,0 +1,1785 @@ +!version: 21w07a + +^types: + varint: native + varlong: native + optvarint: varint + pstring: native + u16: native + u8: native + i64: native + buffer: native + i32: native + i8: native + bool: native + i16: native + f32: native + f64: native + UUID: native + option: native + entityMetadataLoop: native + topBitSetTerminatedArray: native + bitfield: native + container: native + switch: native + void: native + array: native + restBuffer: native + nbt: native + optionalNbt: native + string: [ + "pstring", + { + "countType": "varint" + } + ] + slot: + present: bool + _: present ? + if false: void + if true: + itemId: varint + itemCount: i8 + nbtData: optionalNbt + particle: + particleId: varint + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + particleData: $compareTo ? + if 3: + blockState: varint + if 14: + red: f32 + green: f32 + blue: f32 + scale: f32 + if 23: + blockState: varint + if 34: + item: slot + default: void + ingredient: slot[]varint + position: [ + "bitfield", + [ + { + "name": "x", + "size": 26, + "signed": true + }, + { + "name": "z", + "size": 26, + "signed": true + }, + { + "name": "y", + "size": 12, + "signed": true + } + ] + ] + entityMetadataItem: $compareTo ? + if 0: i8 + if 1: varint + if 2: f32 + if 3: string + if 4: string + if 5: [ + "option", + "string" + ] + if 6: slot + if 7: bool + if 8: + pitch: f32 + yaw: f32 + roll: f32 + if 9: position + if 10: [ + "option", + "position" + ] + if 11: varint + if 12: [ + "option", + "UUID" + ] + if 13: varint + if 14: nbt + if 15: particle + if 16: + villagerType: varint + villagerProfession: varint + level: varint + if 17: optvarint + if 18: varint + entityMetadata: [ + "entityMetadataLoop", + { + "endVal": 255, + "type": [ + "container", + [ + { + "anon": true, + "type": [ + "container", + [ + { + "name": "key", + "type": "u8" + }, + { + "name": "type", + "type": "varint" + } + ] + ] + }, + { + "name": "value", + "type": [ + "entityMetadataItem", + { + "compareTo": "type" + } + ] + } + ] + ] + } + ] + command_node: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 3, + "signed": false + }, + { + "name": "has_custom_suggestions", + "size": 1, + "signed": false + }, + { + "name": "has_redirect_node", + "size": 1, + "signed": false + }, + { + "name": "has_command", + "size": 1, + "signed": false + }, + { + "name": "command_node_type", + "size": 2, + "signed": false + } + ] + ] + children: varint[]varint + redirectNode: flags/has_redirect_node ? + if 1: varint + default: void + extraNodeData: flags/command_node_type ? + if 0: void + if 1: + name: string + if 2: + name: string + parser: string + properties: parser ? + if brigadier:bool: void + if brigadier:float: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f32 + default: void + max: flags/max_present ? + if 1: f32 + default: void + if brigadier:double: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: f64 + default: void + max: flags/max_present ? + if 1: f64 + default: void + if brigadier:integer: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i32 + default: void + max: flags/max_present ? + if 1: i32 + default: void + if brigadier:long: + flags: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "max_present", + "size": 1, + "signed": false + }, + { + "name": "min_present", + "size": 1, + "signed": false + } + ] + ] + min: flags/min_present ? + if 1: i64 + default: void + max: flags/max_present ? + if 1: i64 + default: void + if brigadier:string: varint => + 0: SINGLE_WORD + 1: QUOTABLE_PHRASE + 2: GREEDY_PHRASE + if minecraft:entity: [ + "bitfield", + [ + { + "name": "unused", + "size": 6, + "signed": false + }, + { + "name": "onlyAllowPlayers", + "size": 1, + "signed": false + }, + { + "name": "onlyAllowEntities", + "size": 1, + "signed": false + } + ] + ] + if minecraft:game_profile: void + if minecraft:block_pos: void + if minecraft:column_pos: void + if minecraft:vec3: void + if minecraft:vec2: void + if minecraft:block_state: void + if minecraft:block_predicate: void + if minecraft:item_stack: void + if minecraft:item_predicate: void + if minecraft:color: void + if minecraft:component: void + if minecraft:message: void + if minecraft:nbt: void + if minecraft:nbt_path: void + if minecraft:objective: void + if minecraft:objective_criteria: void + if minecraft:operation: void + if minecraft:particle: void + if minecraft:angle: void + if minecraft:rotation: void + if minecraft:scoreboard_slot: void + if minecraft:score_holder: [ + "bitfield", + [ + { + "name": "unused", + "size": 7, + "signed": false + }, + { + "name": "allowMultiple", + "size": 1, + "signed": false + } + ] + ] + if minecraft:swizzle: void + if minecraft:team: void + if minecraft:item_slot: void + if minecraft:resource_location: void + if minecraft:mob_effect: void + if minecraft:function: void + if minecraft:entity_anchor: void + if minecraft:range: + allowDecimals: bool + if minecraft:int_range: void + if minecraft:float_range: void + if minecraft:item_enchantment: void + if minecraft:entity_summon: void + if minecraft:dimension: void + if minecraft:nbt_compound_tag: void + if minecraft:time: void + if minecraft:resource_or_tag: + registry: string + if minecraft:resource: + registry: string + if minecraft:uuid: void + suggestionType: ../flags/has_custom_suggestions ? + if 1: string + default: void + +^handshaking.toClient.types: + packet: + name: varint => + params: ["switch",{"compareTo":"name","fields":{}}] + +^handshaking.toServer.types: + packet_set_protocol: + protocolVersion: varint + serverHost: string + serverPort: u16 + nextState: varint + packet_legacy_server_list_ping: + payload: u8 + packet: + name: varint => + 0x00: set_protocol + 0xfe: legacy_server_list_ping + params: name ? + if set_protocol: packet_set_protocol + if legacy_server_list_ping: packet_legacy_server_list_ping + +^status.toClient.types: + packet_server_info: + response: string + packet_ping: + time: i64 + packet: + name: varint => + 0x00: server_info + 0x01: ping + params: name ? + if server_info: packet_server_info + if ping: packet_ping + +^status.toServer.types: + packet_ping_start: + # Empty + packet_ping: + time: i64 + packet: + name: varint => + 0x00: ping_start + 0x01: ping + params: name ? + if ping_start: packet_ping_start + if ping: packet_ping + +^login.toClient.types: + packet_disconnect: + reason: string + packet_encryption_begin: + serverId: string + publicKey: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_success: + uuid: UUID + username: string + packet_compress: + threshold: varint + packet_login_plugin_request: + messageId: varint + channel: string + data: restBuffer + packet: + name: varint => + 0x00: disconnect + 0x01: encryption_begin + 0x02: success + 0x03: compress + 0x04: login_plugin_request + params: name ? + if disconnect: packet_disconnect + if encryption_begin: packet_encryption_begin + if success: packet_success + if compress: packet_compress + if login_plugin_request: packet_login_plugin_request + +^login.toServer.types: + packet_login_start: + username: string + packet_encryption_begin: + sharedSecret: [ + "buffer", + { + "countType": "varint" + } + ] + verifyToken: [ + "buffer", + { + "countType": "varint" + } + ] + packet_login_plugin_response: + messageId: varint + data?: restBuffer + packet: + name: varint => + 0x00: login_start + 0x01: encryption_begin + 0x02: login_plugin_response + params: name ? + if login_start: packet_login_start + if encryption_begin: packet_encryption_begin + if login_plugin_response: packet_login_plugin_response + +^play.toClient.types: + packet_spawn_entity: + entityId: varint + objectUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + pitch: i8 + yaw: i8 + objectData: i32 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_experience_orb: + entityId: varint + x: f64 + y: f64 + z: f64 + count: i16 + packet_spawn_entity_living: + entityId: varint + entityUUID: UUID + type: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + headPitch: i8 + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_spawn_entity_painting: + entityId: varint + entityUUID: UUID + title: varint + location: position + direction: u8 + packet_named_entity_spawn: + entityId: varint + playerUUID: UUID + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + packet_animation: + entityId: varint + animation: u8 + packet_statistics: + entries: []varint + categoryId: varint + statisticId: varint + value: varint + packet_advancements: + reset: bool + advancementMapping: []varint + key: string + value: + parentId?: string + displayData?: + title: string + description: string + icon: slot + frameType: varint + flags: [ + "bitfield", + [ + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } + ] + ] + backgroundTexture: flags/has_background_texture ? + if 1: string + default: void + xCord: f32 + yCord: f32 + criteria: []varint + key: string + value: void + requirements: []varint + _: string[]varint + identifiers: string[]varint + progressMapping: []varint + key: string + value: []varint + criterionIdentifier: string + criterionProgress?: i64 + packet_block_break_animation: + entityId: varint + location: position + destroyStage: i8 + packet_tile_entity_data: + location: position + action: u8 + nbtData: optionalNbt + packet_block_action: + location: position + byte1: u8 + byte2: u8 + blockId: varint + packet_block_change: + location: position + type: varint + packet_boss_bar: + entityUUID: UUID + action: varint + title: action ? + if 0: string + if 3: string + default: void + health: action ? + if 0: f32 + if 2: f32 + default: void + color: action ? + if 0: varint + if 4: varint + default: void + dividers: action ? + if 0: varint + if 4: varint + default: void + flags: action ? + if 0: u8 + if 5: u8 + default: void + packet_difficulty: + difficulty: u8 + difficultyLocked: bool + packet_tab_complete: + transactionId: varint + start: varint + length: varint + matches: []varint + match: string + tooltip?: string + packet_declare_commands: + nodes: command_node[]varint + rootIndex: varint + packet_face_player: + feet_eyes: varint + x: f64 + y: f64 + z: f64 + isEntity: bool + entityId: isEntity ? + if true: varint + default: void + entity_feet_eyes: isEntity ? + if true: string + default: void + packet_nbt_query_response: + transactionId: varint + nbt: optionalNbt + packet_chat: + message: string + position: i8 + sender: UUID + packet_multi_block_change: + chunkCoordinates: [ + "bitfield", + [ + { + "name": "x", + "size": 22, + "signed": true + }, + { + "name": "z", + "size": 22, + "signed": true + }, + { + "name": "y", + "size": 20, + "signed": false + } + ] + ] + notTrustEdges: bool + records: varlong[]varint + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_close_window: + windowId: u8 + packet_open_window: + windowId: varint + inventoryType: varint + windowTitle: string + packet_window_items: + windowId: u8 + items: slot[]i16 + packet_craft_progress_bar: + windowId: u8 + property: i16 + value: i16 + packet_set_slot: + windowId: i8 + slot: i16 + item: slot + packet_set_cooldown: + itemID: varint + cooldownTicks: varint + packet_custom_payload: + channel: string + data: restBuffer + packet_named_sound_effect: + soundName: string + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_kick_disconnect: + reason: string + packet_entity_status: + entityId: i32 + entityStatus: i8 + packet_explosion: + x: f32 + y: f32 + z: f32 + radius: f32 + affectedBlockOffsets: []i32 + x: i8 + y: i8 + z: i8 + playerMotionX: f32 + playerMotionY: f32 + playerMotionZ: f32 + packet_unload_chunk: + chunkX: i32 + chunkZ: i32 + packet_game_state_change: + reason: u8 + gameMode: f32 + packet_open_horse_window: + windowId: u8 + nbSlots: varint + entityId: i32 + packet_keep_alive: + keepAliveId: i64 + packet_map_chunk: + x: i32 + z: i32 + primaryBitMask: i64[]varint + heightmaps: nbt + biomes: varint[]varint + chunkData: [ + "buffer", + { + "countType": "varint" + } + ] + blockEntities: nbt[]varint + packet_world_event: + effectId: i32 + location: position + data: i32 + global: bool + packet_world_particles: + particleId: i32 + longDistance: bool + x: f64 + y: f64 + z: f64 + offsetX: f32 + offsetY: f32 + offsetZ: f32 + particleData: f32 + particles: i32 + data: [ + "particleData", + { + "compareTo": "particleId" + } + ] + packet_update_light: + chunkX: varint + chunkZ: varint + trustEdges: bool + skyLightMask: i64[]varint + blockLightMask: i64[]varint + emptySkyLightMask: i64[]varint + emptyBlockLightMask: i64[]varint + data: restBuffer + packet_login: + entityId: i32 + isHardcore: bool + gameMode: u8 + previousGameMode: u8 + worldNames: string[]varint + dimensionCodec: nbt + dimension: nbt + worldName: string + hashedSeed: i64 + maxPlayers: varint + viewDistance: varint + reducedDebugInfo: bool + enableRespawnScreen: bool + isDebug: bool + isFlat: bool + packet_map: + itemDamage: varint + scale: i8 + trackingPosition: bool + locked: bool + icons: []varint + type: varint + x: i8 + z: i8 + direction: u8 + displayName?: string + columns: i8 + rows: columns ? + if 0: void + default: i8 + x: columns ? + if 0: void + default: i8 + y: columns ? + if 0: void + default: i8 + data: columns ? + if 0: void + default: [ + "buffer", + { + "countType": "varint" + } + ] + packet_trade_list: + windowId: varint + trades: []u8 + inputItem1: slot + outputItem: slot + inputItem2?: slot + tradeDisabled: bool + nbTradeUses: i32 + maximumNbTradeUses: i32 + xp: i32 + specialPrice: i32 + priceMultiplier: f32 + demand: i32 + villagerLevel: varint + experience: varint + isRegularVillager: bool + canRestock: bool + packet_rel_entity_move: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + onGround: bool + packet_entity_move_look: + entityId: varint + dX: i16 + dY: i16 + dZ: i16 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_look: + entityId: varint + yaw: i8 + pitch: i8 + onGround: bool + packet_entity: + entityId: varint + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_open_book: + hand: varint + packet_open_sign_entity: + location: position + packet_craft_recipe_response: + windowId: i8 + recipe: string + packet_abilities: + flags: i8 + flyingSpeed: f32 + walkingSpeed: f32 + packet_combat_event: + event: varint + duration: event ? + if 1: varint + default: void + playerId: event ? + if 2: varint + default: void + entityId: event ? + if 1: i32 + if 2: i32 + default: void + message: event ? + if 2: string + default: void + packet_player_info: + action: varint + data: []varint + UUID: UUID + name: ../action ? + if 0: string + default: void + properties: ../action ? + if 0: []varint + name: string + value: string + signature?: string + default: void + gamemode: ../action ? + if 0: varint + if 1: varint + default: void + ping: ../action ? + if 0: varint + if 2: varint + default: void + displayName: ../action ? + if 0: [ + "option", + "string" + ] + if 3: [ + "option", + "string" + ] + default: void + packet_position: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + flags: i8 + teleportId: varint + dismountVehicle: bool + packet_unlock_recipes: + action: varint + craftingBookOpen: bool + filteringCraftable: bool + smeltingBookOpen: bool + filteringSmeltable: bool + blastFurnaceOpen: bool + filteringBlastFurnace: bool + smokerBookOpen: bool + filteringSmoker: bool + recipes1: string[]varint + recipes2: action ? + if 0: string[]varint + default: void + packet_entity_destroy: + entityIds: varint[]varint + packet_remove_entity_effect: + entityId: varint + effectId: i8 + packet_resource_pack_send: + url: string + hash: string + forced: bool + packet_respawn: + dimension: nbt + worldName: string + hashedSeed: i64 + gamemode: u8 + previousGamemode: u8 + isDebug: bool + isFlat: bool + copyMetadata: bool + packet_entity_head_rotation: + entityId: varint + headYaw: i8 + packet_world_border: + action: varint + radius: action ? + if 0: f64 + default: void + x: action ? + if 2: f64 + if 3: f64 + default: void + z: action ? + if 2: f64 + if 3: f64 + default: void + old_radius: action ? + if 1: f64 + if 3: f64 + default: void + new_radius: action ? + if 1: f64 + if 3: f64 + default: void + speed: action ? + if 1: varlong + if 3: varlong + default: void + portalBoundary: action ? + if 3: varint + default: void + warning_time: action ? + if 3: varint + if 4: varint + default: void + warning_blocks: action ? + if 3: varint + if 5: varint + default: void + packet_camera: + cameraId: varint + packet_held_item_slot: + slot: i8 + packet_update_view_position: + chunkX: varint + chunkZ: varint + packet_update_view_distance: + viewDistance: varint + packet_scoreboard_display_objective: + position: i8 + name: string + packet_entity_metadata: + entityId: varint + metadata: entityMetadata + packet_attach_entity: + entityId: i32 + vehicleId: i32 + packet_entity_velocity: + entityId: varint + velocityX: i16 + velocityY: i16 + velocityZ: i16 + packet_entity_equipment: + entityId: varint + equipments: [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] + packet_experience: + experienceBar: f32 + level: varint + totalExperience: varint + packet_update_health: + health: f32 + food: varint + foodSaturation: f32 + packet_scoreboard_objective: + name: string + action: i8 + displayText: action ? + if 0: string + if 2: string + default: void + type: action ? + if 0: varint + if 2: varint + default: void + packet_set_passengers: + entityId: varint + passengers: varint[]varint + packet_teams: + team: string + mode: i8 + name: mode ? + if 0: string + if 2: string + default: void + friendlyFire: mode ? + if 0: i8 + if 2: i8 + default: void + nameTagVisibility: mode ? + if 0: string + if 2: string + default: void + collisionRule: mode ? + if 0: string + if 2: string + default: void + formatting: mode ? + if 0: varint + if 2: varint + default: void + prefix: mode ? + if 0: string + if 2: string + default: void + suffix: mode ? + if 0: string + if 2: string + default: void + players: mode ? + if 0: string[]varint + if 3: string[]varint + if 4: string[]varint + default: void + packet_scoreboard_score: + itemName: string + action: varint + scoreName: string + value: action ? + if 1: void + default: varint + packet_spawn_position: + location: position + packet_update_time: + age: i64 + time: i64 + packet_title: + action: varint + text: action ? + if 0: string + if 1: string + if 2: string + default: void + fadeIn: action ? + if 3: i32 + default: void + stay: action ? + if 3: i32 + default: void + fadeOut: action ? + if 3: i32 + default: void + packet_entity_sound_effect: + soundId: varint + soundCategory: varint + entityId: varint + volume: f32 + pitch: f32 + packet_stop_sound: + flags: i8 + source: flags ? + if 1: varint + if 3: varint + default: void + sound: flags ? + if 2: string + if 3: string + default: void + packet_sound_effect: + soundId: varint + soundCategory: varint + x: i32 + y: i32 + z: i32 + volume: f32 + pitch: f32 + packet_playerlist_header: + header: string + footer: string + packet_collect: + collectedEntityId: varint + collectorEntityId: varint + pickupItemCount: varint + packet_entity_teleport: + entityId: varint + x: f64 + y: f64 + z: f64 + yaw: i8 + pitch: i8 + onGround: bool + packet_entity_update_attributes: + entityId: varint + properties: []i32 + key: string + value: f64 + modifiers: []varint + uuid: UUID + amount: f64 + operation: i8 + packet_entity_effect: + entityId: varint + effectId: i8 + amplifier: i8 + duration: varint + hideParticles: i8 + packet_select_advancement_tab: + id?: string + packet_declare_recipes: + recipes: []varint + type: string + recipeId: string + data: type ? + if minecraft:crafting_shapeless: + group: string + ingredients: ingredient[]varint + result: slot + if minecraft:crafting_shaped: + width: varint + height: varint + group: string + ingredients: []$width + _: ingredient[]$height + result: slot + if minecraft:crafting_special_armordye: void + if minecraft:crafting_special_bookcloning: void + if minecraft:crafting_special_mapcloning: void + if minecraft:crafting_special_mapextending: void + if minecraft:crafting_special_firework_rocket: void + if minecraft:crafting_special_firework_star: void + if minecraft:crafting_special_firework_star_fade: void + if minecraft:crafting_special_repairitem: void + if minecraft:crafting_special_tippedarrow: void + if minecraft:crafting_special_bannerduplicate: void + if minecraft:crafting_special_banneraddpattern: void + if minecraft:crafting_special_shielddecoration: void + if minecraft:crafting_special_shulkerboxcoloring: void + if minecraft:crafting_special_suspiciousstew: void + if minecraft:smelting: minecraft_smelting_format + if minecraft:blasting: minecraft_smelting_format + if minecraft:smoking: minecraft_smelting_format + if minecraft:campfire_cooking: minecraft_smelting_format + if minecraft:stonecutting: + group: string + ingredient: ingredient + result: slot + if minecraft:smithing: + base: ingredient + addition: ingredient + result: slot + minecraft_smelting_format: + group: string + ingredient: ingredient + result: slot + experience: f32 + cookTime: varint + tags: []varint + tagName: string + entries: varint[]varint + packet_tags: + tags: []varint + tagType: string + tags: tags + packet_acknowledge_player_digging: + location: position + block: varint + status: varint + successful: bool + packet_sculk_vibration_signal: + sourcePosition: position + destinationIdentifier: string + destination: destinationIdentifier ? + if block: position + if entityId: varint + default: void + arrivalTicks: varint + packet: + name: varint => + 0x00: spawn_entity + 0x01: spawn_entity_experience_orb + 0x02: spawn_entity_living + 0x03: spawn_entity_painting + 0x04: named_entity_spawn + 0x05: sculk_vibration_signal + 0x06: animation + 0x07: statistics + 0x08: acknowledge_player_digging + 0x09: block_break_animation + 0x0a: tile_entity_data + 0x0b: block_action + 0x0c: block_change + 0x0d: boss_bar + 0x0e: difficulty + 0x0f: chat + 0x10: tab_complete + 0x11: declare_commands + 0x12: transaction + 0x13: close_window + 0x14: window_items + 0x15: craft_progress_bar + 0x16: set_slot + 0x17: set_cooldown + 0x18: custom_payload + 0x19: named_sound_effect + 0x1a: kick_disconnect + 0x1b: entity_status + 0x1c: explosion + 0x1d: unload_chunk + 0x1e: game_state_change + 0x1f: open_horse_window + 0x20: keep_alive + 0x21: map_chunk + 0x22: world_event + 0x23: world_particles + 0x24: update_light + 0x25: login + 0x26: map + 0x27: trade_list + 0x28: rel_entity_move + 0x29: entity_move_look + 0x2a: entity_look + 0x2b: entity + 0x2c: vehicle_move + 0x2d: open_book + 0x2e: open_window + 0x2f: open_sign_entity + 0x30: craft_recipe_response + 0x31: abilities + 0x32: combat_event + 0x33: player_info + 0x34: face_player + 0x35: position + 0x36: unlock_recipes + 0x37: entity_destroy + 0x38: remove_entity_effect + 0x39: resource_pack_send + 0x3a: respawn + 0x3b: entity_head_rotation + 0x3c: multi_block_change + 0x3d: select_advancement_tab + 0x3e: world_border + 0x3f: camera + 0x40: held_item_slot + 0x41: update_view_position + 0x42: update_view_distance + 0x43: spawn_position + 0x44: scoreboard_display_objective + 0x45: entity_metadata + 0x46: attach_entity + 0x47: entity_velocity + 0x48: entity_equipment + 0x49: experience + 0x4a: update_health + 0x4b: scoreboard_objective + 0x4c: set_passengers + 0x4d: teams + 0x4e: scoreboard_score + 0x4f: update_time + 0x50: title + 0x51: entity_sound_effect + 0x52: sound_effect + 0x53: stop_sound + 0x54: playerlist_header + 0x55: nbt_query_response + 0x56: collect + 0x57: entity_teleport + 0x58: advancements + 0x59: entity_update_attributes + 0x5a: entity_effect + 0x5b: declare_recipes + 0x5c: tags + params: name ? + if spawn_entity: packet_spawn_entity + if spawn_entity_experience_orb: packet_spawn_entity_experience_orb + if spawn_entity_living: packet_spawn_entity_living + if spawn_entity_painting: packet_spawn_entity_painting + if named_entity_spawn: packet_named_entity_spawn + if animation: packet_animation + if statistics: packet_statistics + if advancements: packet_advancements + if block_break_animation: packet_block_break_animation + if tile_entity_data: packet_tile_entity_data + if block_action: packet_block_action + if block_change: packet_block_change + if boss_bar: packet_boss_bar + if difficulty: packet_difficulty + if tab_complete: packet_tab_complete + if declare_commands: packet_declare_commands + if face_player: packet_face_player + if nbt_query_response: packet_nbt_query_response + if chat: packet_chat + if multi_block_change: packet_multi_block_change + if transaction: packet_transaction + if close_window: packet_close_window + if open_window: packet_open_window + if window_items: packet_window_items + if craft_progress_bar: packet_craft_progress_bar + if set_slot: packet_set_slot + if set_cooldown: packet_set_cooldown + if custom_payload: packet_custom_payload + if named_sound_effect: packet_named_sound_effect + if kick_disconnect: packet_kick_disconnect + if entity_status: packet_entity_status + if explosion: packet_explosion + if unload_chunk: packet_unload_chunk + if game_state_change: packet_game_state_change + if open_horse_window: packet_open_horse_window + if keep_alive: packet_keep_alive + if map_chunk: packet_map_chunk + if world_event: packet_world_event + if world_particles: packet_world_particles + if update_light: packet_update_light + if login: packet_login + if map: packet_map + if trade_list: packet_trade_list + if rel_entity_move: packet_rel_entity_move + if entity_move_look: packet_entity_move_look + if entity_look: packet_entity_look + if entity: packet_entity + if vehicle_move: packet_vehicle_move + if open_book: packet_open_book + if open_sign_entity: packet_open_sign_entity + if craft_recipe_response: packet_craft_recipe_response + if abilities: packet_abilities + if combat_event: packet_combat_event + if player_info: packet_player_info + if position: packet_position + if unlock_recipes: packet_unlock_recipes + if entity_destroy: packet_entity_destroy + if remove_entity_effect: packet_remove_entity_effect + if resource_pack_send: packet_resource_pack_send + if respawn: packet_respawn + if entity_update_attributes: packet_entity_update_attributes + if world_border: packet_world_border + if camera: packet_camera + if held_item_slot: packet_held_item_slot + if update_view_position: packet_update_view_position + if update_view_distance: packet_update_view_distance + if scoreboard_display_objective: packet_scoreboard_display_objective + if entity_metadata: packet_entity_metadata + if attach_entity: packet_attach_entity + if entity_velocity: packet_entity_velocity + if entity_equipment: packet_entity_equipment + if experience: packet_experience + if update_health: packet_update_health + if scoreboard_objective: packet_scoreboard_objective + if set_passengers: packet_set_passengers + if teams: packet_teams + if scoreboard_score: packet_scoreboard_score + if spawn_position: packet_spawn_position + if update_time: packet_update_time + if title: packet_title + if entity_sound_effect: packet_entity_sound_effect + if stop_sound: packet_stop_sound + if sound_effect: packet_sound_effect + if playerlist_header: packet_playerlist_header + if collect: packet_collect + if entity_teleport: packet_entity_teleport + if entity_head_rotation: packet_entity_head_rotation + if entity_effect: packet_entity_effect + if select_advancement_tab: packet_select_advancement_tab + if declare_recipes: packet_declare_recipes + if tags: packet_tags + if acknowledge_player_digging: packet_acknowledge_player_digging + if sculk_vibration_signal: packet_sculk_vibration_signal + +^play.toServer.types: + packet_teleport_confirm: + teleportId: varint + packet_query_block_nbt: + transactionId: varint + location: position + packet_set_difficulty: + newDifficulty: u8 + packet_edit_book: + new_book: slot + signing: bool + hand: varint + packet_query_entity_nbt: + transactionId: varint + entityId: varint + packet_pick_item: + slot: varint + packet_name_item: + name: string + packet_select_trade: + slot: varint + packet_set_beacon_effect: + primary_effect: varint + secondary_effect: varint + packet_update_command_block: + location: position + command: string + mode: varint + flags: u8 + packet_update_command_block_minecart: + entityId: varint + command: string + track_output: bool + packet_update_structure_block: + location: position + action: varint + mode: varint + name: string + offset_x: i8 + offset_y: i8 + offset_z: i8 + size_x: i8 + size_y: i8 + size_z: i8 + mirror: varint + rotation: varint + metadata: string + integrity: f32 + seed: varlong + flags: u8 + packet_tab_complete: + transactionId: varint + text: string + packet_chat: + message: string + packet_client_command: + actionId: varint + packet_settings: + locale: string + viewDistance: i8 + chatFlags: varint + chatColors: bool + skinParts: u8 + mainHand: varint + disableTextFiltering: bool + packet_transaction: + windowId: i8 + action: i16 + accepted: bool + packet_enchant_item: + windowId: i8 + enchantment: i8 + packet_window_click: + windowId: u8 + slot: i16 + mouseButton: i8 + action: i16 + mode: i8 + item: slot + packet_close_window: + windowId: u8 + packet_custom_payload: + channel: string + data: restBuffer + packet_use_entity: + target: varint + mouse: varint + x: mouse ? + if 2: f32 + default: void + y: mouse ? + if 2: f32 + default: void + z: mouse ? + if 2: f32 + default: void + hand: mouse ? + if 0: varint + if 2: varint + default: void + sneaking: bool + packet_generate_structure: + location: position + levels: varint + keepJigsaws: bool + packet_keep_alive: + keepAliveId: i64 + packet_lock_difficulty: + locked: bool + packet_position: + x: f64 + y: f64 + z: f64 + onGround: bool + packet_position_look: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + onGround: bool + packet_look: + yaw: f32 + pitch: f32 + onGround: bool + packet_flying: + onGround: bool + packet_vehicle_move: + x: f64 + y: f64 + z: f64 + yaw: f32 + pitch: f32 + packet_steer_boat: + leftPaddle: bool + rightPaddle: bool + packet_craft_recipe_request: + windowId: i8 + recipe: string + makeAll: bool + packet_abilities: + flags: i8 + packet_block_dig: + status: varint + location: position + face: i8 + packet_entity_action: + entityId: varint + actionId: varint + jumpBoost: varint + packet_steer_vehicle: + sideways: f32 + forward: f32 + jump: u8 + packet_displayed_recipe: + recipeId: string + packet_recipe_book: + bookId: varint + bookOpen: bool + filterActive: bool + packet_resource_pack_receive: + result: varint + packet_held_item_slot: + slotId: i16 + packet_set_creative_slot: + slot: i16 + item: slot + packet_update_jigsaw_block: + location: position + name: string + target: string + pool: string + finalState: string + jointType: string + packet_update_sign: + location: position + text1: string + text2: string + text3: string + text4: string + packet_arm_animation: + hand: varint + packet_spectate: + target: UUID + packet_block_place: + hand: varint + location: position + direction: varint + cursorX: f32 + cursorY: f32 + cursorZ: f32 + insideBlock: bool + packet_use_item: + hand: varint + packet_advancement_tab: + action: varint + tabId: action ? + if 0: string + if 1: void + packet: + name: varint => + 0x00: teleport_confirm + 0x01: query_block_nbt + 0x02: set_difficulty + 0x03: chat + 0x04: client_command + 0x05: settings + 0x06: tab_complete + 0x07: transaction + 0x08: enchant_item + 0x09: window_click + 0x0a: close_window + 0x0b: custom_payload + 0x0c: edit_book + 0x0d: query_entity_nbt + 0x0e: use_entity + 0x0f: generate_structure + 0x10: keep_alive + 0x11: lock_difficulty + 0x12: position + 0x13: position_look + 0x14: look + 0x15: flying + 0x16: vehicle_move + 0x17: steer_boat + 0x18: pick_item + 0x19: craft_recipe_request + 0x1a: abilities + 0x1b: block_dig + 0x1c: entity_action + 0x1d: steer_vehicle + 0x1e: displayed_recipe + 0x1f: recipe_book + 0x20: name_item + 0x21: resource_pack_receive + 0x22: advancement_tab + 0x23: select_trade + 0x24: set_beacon_effect + 0x25: held_item_slot + 0x26: update_command_block + 0x27: update_command_block_minecart + 0x28: set_creative_slot + 0x29: update_jigsaw_block + 0x2a: update_structure_block + 0x2b: update_sign + 0x2c: arm_animation + 0x2d: spectate + 0x2e: block_place + 0x2f: use_item + params: name ? + if teleport_confirm: packet_teleport_confirm + if query_block_nbt: packet_query_block_nbt + if set_difficulty: packet_set_difficulty + if edit_book: packet_edit_book + if query_entity_nbt: packet_query_entity_nbt + if pick_item: packet_pick_item + if name_item: packet_name_item + if select_trade: packet_select_trade + if set_beacon_effect: packet_set_beacon_effect + if update_command_block: packet_update_command_block + if update_command_block_minecart: packet_update_command_block_minecart + if update_structure_block: packet_update_structure_block + if tab_complete: packet_tab_complete + if chat: packet_chat + if client_command: packet_client_command + if settings: packet_settings + if transaction: packet_transaction + if enchant_item: packet_enchant_item + if window_click: packet_window_click + if close_window: packet_close_window + if custom_payload: packet_custom_payload + if use_entity: packet_use_entity + if generate_structure: packet_generate_structure + if keep_alive: packet_keep_alive + if lock_difficulty: packet_lock_difficulty + if position: packet_position + if position_look: packet_position_look + if look: packet_look + if flying: packet_flying + if vehicle_move: packet_vehicle_move + if steer_boat: packet_steer_boat + if craft_recipe_request: packet_craft_recipe_request + if abilities: packet_abilities + if block_dig: packet_block_dig + if entity_action: packet_entity_action + if steer_vehicle: packet_steer_vehicle + if displayed_recipe: packet_displayed_recipe + if recipe_book: packet_recipe_book + if resource_pack_receive: packet_resource_pack_receive + if held_item_slot: packet_held_item_slot + if set_creative_slot: packet_set_creative_slot + if update_jigsaw_block: packet_update_jigsaw_block + if update_sign: packet_update_sign + if arm_animation: packet_arm_animation + if spectate: packet_spectate + if block_place: packet_block_place + if use_item: packet_use_item + if advancement_tab: packet_advancement_tab diff --git a/data/pc/21w07a/protocol.json b/data/pc/21w07a/protocol.json index 03d1f12ba..f14e723bd 100644 --- a/data/pc/21w07a/protocol.json +++ b/data/pc/21w07a/protocol.json @@ -50,7 +50,6 @@ "true": [ "container", [ - { "name": "itemId", "type": "varint" @@ -65,7 +64,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -95,7 +95,8 @@ "compareTo": "$compareTo", "fields": { "3": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" @@ -103,7 +104,8 @@ ] ], "14": [ - "container", [ + "container", + [ { "name": "red", "type": "f32" @@ -123,15 +125,17 @@ ] ], "23": [ - "container", [ + "container", + [ { "name": "blockState", "type": "varint" } ] ], - "34": [ - "container", [ + "34": [ + "container", + [ { "name": "item", "type": "slot" @@ -216,7 +220,8 @@ "14": "nbt", "15": "particle", "16": [ - "container",[ + "container", + [ { "name": "villagerType", "type": "varint" @@ -233,7 +238,8 @@ ], "17": "optvarint", "18": "varint" - } + }, + "default": "void" } ], "entityMetadata": [ @@ -692,7 +698,8 @@ ] ], "minecraft:uuid": "void" - } + }, + "default": "void" } ] }, @@ -711,7 +718,8 @@ } ] ] - } + }, + "default": "void" } ] } @@ -790,8 +798,8 @@ { "type": "varint", "mappings": { - "0x00": "set_protocol", - "0xfe": "legacy_server_list_ping" + "0": "set_protocol", + "254": "legacy_server_list_ping" } } ] @@ -805,7 +813,8 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - } + }, + "default": "void" } ] } @@ -845,8 +854,8 @@ { "type": "varint", "mappings": { - "0x00": "server_info", - "0x01": "ping" + "0": "server_info", + "1": "ping" } } ] @@ -860,7 +869,8 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -893,8 +903,8 @@ { "type": "varint", "mappings": { - "0x00": "ping_start", - "0x01": "ping" + "0": "ping_start", + "1": "ping" } } ] @@ -908,7 +918,8 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - } + }, + "default": "void" } ] } @@ -1005,11 +1016,11 @@ { "type": "varint", "mappings": { - "0x00": "disconnect", - "0x01": "encryption_begin", - "0x02": "success", - "0x03": "compress", - "0x04": "login_plugin_request" + "0": "disconnect", + "1": "encryption_begin", + "2": "success", + "3": "compress", + "4": "login_plugin_request" } } ] @@ -1026,7 +1037,8 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - } + }, + "default": "void" } ] } @@ -1094,9 +1106,9 @@ { "type": "varint", "mappings": { - "0x00": "login_start", - "0x01": "encryption_begin", - "0x02": "login_plugin_response" + "0": "login_start", + "1": "encryption_begin", + "2": "login_plugin_response" } } ] @@ -1111,7 +1123,8 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - } + }, + "default": "void" } ] } @@ -1416,10 +1429,26 @@ "type": [ "bitfield", [ - { "name": "_unused", "size": 29, "signed": false }, - { "name": "hidden", "size": 1, "signed": false }, - { "name": "show_toast", "size": 1, "signed": false }, - { "name": "has_background_texture", "size": 1, "signed": false } + { + "name": "_unused", + "size": 29, + "signed": false + }, + { + "name": "hidden", + "size": 1, + "signed": false + }, + { + "name": "show_toast", + "size": 1, + "signed": false + }, + { + "name": "has_background_texture", + "size": 1, + "signed": false + } ] ] }, @@ -1734,19 +1763,22 @@ "array", { "countType": "varint", - "type": ["container",[ - { - "name": "match", - "type": "string" - }, - { - "name": "tooltip", - "type": [ - "option", - "string" - ] - } - ]] + "type": [ + "container", + [ + { + "name": "match", + "type": "string" + }, + { + "name": "tooltip", + "type": [ + "option", + "string" + ] + } + ] + ] } ] } @@ -1857,7 +1889,8 @@ [ { "name": "chunkCoordinates", - "type": ["bitfield", + "type": [ + "bitfield", [ { "name": "x", @@ -2194,10 +2227,13 @@ }, { "name": "primaryBitMask", - "type": ["array", { - "countType": "varint", - "type": "i64" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { "name": "heightmaps", @@ -2205,10 +2241,13 @@ }, { "name": "biomes", - "type": ["array", { - "countType": "varint", - "type": "varint" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] }, { "name": "chunkData", @@ -2222,9 +2261,10 @@ { "name": "blockEntities", "type": [ - "array",{ - "countType":"varint", - "type":"nbt" + "array", + { + "countType": "varint", + "type": "nbt" } ] } @@ -2322,31 +2362,43 @@ }, { "name": "skyLightMask", - "type": ["array", { - "countType": "varint", - "type": "i64" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { "name": "blockLightMask", - "type": ["array", { - "countType": "varint", - "type": "i64" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { "name": "emptySkyLightMask", - "type": ["array", { - "countType": "varint", - "type": "i64" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { "name": "emptyBlockLightMask", - "type": ["array", { - "countType": "varint", - "type": "i64" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "i64" + } + ] }, { "name": "data", @@ -2375,10 +2427,13 @@ }, { "name": "worldNames", - "type": ["array", { - "countType": "varint", - "type": "string" - }] + "type": [ + "array", + { + "countType": "varint", + "type": "string" + } + ] }, { "name": "dimensionCodec", @@ -2468,7 +2523,10 @@ }, { "name": "displayName", - "type": ["option", "string"] + "type": [ + "option", + "string" + ] } ] ] @@ -2551,48 +2609,54 @@ "array", { "countType": "u8", - "type": ["container", [ - { - "name": "inputItem1", - "type": "slot" - }, - { - "name": "outputItem", - "type": "slot" - }, - { - "name": "inputItem2", - "type": ["option", "slot"] - }, - { - "name": "tradeDisabled", - "type": "bool" - }, - { - "name": "nbTradeUses", - "type": "i32" - }, - { - "name": "maximumNbTradeUses", - "type": "i32" - }, - { - "name": "xp", - "type": "i32" - }, - { - "name": "specialPrice", - "type": "i32" - }, - { - "name": "priceMultiplier", - "type": "f32" - }, - { - "name": "demand", - "type": "i32" - } - ]] + "type": [ + "container", + [ + { + "name": "inputItem1", + "type": "slot" + }, + { + "name": "outputItem", + "type": "slot" + }, + { + "name": "inputItem2", + "type": [ + "option", + "slot" + ] + }, + { + "name": "tradeDisabled", + "type": "bool" + }, + { + "name": "nbTradeUses", + "type": "i32" + }, + { + "name": "maximumNbTradeUses", + "type": "i32" + }, + { + "name": "xp", + "type": "i32" + }, + { + "name": "specialPrice", + "type": "i32" + }, + { + "name": "priceMultiplier", + "type": "f32" + }, + { + "name": "demand", + "type": "i32" + } + ] + ] } ] }, @@ -3040,18 +3104,18 @@ "type": "bool" }, { - "name":"recipes1", - "type":[ + "name": "recipes1", + "type": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, { - "name":"recipes2", - "type":[ + "name": "recipes2", + "type": [ "switch", { "compareTo": "action", @@ -3059,8 +3123,8 @@ "0": [ "array", { - "countType":"varint", - "type":"string" + "countType": "varint", + "type": "string" } ] }, @@ -3407,18 +3471,24 @@ }, { "name": "equipments", - "type": ["topBitSetTerminatedArray", { - "type": ["container", [ - { - "name": "slot", - "type": "i8" - }, - { - "name": "item", - "type": "slot" - } - ]] - }] + "type": [ + "topBitSetTerminatedArray", + { + "type": [ + "container", + [ + { + "name": "slot", + "type": "i8" + }, + { + "name": "item", + "type": "slot" + } + ] + ] + } + ] } ] ], @@ -3809,25 +3879,31 @@ }, { "name": "source", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "varint", - "1": "varint" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "1": "varint", + "3": "varint" + }, + "default": "void" + } + ] }, { "name": "sound", - "type": ["switch",{ - "compareTo":"flags", - "fields": { - "3": "string", - "2": "string" - }, - "default": "void" - }] + "type": [ + "switch", + { + "compareTo": "flags", + "fields": { + "2": "string", + "3": "string" + }, + "default": "void" + } + ] } ] ], @@ -4026,181 +4102,229 @@ [ { "name": "recipes", - "type": ["array",{ - "countType": "varint", - "type":["container",[ - { - "name": "type", - "type": "string" - }, - { - "name": "recipeId", - "type": "string" - }, - { - "name": "data", - "type": ["switch", { - "compareTo": "type", - "fields": { - "minecraft:crafting_shapeless": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "countType": "varint", - "type": "ingredient" - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_shaped": ["container",[ - { - "name": "width", - "type": "varint" - }, - { - "name": "height", - "type": "varint" - }, - { - "name": "group", - "type": "string" - }, - { - "name": "ingredients", - "type": ["array",{ - "count": "width", - "type": ["array",{ - "count": "height", - "type": "ingredient" - }] - }] - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:crafting_special_armordye": "void", - "minecraft:crafting_special_bookcloning": "void", - "minecraft:crafting_special_mapcloning": "void", - "minecraft:crafting_special_mapextending": "void", - "minecraft:crafting_special_firework_rocket": "void", - "minecraft:crafting_special_firework_star": "void", - "minecraft:crafting_special_firework_star_fade": "void", - "minecraft:crafting_special_repairitem": "void", - "minecraft:crafting_special_tippedarrow": "void", - "minecraft:crafting_special_bannerduplicate": "void", - "minecraft:crafting_special_banneraddpattern": "void", - "minecraft:crafting_special_shielddecoration": "void", - "minecraft:crafting_special_shulkerboxcoloring": "void", - "minecraft:crafting_special_suspiciousstew": "void", - "minecraft:smelting": "minecraft_smelting_format", - "minecraft:blasting": "minecraft_smelting_format", - "minecraft:smoking": "minecraft_smelting_format", - "minecraft:campfire_cooking": "minecraft_smelting_format", - "minecraft:stonecutting": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - } - ]], - "minecraft:smithing": ["container",[ - { - "name": "base", - "type": "ingredient" - }, - { - "name": "addition", - "type": "ingredient" - }, + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "type", + "type": "string" + }, + { + "name": "recipeId", + "type": "string" + }, + { + "name": "data", + "type": [ + "switch", { - "name": "result", - "type": "slot" + "compareTo": "type", + "fields": { + "minecraft:crafting_shapeless": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "countType": "varint", + "type": "ingredient" + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_shaped": [ + "container", + [ + { + "name": "width", + "type": "varint" + }, + { + "name": "height", + "type": "varint" + }, + { + "name": "group", + "type": "string" + }, + { + "name": "ingredients", + "type": [ + "array", + { + "count": "width", + "type": [ + "array", + { + "count": "height", + "type": "ingredient" + } + ] + } + ] + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:crafting_special_armordye": "void", + "minecraft:crafting_special_bookcloning": "void", + "minecraft:crafting_special_mapcloning": "void", + "minecraft:crafting_special_mapextending": "void", + "minecraft:crafting_special_firework_rocket": "void", + "minecraft:crafting_special_firework_star": "void", + "minecraft:crafting_special_firework_star_fade": "void", + "minecraft:crafting_special_repairitem": "void", + "minecraft:crafting_special_tippedarrow": "void", + "minecraft:crafting_special_bannerduplicate": "void", + "minecraft:crafting_special_banneraddpattern": "void", + "minecraft:crafting_special_shielddecoration": "void", + "minecraft:crafting_special_shulkerboxcoloring": "void", + "minecraft:crafting_special_suspiciousstew": "void", + "minecraft:smelting": "minecraft_smelting_format", + "minecraft:blasting": "minecraft_smelting_format", + "minecraft:smoking": "minecraft_smelting_format", + "minecraft:campfire_cooking": "minecraft_smelting_format", + "minecraft:stonecutting": [ + "container", + [ + { + "name": "group", + "type": "string" + }, + { + "name": "ingredient", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ], + "minecraft:smithing": [ + "container", + [ + { + "name": "base", + "type": "ingredient" + }, + { + "name": "addition", + "type": "ingredient" + }, + { + "name": "result", + "type": "slot" + } + ] + ] + }, + "default": "void" } - ]] + ] } - }] - } - ]] - }] + ] + ] + } + ] } ] ], - "minecraft_smelting_format": ["container",[ - { - "name": "group", - "type": "string" - }, - { - "name": "ingredient", - "type": "ingredient" - }, - { - "name": "result", - "type": "slot" - }, - { - "name": "experience", - "type": "f32" - }, - { - "name": "cookTime", - "type": "varint" - } - ]], - "tags":["array",{ - "countType": "varint", - "type": ["container", [ + "minecraft_smelting_format": [ + "container", + [ { - "name": "tagName", + "name": "group", "type": "string" }, { - "name": "entries", - "type": ["array",{ - "countType": "varint", - "type": "varint" - }] - } - ]] - }], - "packet_tags": [ - "container", - [ + "name": "ingredient", + "type": "ingredient" + }, { - "name": "tags", - "type": ["array", { - "countType": "varint", - "type": ["container", + "name": "result", + "type": "slot" + }, + { + "name": "experience", + "type": "f32" + }, + { + "name": "cookTime", + "type": "varint" + } + ] + ], + "tags": [ + "array", + { + "countType": "varint", + "type": [ + "container", [ { - "name": "tagType", + "name": "tagName", "type": "string" }, { - "name": "tags", - "type": "tags" + "name": "entries", + "type": [ + "array", + { + "countType": "varint", + "type": "varint" + } + ] } - ]] - }] + ] + ] + } + ], + "packet_tags": [ + "container", + [ + { + "name": "tags", + "type": [ + "array", + { + "countType": "varint", + "type": [ + "container", + [ + { + "name": "tagType", + "type": "string" + }, + { + "name": "tags", + "type": "tags" + } + ] + ] + } + ] } ] - ], + ], "packet_acknowledge_player_digging": [ "container", [ @@ -4263,99 +4387,99 @@ { "type": "varint", "mappings": { - "0x00": "spawn_entity", - "0x01": "spawn_entity_experience_orb", - "0x02": "spawn_entity_living", - "0x03": "spawn_entity_painting", - "0x04": "named_entity_spawn", - "0x05": "sculk_vibration_signal", - "0x06": "animation", - "0x07": "statistics", - "0x08": "acknowledge_player_digging", - "0x09": "block_break_animation", - "0x0a": "tile_entity_data", - "0x0b": "block_action", - "0x0c": "block_change", - "0x0d": "boss_bar", - "0x0e": "difficulty", - "0x0f": "chat", - "0x10": "tab_complete", - "0x11": "declare_commands", - "0x12": "transaction", - "0x13": "close_window", - "0x14": "window_items", - "0x15": "craft_progress_bar", - "0x16": "set_slot", - "0x17": "set_cooldown", - "0x18": "custom_payload", - "0x19": "named_sound_effect", - "0x1a": "kick_disconnect", - "0x1b": "entity_status", - "0x1c": "explosion", - "0x1d": "unload_chunk", - "0x1e": "game_state_change", - "0x1f": "open_horse_window", - "0x20": "keep_alive", - "0x21": "map_chunk", - "0x22": "world_event", - "0x23": "world_particles", - "0x24": "update_light", - "0x25": "login", - "0x26": "map", - "0x27": "trade_list", - "0x28": "rel_entity_move", - "0x29": "entity_move_look", - "0x2a": "entity_look", - "0x2b": "entity", - "0x2c": "vehicle_move", - "0x2d": "open_book", - "0x2e": "open_window", - "0x2f": "open_sign_entity", - "0x30": "craft_recipe_response", - "0x31": "abilities", - "0x32": "combat_event", - "0x33": "player_info", - "0x34": "face_player", - "0x35": "position", - "0x36": "unlock_recipes", - "0x37": "entity_destroy", - "0x38": "remove_entity_effect", - "0x39": "resource_pack_send", - "0x3a": "respawn", - "0x3b": "entity_head_rotation", - "0x3c": "multi_block_change", - "0x3d": "select_advancement_tab", - "0x3e": "world_border", - "0x3f": "camera", - "0x40": "held_item_slot", - "0x41": "update_view_position", - "0x42": "update_view_distance", - "0x43": "spawn_position", - "0x44": "scoreboard_display_objective", - "0x45": "entity_metadata", - "0x46": "attach_entity", - "0x47": "entity_velocity", - "0x48": "entity_equipment", - "0x49": "experience", - "0x4a": "update_health", - "0x4b": "scoreboard_objective", - "0x4c": "set_passengers", - "0x4d": "teams", - "0x4e": "scoreboard_score", - "0x4f": "update_time", - "0x50": "title", - "0x51": "entity_sound_effect", - "0x52": "sound_effect", - "0x53": "stop_sound", - "0x54": "playerlist_header", - "0x55": "nbt_query_response", - "0x56": "collect", - "0x57": "entity_teleport", - "0x58": "advancements", - "0x59": "entity_update_attributes", - "0x5a": "entity_effect", - "0x5b": "declare_recipes", - "0x5c": "tags" + "0": "spawn_entity", + "1": "spawn_entity_experience_orb", + "2": "spawn_entity_living", + "3": "spawn_entity_painting", + "4": "named_entity_spawn", + "5": "sculk_vibration_signal", + "6": "animation", + "7": "statistics", + "8": "acknowledge_player_digging", + "9": "block_break_animation", + "10": "tile_entity_data", + "11": "block_action", + "12": "block_change", + "13": "boss_bar", + "14": "difficulty", + "15": "chat", + "16": "tab_complete", + "17": "declare_commands", + "18": "transaction", + "19": "close_window", + "20": "window_items", + "21": "craft_progress_bar", + "22": "set_slot", + "23": "set_cooldown", + "24": "custom_payload", + "25": "named_sound_effect", + "26": "kick_disconnect", + "27": "entity_status", + "28": "explosion", + "29": "unload_chunk", + "30": "game_state_change", + "31": "open_horse_window", + "32": "keep_alive", + "33": "map_chunk", + "34": "world_event", + "35": "world_particles", + "36": "update_light", + "37": "login", + "38": "map", + "39": "trade_list", + "40": "rel_entity_move", + "41": "entity_move_look", + "42": "entity_look", + "43": "entity", + "44": "vehicle_move", + "45": "open_book", + "46": "open_window", + "47": "open_sign_entity", + "48": "craft_recipe_response", + "49": "abilities", + "50": "combat_event", + "51": "player_info", + "52": "face_player", + "53": "position", + "54": "unlock_recipes", + "55": "entity_destroy", + "56": "remove_entity_effect", + "57": "resource_pack_send", + "58": "respawn", + "59": "entity_head_rotation", + "60": "multi_block_change", + "61": "select_advancement_tab", + "62": "world_border", + "63": "camera", + "64": "held_item_slot", + "65": "update_view_position", + "66": "update_view_distance", + "67": "spawn_position", + "68": "scoreboard_display_objective", + "69": "entity_metadata", + "70": "attach_entity", + "71": "entity_velocity", + "72": "entity_equipment", + "73": "experience", + "74": "update_health", + "75": "scoreboard_objective", + "76": "set_passengers", + "77": "teams", + "78": "scoreboard_score", + "79": "update_time", + "80": "title", + "81": "entity_sound_effect", + "82": "sound_effect", + "83": "stop_sound", + "84": "playerlist_header", + "85": "nbt_query_response", + "86": "collect", + "87": "entity_teleport", + "88": "advancements", + "89": "entity_update_attributes", + "90": "entity_effect", + "91": "declare_recipes", + "92": "tags" } } ] @@ -4460,7 +4584,8 @@ "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging", "sculk_vibration_signal": "packet_sculk_vibration_signal" - } + }, + "default": "void" } ] } @@ -4602,8 +4727,7 @@ { "name": "command", "type": "string" - } - , + }, { "name": "track_output", "type": "bool" @@ -5303,11 +5427,12 @@ "type": [ "switch", { - "compareTo":"action", + "compareTo": "action", "fields": { "0": "string", "1": "void" - } + }, + "default": "void" } ] } @@ -5323,54 +5448,54 @@ { "type": "varint", "mappings": { - "0x00": "teleport_confirm", - "0x01": "query_block_nbt", - "0x02": "set_difficulty", - "0x03": "chat", - "0x04": "client_command", - "0x05": "settings", - "0x06": "tab_complete", - "0x07": "transaction", - "0x08": "enchant_item", - "0x09": "window_click", - "0x0a": "close_window", - "0x0b": "custom_payload", - "0x0c": "edit_book", - "0x0d": "query_entity_nbt", - "0x0e": "use_entity", - "0x0f": "generate_structure", - "0x10": "keep_alive", - "0x11": "lock_difficulty", - "0x12": "position", - "0x13": "position_look", - "0x14": "look", - "0x15": "flying", - "0x16": "vehicle_move", - "0x17": "steer_boat", - "0x18": "pick_item", - "0x19": "craft_recipe_request", - "0x1a": "abilities", - "0x1b": "block_dig", - "0x1c": "entity_action", - "0x1d": "steer_vehicle", - "0x1e": "displayed_recipe", - "0x1f": "recipe_book", - "0x20": "name_item", - "0x21": "resource_pack_receive", - "0x22": "advancement_tab", - "0x23": "select_trade", - "0x24": "set_beacon_effect", - "0x25": "held_item_slot", - "0x26": "update_command_block", - "0x27": "update_command_block_minecart", - "0x28": "set_creative_slot", - "0x29": "update_jigsaw_block", - "0x2a": "update_structure_block", - "0x2b": "update_sign", - "0x2c": "arm_animation", - "0x2d": "spectate", - "0x2e": "block_place", - "0x2f": "use_item" + "0": "teleport_confirm", + "1": "query_block_nbt", + "2": "set_difficulty", + "3": "chat", + "4": "client_command", + "5": "settings", + "6": "tab_complete", + "7": "transaction", + "8": "enchant_item", + "9": "window_click", + "10": "close_window", + "11": "custom_payload", + "12": "edit_book", + "13": "query_entity_nbt", + "14": "use_entity", + "15": "generate_structure", + "16": "keep_alive", + "17": "lock_difficulty", + "18": "position", + "19": "position_look", + "20": "look", + "21": "flying", + "22": "vehicle_move", + "23": "steer_boat", + "24": "pick_item", + "25": "craft_recipe_request", + "26": "abilities", + "27": "block_dig", + "28": "entity_action", + "29": "steer_vehicle", + "30": "displayed_recipe", + "31": "recipe_book", + "32": "name_item", + "33": "resource_pack_receive", + "34": "advancement_tab", + "35": "select_trade", + "36": "set_beacon_effect", + "37": "held_item_slot", + "38": "update_command_block", + "39": "update_command_block_minecart", + "40": "set_creative_slot", + "41": "update_jigsaw_block", + "42": "update_structure_block", + "43": "update_sign", + "44": "arm_animation", + "45": "spectate", + "46": "block_place", + "47": "use_item" } } ] @@ -5430,7 +5555,8 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - } + }, + "default": "void" } ] } @@ -5439,4 +5565,4 @@ } } } -} +} \ No newline at end of file diff --git a/tools/js/convertMcpcProtocolJsonToYaml.js b/tools/js/convertMcpcProtocolJsonToYaml.js index aa89c97cf..adcd9d9a4 100644 --- a/tools/js/convertMcpcProtocolJsonToYaml.js +++ b/tools/js/convertMcpcProtocolJsonToYaml.js @@ -1,6 +1,15 @@ const { genYAML } = require('protodef-yaml') +const {join} = require('path') const fs = require('fs') +function addDataPath (version, key, value) { + const dataPaths = require('../../data/dataPaths.json') + if (dataPaths.pc[version][key]) return + dataPaths.pc[version][key] = value + console.log('Updating datapath for', version, key, value) + fs.writeFileSync(join(__dirname, '../../data/dataPaths.json'), JSON.stringify(dataPaths, null, 2)) +} + function convert (version) { let text = '!version: ' + version + '\n\n' const protocol = require(`../../data/pc/${version}/protocol.json`) @@ -10,12 +19,22 @@ function convert (version) { text += '^types:\n' text += genYAML(data, 1) } + // 0.30c (stateless) + if (state === 'toClient') { + text += `\n^toClient.types:\n` + text += genYAML(data.types, 1) + } + if (state === 'toServer') { + text += `\n^toServer.types:\n` + text += genYAML(data.types, 1) + } + // Rest of versions have states if (data.toClient) { - text += `^${state}.toClient.types:\n` + text += `\n^${state}.toClient.types:\n` text += genYAML(data.toClient.types, 1) } if (data.toServer) { - text += `^${state}.toServer.types:\n` + text += `\n^${state}.toServer.types:\n` text += genYAML(data.toServer.types, 1) } } @@ -23,10 +42,24 @@ function convert (version) { const absPath = fs.realpathSync(`../../data/pc/${version}/`) + '/proto.yml' console.log(`Wrote to ${absPath}`) fs.writeFileSync(outFile, text) + addDataPath(version, 'proto', 'pc/' + version) } if (process.argv.length < 3) { console.log('Usage: node convertMcpcProtocolJsonToYaml.js ') process.exit(1) } -convert(process.argv[2]) + +const version = process.argv[2] +if (version === 'all') { + const dataPaths = require('../../data/dataPaths.json') + for (const version in dataPaths.pc) { + try { + convert(version) + } catch (e) { + console.log('Failed for', version, e) + } + } +} else { + convert(version) +} From c231328406aa9abbab2bfbf3edb2669056b3d3fa Mon Sep 17 00:00:00 2001 From: extremeheat Date: Wed, 3 Jul 2024 06:11:37 +0000 Subject: [PATCH 11/14] lint --- tools/js/convertMcpcProtocolJsonToYaml.js | 6 +++--- tools/js/test/protocolSync.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/js/convertMcpcProtocolJsonToYaml.js b/tools/js/convertMcpcProtocolJsonToYaml.js index adcd9d9a4..029fb1a51 100644 --- a/tools/js/convertMcpcProtocolJsonToYaml.js +++ b/tools/js/convertMcpcProtocolJsonToYaml.js @@ -1,5 +1,5 @@ const { genYAML } = require('protodef-yaml') -const {join} = require('path') +const { join } = require('path') const fs = require('fs') function addDataPath (version, key, value) { @@ -21,11 +21,11 @@ function convert (version) { } // 0.30c (stateless) if (state === 'toClient') { - text += `\n^toClient.types:\n` + text += '\n^toClient.types:\n' text += genYAML(data.types, 1) } if (state === 'toServer') { - text += `\n^toServer.types:\n` + text += '\n^toServer.types:\n' text += genYAML(data.types, 1) } // Rest of versions have states diff --git a/tools/js/test/protocolSync.js b/tools/js/test/protocolSync.js index aabc58ec3..00844aef5 100644 --- a/tools/js/test/protocolSync.js +++ b/tools/js/test/protocolSync.js @@ -4,5 +4,5 @@ const protocolTools = require('../compileProtocol') describe('protocol yaml', () => { it('should be valid and in sync with json', () => { protocolTools.all(protocolTools.validate) - }) + }).timeout(9000) }) From a6e58fe2cc6ddb50e43e29b91ee6b660221edb87 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 7 Jul 2024 07:30:00 +0000 Subject: [PATCH 12/14] Use hex in protocol.json packet mappers --- data/pc/0.30c/protocol.json | 38 +-- data/pc/1.10-pre1/protocol.json | 236 ++++++++--------- data/pc/1.10/protocol.json | 236 ++++++++--------- data/pc/1.11/protocol.json | 236 ++++++++--------- data/pc/1.12-pre4/protocol.json | 248 +++++++++--------- data/pc/1.12.1/protocol.json | 250 +++++++++--------- data/pc/1.12.2/protocol.json | 250 +++++++++--------- data/pc/1.12/protocol.json | 248 +++++++++--------- data/pc/1.13.1/protocol.json | 286 ++++++++++----------- data/pc/1.13.2-pre1/protocol.json | 286 ++++++++++----------- data/pc/1.13.2-pre2/protocol.json | 286 ++++++++++----------- data/pc/1.13.2/protocol.json | 286 ++++++++++----------- data/pc/1.13/protocol.json | 286 ++++++++++----------- data/pc/1.14.1/protocol.json | 304 +++++++++++----------- data/pc/1.14.3/protocol.json | 304 +++++++++++----------- data/pc/1.14.4/protocol.json | 306 +++++++++++----------- data/pc/1.14/protocol.json | 304 +++++++++++----------- data/pc/1.15.1/protocol.json | 306 +++++++++++----------- data/pc/1.15.2/protocol.json | 306 +++++++++++----------- data/pc/1.15/protocol.json | 306 +++++++++++----------- data/pc/1.16-rc1/protocol.json | 306 +++++++++++----------- data/pc/1.16.1/protocol.json | 306 +++++++++++----------- data/pc/1.16.2/protocol.json | 308 +++++++++++------------ data/pc/1.16/protocol.json | 306 +++++++++++----------- data/pc/1.17.1/protocol.json | 330 ++++++++++++------------ data/pc/1.17/protocol.json | 330 ++++++++++++------------ data/pc/1.18.2/protocol.json | 332 ++++++++++++------------ data/pc/1.18/protocol.json | 332 ++++++++++++------------ data/pc/1.19.2/protocol.json | 346 ++++++++++++------------- data/pc/1.19.3/protocol.json | 344 ++++++++++++------------- data/pc/1.19.4/protocol.json | 352 +++++++++++++------------- data/pc/1.19/protocol.json | 338 ++++++++++++------------- data/pc/1.20.2/protocol.json | 394 ++++++++++++++--------------- data/pc/1.20.3/protocol.json | 406 +++++++++++++++--------------- data/pc/1.20/protocol.json | 352 +++++++++++++------------- data/pc/1.7/protocol.json | 200 +++++++-------- data/pc/1.8/protocol.json | 224 ++++++++--------- data/pc/1.9.1-pre2/protocol.json | 238 +++++++++--------- data/pc/1.9.2/protocol.json | 238 +++++++++--------- data/pc/1.9.4/protocol.json | 236 ++++++++--------- data/pc/1.9/protocol.json | 238 +++++++++--------- data/pc/15w40b/protocol.json | 228 ++++++++--------- data/pc/16w20a/protocol.json | 236 ++++++++--------- data/pc/16w35a/protocol.json | 236 ++++++++--------- data/pc/17w15a/protocol.json | 244 +++++++++--------- data/pc/17w18b/protocol.json | 244 +++++++++--------- data/pc/17w50a/protocol.json | 258 +++++++++---------- data/pc/20w13b/protocol.json | 306 +++++++++++----------- data/pc/21w07a/protocol.json | 310 +++++++++++------------ tools/js/compileProtocol.js | 17 +- 50 files changed, 6928 insertions(+), 6915 deletions(-) diff --git a/data/pc/0.30c/protocol.json b/data/pc/0.30c/protocol.json index 480842af7..cb6b196e6 100644 --- a/data/pc/0.30c/protocol.json +++ b/data/pc/0.30c/protocol.json @@ -106,10 +106,10 @@ { "type": "u8", "mappings": { - "0": "player_identification", - "5": "set_block", - "8": "position", - "13": "message" + "0x00": "player_identification", + "0x05": "set_block", + "0x08": "position", + "0x0d": "message" } } ] @@ -395,21 +395,21 @@ { "type": "u8", "mappings": { - "0": "server_identification", - "1": "ping", - "2": "level_initialize", - "3": "level_data_chunk", - "4": "level_finalize", - "6": "set_block", - "7": "spawn_player", - "8": "player_teleport", - "9": "position_and_orientation_update", - "10": "position_update", - "11": "orientation_update", - "12": "despawn_player", - "13": "message", - "14": "disconnect_player", - "15": "update_user_type" + "0x00": "server_identification", + "0x01": "ping", + "0x02": "level_initialize", + "0x03": "level_data_chunk", + "0x04": "level_finalize", + "0x06": "set_block", + "0x07": "spawn_player", + "0x08": "player_teleport", + "0x09": "position_and_orientation_update", + "0x0a": "position_update", + "0x0b": "orientation_update", + "0x0c": "despawn_player", + "0x0d": "message", + "0x0e": "disconnect_player", + "0x0f": "update_user_type" } } ] diff --git a/data/pc/1.10-pre1/protocol.json b/data/pc/1.10-pre1/protocol.json index 2b3de33b7..41e2f6316 100644 --- a/data/pc/1.10-pre1/protocol.json +++ b/data/pc/1.10-pre1/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2807,82 +2807,82 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "sound_effect", - "71": "playerlist_header", - "72": "collect", - "73": "entity_teleport", - "74": "entity_update_attributes", - "75": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" } } ] @@ -3517,36 +3517,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/1.10/protocol.json b/data/pc/1.10/protocol.json index 2b3de33b7..41e2f6316 100644 --- a/data/pc/1.10/protocol.json +++ b/data/pc/1.10/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2807,82 +2807,82 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "sound_effect", - "71": "playerlist_header", - "72": "collect", - "73": "entity_teleport", - "74": "entity_update_attributes", - "75": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" } } ] @@ -3517,36 +3517,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/1.11/protocol.json b/data/pc/1.11/protocol.json index 001bc23a8..6e941becc 100644 --- a/data/pc/1.11/protocol.json +++ b/data/pc/1.11/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2812,82 +2812,82 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "sound_effect", - "71": "playerlist_header", - "72": "collect", - "73": "entity_teleport", - "74": "entity_update_attributes", - "75": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" } } ] @@ -3522,36 +3522,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/1.12-pre4/protocol.json b/data/pc/1.12-pre4/protocol.json index 6560e8914..c7845da8f 100644 --- a/data/pc/1.12-pre4/protocol.json +++ b/data/pc/1.12-pre4/protocol.json @@ -242,8 +242,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -298,8 +298,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -347,8 +347,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -443,10 +443,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -515,8 +515,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3041,85 +3041,85 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "advancements", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "tab_complete", - "16": "chat", - "17": "multi_block_change", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "login", - "37": "map", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "entity", - "42": "vehicle_move", - "43": "open_sign_entity", - "44": "abilities", - "45": "combat_event", - "46": "player_info", - "47": "position", - "48": "bed", - "49": "unlock_recipes", - "50": "entity_destroy", - "51": "remove_entity_effect", - "52": "resource_pack_send", - "53": "respawn", - "54": "entity_head_rotation", - "55": "world_border", - "56": "camera", - "57": "held_item_slot", - "58": "scoreboard_display_objective", - "59": "entity_metadata", - "60": "attach_entity", - "61": "entity_velocity", - "62": "entity_equipment", - "63": "experience", - "64": "update_health", - "65": "scoreboard_objective", - "66": "set_passengers", - "67": "teams", - "68": "scoreboard_score", - "69": "spawn_position", - "70": "update_time", - "71": "title", - "72": "sound_effect", - "73": "playerlist_header", - "74": "collect", - "75": "entity_teleport", - "76": "entity_update_attributes", - "77": "entity_effect", - "78": "advancement_progress" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "advancements", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "tab_complete", + "0x10": "chat", + "0x11": "multi_block_change", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "entity_update_attributes", + "0x4d": "entity_effect", + "0x4e": "advancement_progress" } } ] @@ -3888,39 +3888,39 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "prepare_crafting_grid", - "2": "tab_complete", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "use_entity", - "12": "keep_alive", - "13": "position", - "14": "position_look", - "15": "look", - "16": "flying", - "17": "vehicle_move", - "18": "steer_boat", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "held_item_slot", - "26": "set_creative_slot", - "27": "update_sign", - "28": "arm_animation", - "29": "spectate", - "30": "block_place", - "31": "use_item", - "32": "advancement_tab" + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "flying", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "held_item_slot", + "0x1a": "set_creative_slot", + "0x1b": "update_sign", + "0x1c": "arm_animation", + "0x1d": "spectate", + "0x1e": "block_place", + "0x1f": "use_item", + "0x20": "advancement_tab" } } ] diff --git a/data/pc/1.12.1/protocol.json b/data/pc/1.12.1/protocol.json index 883c79645..898d69228 100644 --- a/data/pc/1.12.1/protocol.json +++ b/data/pc/1.12.1/protocol.json @@ -242,8 +242,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -298,8 +298,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -347,8 +347,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -443,10 +443,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -515,8 +515,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3093,86 +3093,86 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "entity", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "craft_recipe_response", - "44": "abilities", - "45": "combat_event", - "46": "player_info", - "47": "position", - "48": "bed", - "49": "unlock_recipes", - "50": "entity_destroy", - "51": "remove_entity_effect", - "52": "resource_pack_send", - "53": "respawn", - "54": "entity_head_rotation", - "55": "select_advancement_tab", - "56": "world_border", - "57": "camera", - "58": "held_item_slot", - "59": "scoreboard_display_objective", - "60": "entity_metadata", - "61": "attach_entity", - "62": "entity_velocity", - "63": "entity_equipment", - "64": "experience", - "65": "update_health", - "66": "scoreboard_objective", - "67": "set_passengers", - "68": "teams", - "69": "scoreboard_score", - "70": "spawn_position", - "71": "update_time", - "72": "title", - "73": "sound_effect", - "74": "playerlist_header", - "75": "collect", - "76": "entity_teleport", - "77": "advancements", - "78": "entity_update_attributes", - "79": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "entity", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "craft_recipe_response", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "select_advancement_tab", + "0x38": "world_border", + "0x39": "camera", + "0x3a": "held_item_slot", + "0x3b": "scoreboard_display_objective", + "0x3c": "entity_metadata", + "0x3d": "attach_entity", + "0x3e": "entity_velocity", + "0x3f": "entity_equipment", + "0x40": "experience", + "0x41": "update_health", + "0x42": "scoreboard_objective", + "0x43": "set_passengers", + "0x44": "teams", + "0x45": "scoreboard_score", + "0x46": "spawn_position", + "0x47": "update_time", + "0x48": "title", + "0x49": "sound_effect", + "0x4a": "playerlist_header", + "0x4b": "collect", + "0x4c": "entity_teleport", + "0x4d": "advancements", + "0x4e": "entity_update_attributes", + "0x4f": "entity_effect" } } ] @@ -3894,39 +3894,39 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "flying", - "13": "position", - "14": "position_look", - "15": "look", - "16": "vehicle_move", - "17": "steer_boat", - "18": "craft_recipe_request", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "advancement_tab", - "26": "held_item_slot", - "27": "set_creative_slot", - "28": "update_sign", - "29": "arm_animation", - "30": "spectate", - "31": "block_place", - "32": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "flying", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "craft_recipe_request", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" } } ] diff --git a/data/pc/1.12.2/protocol.json b/data/pc/1.12.2/protocol.json index eaa0d3e60..7d88b6b01 100644 --- a/data/pc/1.12.2/protocol.json +++ b/data/pc/1.12.2/protocol.json @@ -242,8 +242,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -298,8 +298,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -347,8 +347,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -443,10 +443,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -515,8 +515,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3093,86 +3093,86 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "entity", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "craft_recipe_response", - "44": "abilities", - "45": "combat_event", - "46": "player_info", - "47": "position", - "48": "bed", - "49": "unlock_recipes", - "50": "entity_destroy", - "51": "remove_entity_effect", - "52": "resource_pack_send", - "53": "respawn", - "54": "entity_head_rotation", - "55": "select_advancement_tab", - "56": "world_border", - "57": "camera", - "58": "held_item_slot", - "59": "scoreboard_display_objective", - "60": "entity_metadata", - "61": "attach_entity", - "62": "entity_velocity", - "63": "entity_equipment", - "64": "experience", - "65": "update_health", - "66": "scoreboard_objective", - "67": "set_passengers", - "68": "teams", - "69": "scoreboard_score", - "70": "spawn_position", - "71": "update_time", - "72": "title", - "73": "sound_effect", - "74": "playerlist_header", - "75": "collect", - "76": "entity_teleport", - "77": "advancements", - "78": "entity_update_attributes", - "79": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "entity", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "craft_recipe_response", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "select_advancement_tab", + "0x38": "world_border", + "0x39": "camera", + "0x3a": "held_item_slot", + "0x3b": "scoreboard_display_objective", + "0x3c": "entity_metadata", + "0x3d": "attach_entity", + "0x3e": "entity_velocity", + "0x3f": "entity_equipment", + "0x40": "experience", + "0x41": "update_health", + "0x42": "scoreboard_objective", + "0x43": "set_passengers", + "0x44": "teams", + "0x45": "scoreboard_score", + "0x46": "spawn_position", + "0x47": "update_time", + "0x48": "title", + "0x49": "sound_effect", + "0x4a": "playerlist_header", + "0x4b": "collect", + "0x4c": "entity_teleport", + "0x4d": "advancements", + "0x4e": "entity_update_attributes", + "0x4f": "entity_effect" } } ] @@ -3894,39 +3894,39 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "flying", - "13": "position", - "14": "position_look", - "15": "look", - "16": "vehicle_move", - "17": "steer_boat", - "18": "craft_recipe_request", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "advancement_tab", - "26": "held_item_slot", - "27": "set_creative_slot", - "28": "update_sign", - "29": "arm_animation", - "30": "spectate", - "31": "block_place", - "32": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "flying", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "craft_recipe_request", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" } } ] diff --git a/data/pc/1.12/protocol.json b/data/pc/1.12/protocol.json index 859ca0231..f429ba747 100644 --- a/data/pc/1.12/protocol.json +++ b/data/pc/1.12/protocol.json @@ -242,8 +242,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -298,8 +298,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -347,8 +347,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -443,10 +443,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -515,8 +515,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3080,85 +3080,85 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "entity", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "unlock_recipes", - "49": "entity_destroy", - "50": "remove_entity_effect", - "51": "resource_pack_send", - "52": "respawn", - "53": "entity_head_rotation", - "54": "select_advancement_tab", - "55": "world_border", - "56": "camera", - "57": "held_item_slot", - "58": "scoreboard_display_objective", - "59": "entity_metadata", - "60": "attach_entity", - "61": "entity_velocity", - "62": "entity_equipment", - "63": "experience", - "64": "update_health", - "65": "scoreboard_objective", - "66": "set_passengers", - "67": "teams", - "68": "scoreboard_score", - "69": "spawn_position", - "70": "update_time", - "71": "title", - "72": "sound_effect", - "73": "playerlist_header", - "74": "collect", - "75": "entity_teleport", - "76": "advancements", - "77": "entity_update_attributes", - "78": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "entity", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "unlock_recipes", + "0x31": "entity_destroy", + "0x32": "remove_entity_effect", + "0x33": "resource_pack_send", + "0x34": "respawn", + "0x35": "entity_head_rotation", + "0x36": "select_advancement_tab", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "advancements", + "0x4d": "entity_update_attributes", + "0x4e": "entity_effect" } } ] @@ -3927,39 +3927,39 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "prepare_crafting_grid", - "2": "tab_complete", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "use_entity", - "12": "keep_alive", - "13": "flying", - "14": "position", - "15": "position_look", - "16": "look", - "17": "vehicle_move", - "18": "steer_boat", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "advancement_tab", - "26": "held_item_slot", - "27": "set_creative_slot", - "28": "update_sign", - "29": "arm_animation", - "30": "spectate", - "31": "block_place", - "32": "use_item" + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "flying", + "0x0e": "position", + "0x0f": "position_look", + "0x10": "look", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" } } ] diff --git a/data/pc/1.13.1/protocol.json b/data/pc/1.13.1/protocol.json index 8681b1a5b..587c24044 100644 --- a/data/pc/1.13.1/protocol.json +++ b/data/pc/1.13.1/protocol.json @@ -772,8 +772,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -828,8 +828,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -877,8 +877,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -990,11 +990,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1080,9 +1080,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -3985,92 +3985,92 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "nbt_query_response", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "login", - "38": "map", - "39": "entity", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "vehicle_move", - "44": "open_sign_entity", - "45": "craft_recipe_response", - "46": "abilities", - "47": "combat_event", - "48": "player_info", - "49": "face_player", - "50": "position", - "51": "bed", - "52": "unlock_recipes", - "53": "entity_destroy", - "54": "remove_entity_effect", - "55": "resource_pack_send", - "56": "respawn", - "57": "entity_head_rotation", - "58": "select_advancement_tab", - "59": "world_border", - "60": "camera", - "61": "held_item_slot", - "62": "scoreboard_display_objective", - "63": "entity_metadata", - "64": "attach_entity", - "65": "entity_velocity", - "66": "entity_equipment", - "67": "experience", - "68": "update_health", - "69": "scoreboard_objective", - "70": "set_passengers", - "71": "teams", - "72": "scoreboard_score", - "73": "spawn_position", - "74": "update_time", - "75": "title", - "76": "stop_sound", - "77": "sound_effect", - "78": "playerlist_header", - "79": "collect", - "80": "entity_teleport", - "81": "advancements", - "82": "entity_update_attributes", - "83": "entity_effect", - "84": "declare_recipes", - "85": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" } } ] @@ -4989,49 +4989,49 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "tab_complete", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "keep_alive", - "15": "flying", - "16": "position", - "17": "position_look", - "18": "look", - "19": "vehicle_move", - "20": "steer_boat", - "21": "pick_item", - "22": "craft_recipe_request", - "23": "abilities", - "24": "block_dig", - "25": "entity_action", - "26": "steer_vehicle", - "27": "crafting_book_data", - "28": "name_item", - "29": "resource_pack_receive", - "30": "advancement_tab", - "31": "select_trade", - "32": "set_beacon_effect", - "33": "held_item_slot", - "34": "update_command_block", - "35": "update_command_block_minecart", - "36": "set_creative_slot", - "37": "update_structure_block", - "38": "update_sign", - "39": "arm_animation", - "40": "spectate", - "41": "block_place", - "42": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" } } ] diff --git a/data/pc/1.13.2-pre1/protocol.json b/data/pc/1.13.2-pre1/protocol.json index 94b84b0aa..cdebd4305 100644 --- a/data/pc/1.13.2-pre1/protocol.json +++ b/data/pc/1.13.2-pre1/protocol.json @@ -777,8 +777,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -833,8 +833,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -882,8 +882,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -995,11 +995,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1085,9 +1085,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -3990,92 +3990,92 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "nbt_query_response", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "login", - "38": "map", - "39": "entity", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "vehicle_move", - "44": "open_sign_entity", - "45": "craft_recipe_response", - "46": "abilities", - "47": "combat_event", - "48": "player_info", - "49": "face_player", - "50": "position", - "51": "bed", - "52": "unlock_recipes", - "53": "entity_destroy", - "54": "remove_entity_effect", - "55": "resource_pack_send", - "56": "respawn", - "57": "entity_head_rotation", - "58": "select_advancement_tab", - "59": "world_border", - "60": "camera", - "61": "held_item_slot", - "62": "scoreboard_display_objective", - "63": "entity_metadata", - "64": "attach_entity", - "65": "entity_velocity", - "66": "entity_equipment", - "67": "experience", - "68": "update_health", - "69": "scoreboard_objective", - "70": "set_passengers", - "71": "teams", - "72": "scoreboard_score", - "73": "spawn_position", - "74": "update_time", - "75": "title", - "76": "stop_sound", - "77": "sound_effect", - "78": "playerlist_header", - "79": "collect", - "80": "entity_teleport", - "81": "advancements", - "82": "entity_update_attributes", - "83": "entity_effect", - "84": "declare_recipes", - "85": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" } } ] @@ -4994,49 +4994,49 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "tab_complete", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "keep_alive", - "15": "flying", - "16": "position", - "17": "position_look", - "18": "look", - "19": "vehicle_move", - "20": "steer_boat", - "21": "pick_item", - "22": "craft_recipe_request", - "23": "abilities", - "24": "block_dig", - "25": "entity_action", - "26": "steer_vehicle", - "27": "crafting_book_data", - "28": "name_item", - "29": "resource_pack_receive", - "30": "advancement_tab", - "31": "select_trade", - "32": "set_beacon_effect", - "33": "held_item_slot", - "34": "update_command_block", - "35": "update_command_block_minecart", - "36": "set_creative_slot", - "37": "update_structure_block", - "38": "update_sign", - "39": "arm_animation", - "40": "spectate", - "41": "block_place", - "42": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" } } ] diff --git a/data/pc/1.13.2-pre2/protocol.json b/data/pc/1.13.2-pre2/protocol.json index 94b84b0aa..cdebd4305 100644 --- a/data/pc/1.13.2-pre2/protocol.json +++ b/data/pc/1.13.2-pre2/protocol.json @@ -777,8 +777,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -833,8 +833,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -882,8 +882,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -995,11 +995,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1085,9 +1085,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -3990,92 +3990,92 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "nbt_query_response", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "login", - "38": "map", - "39": "entity", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "vehicle_move", - "44": "open_sign_entity", - "45": "craft_recipe_response", - "46": "abilities", - "47": "combat_event", - "48": "player_info", - "49": "face_player", - "50": "position", - "51": "bed", - "52": "unlock_recipes", - "53": "entity_destroy", - "54": "remove_entity_effect", - "55": "resource_pack_send", - "56": "respawn", - "57": "entity_head_rotation", - "58": "select_advancement_tab", - "59": "world_border", - "60": "camera", - "61": "held_item_slot", - "62": "scoreboard_display_objective", - "63": "entity_metadata", - "64": "attach_entity", - "65": "entity_velocity", - "66": "entity_equipment", - "67": "experience", - "68": "update_health", - "69": "scoreboard_objective", - "70": "set_passengers", - "71": "teams", - "72": "scoreboard_score", - "73": "spawn_position", - "74": "update_time", - "75": "title", - "76": "stop_sound", - "77": "sound_effect", - "78": "playerlist_header", - "79": "collect", - "80": "entity_teleport", - "81": "advancements", - "82": "entity_update_attributes", - "83": "entity_effect", - "84": "declare_recipes", - "85": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" } } ] @@ -4994,49 +4994,49 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "tab_complete", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "keep_alive", - "15": "flying", - "16": "position", - "17": "position_look", - "18": "look", - "19": "vehicle_move", - "20": "steer_boat", - "21": "pick_item", - "22": "craft_recipe_request", - "23": "abilities", - "24": "block_dig", - "25": "entity_action", - "26": "steer_vehicle", - "27": "crafting_book_data", - "28": "name_item", - "29": "resource_pack_receive", - "30": "advancement_tab", - "31": "select_trade", - "32": "set_beacon_effect", - "33": "held_item_slot", - "34": "update_command_block", - "35": "update_command_block_minecart", - "36": "set_creative_slot", - "37": "update_structure_block", - "38": "update_sign", - "39": "arm_animation", - "40": "spectate", - "41": "block_place", - "42": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" } } ] diff --git a/data/pc/1.13.2/protocol.json b/data/pc/1.13.2/protocol.json index 508011c78..7f5d59250 100644 --- a/data/pc/1.13.2/protocol.json +++ b/data/pc/1.13.2/protocol.json @@ -777,8 +777,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -833,8 +833,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -882,8 +882,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -995,11 +995,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1085,9 +1085,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -3990,92 +3990,92 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "nbt_query_response", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "login", - "38": "map", - "39": "entity", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "vehicle_move", - "44": "open_sign_entity", - "45": "craft_recipe_response", - "46": "abilities", - "47": "combat_event", - "48": "player_info", - "49": "face_player", - "50": "position", - "51": "bed", - "52": "unlock_recipes", - "53": "entity_destroy", - "54": "remove_entity_effect", - "55": "resource_pack_send", - "56": "respawn", - "57": "entity_head_rotation", - "58": "select_advancement_tab", - "59": "world_border", - "60": "camera", - "61": "held_item_slot", - "62": "scoreboard_display_objective", - "63": "entity_metadata", - "64": "attach_entity", - "65": "entity_velocity", - "66": "entity_equipment", - "67": "experience", - "68": "update_health", - "69": "scoreboard_objective", - "70": "set_passengers", - "71": "teams", - "72": "scoreboard_score", - "73": "spawn_position", - "74": "update_time", - "75": "title", - "76": "stop_sound", - "77": "sound_effect", - "78": "playerlist_header", - "79": "collect", - "80": "entity_teleport", - "81": "advancements", - "82": "entity_update_attributes", - "83": "entity_effect", - "84": "declare_recipes", - "85": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" } } ] @@ -4994,49 +4994,49 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "tab_complete", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "keep_alive", - "15": "flying", - "16": "position", - "17": "position_look", - "18": "look", - "19": "vehicle_move", - "20": "steer_boat", - "21": "pick_item", - "22": "craft_recipe_request", - "23": "abilities", - "24": "block_dig", - "25": "entity_action", - "26": "steer_vehicle", - "27": "crafting_book_data", - "28": "name_item", - "29": "resource_pack_receive", - "30": "advancement_tab", - "31": "select_trade", - "32": "set_beacon_effect", - "33": "held_item_slot", - "34": "update_command_block", - "35": "update_command_block_minecart", - "36": "set_creative_slot", - "37": "update_structure_block", - "38": "update_sign", - "39": "arm_animation", - "40": "spectate", - "41": "block_place", - "42": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" } } ] diff --git a/data/pc/1.13/protocol.json b/data/pc/1.13/protocol.json index 62ed9ae4a..1d84919c3 100644 --- a/data/pc/1.13/protocol.json +++ b/data/pc/1.13/protocol.json @@ -772,8 +772,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -828,8 +828,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -877,8 +877,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -990,11 +990,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1080,9 +1080,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -3985,92 +3985,92 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "nbt_query_response", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "login", - "38": "map", - "39": "entity", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "vehicle_move", - "44": "open_sign_entity", - "45": "craft_recipe_response", - "46": "abilities", - "47": "combat_event", - "48": "player_info", - "49": "face_player", - "50": "position", - "51": "bed", - "52": "unlock_recipes", - "53": "entity_destroy", - "54": "remove_entity_effect", - "55": "resource_pack_send", - "56": "respawn", - "57": "entity_head_rotation", - "58": "select_advancement_tab", - "59": "world_border", - "60": "camera", - "61": "held_item_slot", - "62": "scoreboard_display_objective", - "63": "entity_metadata", - "64": "attach_entity", - "65": "entity_velocity", - "66": "entity_equipment", - "67": "experience", - "68": "update_health", - "69": "scoreboard_objective", - "70": "set_passengers", - "71": "teams", - "72": "scoreboard_score", - "73": "spawn_position", - "74": "update_time", - "75": "title", - "76": "stop_sound", - "77": "sound_effect", - "78": "playerlist_header", - "79": "collect", - "80": "entity_teleport", - "81": "advancements", - "82": "entity_update_attributes", - "83": "entity_effect", - "84": "declare_recipes", - "85": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "nbt_query_response", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "login", + "0x26": "map", + "0x27": "entity", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_sign_entity", + "0x2d": "craft_recipe_response", + "0x2e": "abilities", + "0x2f": "combat_event", + "0x30": "player_info", + "0x31": "face_player", + "0x32": "position", + "0x33": "bed", + "0x34": "unlock_recipes", + "0x35": "entity_destroy", + "0x36": "remove_entity_effect", + "0x37": "resource_pack_send", + "0x38": "respawn", + "0x39": "entity_head_rotation", + "0x3a": "select_advancement_tab", + "0x3b": "world_border", + "0x3c": "camera", + "0x3d": "held_item_slot", + "0x3e": "scoreboard_display_objective", + "0x3f": "entity_metadata", + "0x40": "attach_entity", + "0x41": "entity_velocity", + "0x42": "entity_equipment", + "0x43": "experience", + "0x44": "update_health", + "0x45": "scoreboard_objective", + "0x46": "set_passengers", + "0x47": "teams", + "0x48": "scoreboard_score", + "0x49": "spawn_position", + "0x4a": "update_time", + "0x4b": "title", + "0x4c": "stop_sound", + "0x4d": "sound_effect", + "0x4e": "playerlist_header", + "0x4f": "collect", + "0x50": "entity_teleport", + "0x51": "advancements", + "0x52": "entity_update_attributes", + "0x53": "entity_effect", + "0x54": "declare_recipes", + "0x55": "tags" } } ] @@ -4985,49 +4985,49 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "tab_complete", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "keep_alive", - "15": "flying", - "16": "position", - "17": "position_look", - "18": "look", - "19": "vehicle_move", - "20": "steer_boat", - "21": "pick_item", - "22": "craft_recipe_request", - "23": "abilities", - "24": "block_dig", - "25": "entity_action", - "26": "steer_vehicle", - "27": "crafting_book_data", - "28": "name_item", - "29": "resource_pack_receive", - "30": "advancement_tab", - "31": "select_trade", - "32": "set_beacon_effect", - "33": "held_item_slot", - "34": "update_command_block", - "35": "update_command_block_minecart", - "36": "set_creative_slot", - "37": "update_structure_block", - "38": "update_sign", - "39": "arm_animation", - "40": "spectate", - "41": "block_place", - "42": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "tab_complete", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "keep_alive", + "0x0f": "flying", + "0x10": "position", + "0x11": "position_look", + "0x12": "look", + "0x13": "vehicle_move", + "0x14": "steer_boat", + "0x15": "pick_item", + "0x16": "craft_recipe_request", + "0x17": "abilities", + "0x18": "block_dig", + "0x19": "entity_action", + "0x1a": "steer_vehicle", + "0x1b": "crafting_book_data", + "0x1c": "name_item", + "0x1d": "resource_pack_receive", + "0x1e": "advancement_tab", + "0x1f": "select_trade", + "0x20": "set_beacon_effect", + "0x21": "held_item_slot", + "0x22": "update_command_block", + "0x23": "update_command_block_minecart", + "0x24": "set_creative_slot", + "0x25": "update_structure_block", + "0x26": "update_sign", + "0x27": "arm_animation", + "0x28": "spectate", + "0x29": "block_place", + "0x2a": "use_item" } } ] diff --git a/data/pc/1.14.1/protocol.json b/data/pc/1.14.1/protocol.json index d295ac54d..530dd6953 100644 --- a/data/pc/1.14.1/protocol.json +++ b/data/pc/1.14.1/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4194,98 +4194,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "scoreboard_display_objective", - "67": "entity_metadata", - "68": "attach_entity", - "69": "entity_velocity", - "70": "entity_equipment", - "71": "experience", - "72": "update_health", - "73": "scoreboard_objective", - "74": "set_passengers", - "75": "teams", - "76": "scoreboard_score", - "77": "spawn_position", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5269,52 +5269,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.14.3/protocol.json b/data/pc/1.14.3/protocol.json index a92ecebaf..124b89726 100644 --- a/data/pc/1.14.3/protocol.json +++ b/data/pc/1.14.3/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4198,98 +4198,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "scoreboard_display_objective", - "67": "entity_metadata", - "68": "attach_entity", - "69": "entity_velocity", - "70": "entity_equipment", - "71": "experience", - "72": "update_health", - "73": "scoreboard_objective", - "74": "set_passengers", - "75": "teams", - "76": "scoreboard_score", - "77": "spawn_position", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5273,52 +5273,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.14.4/protocol.json b/data/pc/1.14.4/protocol.json index 0a686c3e1..9c6edd9cd 100644 --- a/data/pc/1.14.4/protocol.json +++ b/data/pc/1.14.4/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4223,99 +4223,99 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "scoreboard_display_objective", - "67": "entity_metadata", - "68": "attach_entity", - "69": "entity_velocity", - "70": "entity_equipment", - "71": "experience", - "72": "update_health", - "73": "scoreboard_objective", - "74": "set_passengers", - "75": "teams", - "76": "scoreboard_score", - "77": "spawn_position", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags", - "92": "acknowledge_player_digging" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags", + "0x5c": "acknowledge_player_digging" } } ] @@ -5300,52 +5300,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.14/protocol.json b/data/pc/1.14/protocol.json index d295ac54d..530dd6953 100644 --- a/data/pc/1.14/protocol.json +++ b/data/pc/1.14/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4194,98 +4194,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "scoreboard_display_objective", - "67": "entity_metadata", - "68": "attach_entity", - "69": "entity_velocity", - "70": "entity_equipment", - "71": "experience", - "72": "update_health", - "73": "scoreboard_objective", - "74": "set_passengers", - "75": "teams", - "76": "scoreboard_score", - "77": "spawn_position", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "scoreboard_display_objective", + "0x43": "entity_metadata", + "0x44": "attach_entity", + "0x45": "entity_velocity", + "0x46": "entity_equipment", + "0x47": "experience", + "0x48": "update_health", + "0x49": "scoreboard_objective", + "0x4a": "set_passengers", + "0x4b": "teams", + "0x4c": "scoreboard_score", + "0x4d": "spawn_position", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5269,52 +5269,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.15.1/protocol.json b/data/pc/1.15.1/protocol.json index be427e578..29b25bdcc 100644 --- a/data/pc/1.15.1/protocol.json +++ b/data/pc/1.15.1/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4247,99 +4247,99 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "multi_block_change", - "17": "tab_complete", - "18": "declare_commands", - "19": "transaction", - "20": "close_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "open_horse_window", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "entity", - "45": "vehicle_move", - "46": "open_book", - "47": "open_window", - "48": "open_sign_entity", - "49": "craft_recipe_response", - "50": "abilities", - "51": "combat_event", - "52": "player_info", - "53": "face_player", - "54": "position", - "55": "unlock_recipes", - "56": "entity_destroy", - "57": "remove_entity_effect", - "58": "resource_pack_send", - "59": "respawn", - "60": "entity_head_rotation", - "61": "select_advancement_tab", - "62": "world_border", - "63": "camera", - "64": "held_item_slot", - "65": "update_view_position", - "66": "update_view_distance", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "spawn_position", - "79": "update_time", - "80": "title", - "81": "entity_sound_effect", - "82": "sound_effect", - "83": "stop_sound", - "84": "playerlist_header", - "85": "nbt_query_response", - "86": "collect", - "87": "entity_teleport", - "88": "advancements", - "89": "entity_update_attributes", - "90": "entity_effect", - "91": "declare_recipes", - "92": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "spawn_position", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" } } ] @@ -5324,52 +5324,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.15.2/protocol.json b/data/pc/1.15.2/protocol.json index be427e578..29b25bdcc 100644 --- a/data/pc/1.15.2/protocol.json +++ b/data/pc/1.15.2/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4247,99 +4247,99 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "multi_block_change", - "17": "tab_complete", - "18": "declare_commands", - "19": "transaction", - "20": "close_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "open_horse_window", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "entity", - "45": "vehicle_move", - "46": "open_book", - "47": "open_window", - "48": "open_sign_entity", - "49": "craft_recipe_response", - "50": "abilities", - "51": "combat_event", - "52": "player_info", - "53": "face_player", - "54": "position", - "55": "unlock_recipes", - "56": "entity_destroy", - "57": "remove_entity_effect", - "58": "resource_pack_send", - "59": "respawn", - "60": "entity_head_rotation", - "61": "select_advancement_tab", - "62": "world_border", - "63": "camera", - "64": "held_item_slot", - "65": "update_view_position", - "66": "update_view_distance", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "spawn_position", - "79": "update_time", - "80": "title", - "81": "entity_sound_effect", - "82": "sound_effect", - "83": "stop_sound", - "84": "playerlist_header", - "85": "nbt_query_response", - "86": "collect", - "87": "entity_teleport", - "88": "advancements", - "89": "entity_update_attributes", - "90": "entity_effect", - "91": "declare_recipes", - "92": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "spawn_position", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" } } ] @@ -5324,52 +5324,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.15/protocol.json b/data/pc/1.15/protocol.json index be427e578..29b25bdcc 100644 --- a/data/pc/1.15/protocol.json +++ b/data/pc/1.15/protocol.json @@ -847,8 +847,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -952,8 +952,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1065,11 +1065,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1155,9 +1155,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4247,99 +4247,99 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "multi_block_change", - "17": "tab_complete", - "18": "declare_commands", - "19": "transaction", - "20": "close_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "open_horse_window", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "entity", - "45": "vehicle_move", - "46": "open_book", - "47": "open_window", - "48": "open_sign_entity", - "49": "craft_recipe_response", - "50": "abilities", - "51": "combat_event", - "52": "player_info", - "53": "face_player", - "54": "position", - "55": "unlock_recipes", - "56": "entity_destroy", - "57": "remove_entity_effect", - "58": "resource_pack_send", - "59": "respawn", - "60": "entity_head_rotation", - "61": "select_advancement_tab", - "62": "world_border", - "63": "camera", - "64": "held_item_slot", - "65": "update_view_position", - "66": "update_view_distance", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "spawn_position", - "79": "update_time", - "80": "title", - "81": "entity_sound_effect", - "82": "sound_effect", - "83": "stop_sound", - "84": "playerlist_header", - "85": "nbt_query_response", - "86": "collect", - "87": "entity_teleport", - "88": "advancements", - "89": "entity_update_attributes", - "90": "entity_effect", - "91": "declare_recipes", - "92": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "spawn_position", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" } } ] @@ -5324,52 +5324,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/1.16-rc1/protocol.json b/data/pc/1.16-rc1/protocol.json index 393802e9e..e8b9547e6 100644 --- a/data/pc/1.16-rc1/protocol.json +++ b/data/pc/1.16-rc1/protocol.json @@ -848,8 +848,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -904,8 +904,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -953,8 +953,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1066,11 +1066,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1156,9 +1156,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4307,98 +4307,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "animation", - "6": "statistics", - "7": "acknowledge_player_digging", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "spawn_position", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5403,53 +5403,53 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "generate_structure", - "16": "keep_alive", - "17": "lock_difficulty", - "18": "position", - "19": "position_look", - "20": "look", - "21": "flying", - "22": "vehicle_move", - "23": "steer_boat", - "24": "pick_item", - "25": "craft_recipe_request", - "26": "abilities", - "27": "block_dig", - "28": "entity_action", - "29": "steer_vehicle", - "30": "crafting_book_data", - "31": "name_item", - "32": "resource_pack_receive", - "33": "advancement_tab", - "34": "select_trade", - "35": "set_beacon_effect", - "36": "held_item_slot", - "37": "update_command_block", - "38": "update_command_block_minecart", - "39": "set_creative_slot", - "40": "update_jigsaw_block", - "41": "update_structure_block", - "42": "update_sign", - "43": "arm_animation", - "44": "spectate", - "45": "block_place", - "46": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "crafting_book_data", + "0x1f": "name_item", + "0x20": "resource_pack_receive", + "0x21": "advancement_tab", + "0x22": "select_trade", + "0x23": "set_beacon_effect", + "0x24": "held_item_slot", + "0x25": "update_command_block", + "0x26": "update_command_block_minecart", + "0x27": "set_creative_slot", + "0x28": "update_jigsaw_block", + "0x29": "update_structure_block", + "0x2a": "update_sign", + "0x2b": "arm_animation", + "0x2c": "spectate", + "0x2d": "block_place", + "0x2e": "use_item" } } ] diff --git a/data/pc/1.16.1/protocol.json b/data/pc/1.16.1/protocol.json index 393802e9e..e8b9547e6 100644 --- a/data/pc/1.16.1/protocol.json +++ b/data/pc/1.16.1/protocol.json @@ -848,8 +848,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -904,8 +904,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -953,8 +953,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1066,11 +1066,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1156,9 +1156,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4307,98 +4307,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "animation", - "6": "statistics", - "7": "acknowledge_player_digging", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "spawn_position", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5403,53 +5403,53 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "generate_structure", - "16": "keep_alive", - "17": "lock_difficulty", - "18": "position", - "19": "position_look", - "20": "look", - "21": "flying", - "22": "vehicle_move", - "23": "steer_boat", - "24": "pick_item", - "25": "craft_recipe_request", - "26": "abilities", - "27": "block_dig", - "28": "entity_action", - "29": "steer_vehicle", - "30": "crafting_book_data", - "31": "name_item", - "32": "resource_pack_receive", - "33": "advancement_tab", - "34": "select_trade", - "35": "set_beacon_effect", - "36": "held_item_slot", - "37": "update_command_block", - "38": "update_command_block_minecart", - "39": "set_creative_slot", - "40": "update_jigsaw_block", - "41": "update_structure_block", - "42": "update_sign", - "43": "arm_animation", - "44": "spectate", - "45": "block_place", - "46": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "crafting_book_data", + "0x1f": "name_item", + "0x20": "resource_pack_receive", + "0x21": "advancement_tab", + "0x22": "select_trade", + "0x23": "set_beacon_effect", + "0x24": "held_item_slot", + "0x25": "update_command_block", + "0x26": "update_command_block_minecart", + "0x27": "set_creative_slot", + "0x28": "update_jigsaw_block", + "0x29": "update_structure_block", + "0x2a": "update_sign", + "0x2b": "arm_animation", + "0x2c": "spectate", + "0x2d": "block_place", + "0x2e": "use_item" } } ] diff --git a/data/pc/1.16.2/protocol.json b/data/pc/1.16.2/protocol.json index 8975f1bf1..21c48e44e 100644 --- a/data/pc/1.16.2/protocol.json +++ b/data/pc/1.16.2/protocol.json @@ -848,8 +848,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -904,8 +904,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -953,8 +953,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1066,11 +1066,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1156,9 +1156,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4326,98 +4326,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "animation", - "6": "statistics", - "7": "acknowledge_player_digging", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "tab_complete", - "16": "declare_commands", - "17": "transaction", - "18": "close_window", - "19": "window_items", - "20": "craft_progress_bar", - "21": "set_slot", - "22": "set_cooldown", - "23": "custom_payload", - "24": "named_sound_effect", - "25": "kick_disconnect", - "26": "entity_status", - "27": "explosion", - "28": "unload_chunk", - "29": "game_state_change", - "30": "open_horse_window", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "update_light", - "36": "login", - "37": "map", - "38": "trade_list", - "39": "rel_entity_move", - "40": "entity_move_look", - "41": "entity_look", - "42": "entity", - "43": "vehicle_move", - "44": "open_book", - "45": "open_window", - "46": "open_sign_entity", - "47": "craft_recipe_response", - "48": "abilities", - "49": "combat_event", - "50": "player_info", - "51": "face_player", - "52": "position", - "53": "unlock_recipes", - "54": "entity_destroy", - "55": "remove_entity_effect", - "56": "resource_pack_send", - "57": "respawn", - "58": "entity_head_rotation", - "59": "multi_block_change", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "spawn_position", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "set_cooldown", + "0x17": "custom_payload", + "0x18": "named_sound_effect", + "0x19": "kick_disconnect", + "0x1a": "entity_status", + "0x1b": "explosion", + "0x1c": "unload_chunk", + "0x1d": "game_state_change", + "0x1e": "open_horse_window", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "update_light", + "0x24": "login", + "0x25": "map", + "0x26": "trade_list", + "0x27": "rel_entity_move", + "0x28": "entity_move_look", + "0x29": "entity_look", + "0x2a": "entity", + "0x2b": "vehicle_move", + "0x2c": "open_book", + "0x2d": "open_window", + "0x2e": "open_sign_entity", + "0x2f": "craft_recipe_response", + "0x30": "abilities", + "0x31": "combat_event", + "0x32": "player_info", + "0x33": "face_player", + "0x34": "position", + "0x35": "unlock_recipes", + "0x36": "entity_destroy", + "0x37": "remove_entity_effect", + "0x38": "resource_pack_send", + "0x39": "respawn", + "0x3a": "entity_head_rotation", + "0x3b": "multi_block_change", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5381,54 +5381,54 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "generate_structure", - "16": "keep_alive", - "17": "lock_difficulty", - "18": "position", - "19": "position_look", - "20": "look", - "21": "flying", - "22": "vehicle_move", - "23": "steer_boat", - "24": "pick_item", - "25": "craft_recipe_request", - "26": "abilities", - "27": "block_dig", - "28": "entity_action", - "29": "steer_vehicle", - "30": "recipe_book", - "31": "displayed_recipe", - "32": "name_item", - "33": "resource_pack_receive", - "34": "advancement_tab", - "35": "select_trade", - "36": "set_beacon_effect", - "37": "held_item_slot", - "38": "update_command_block", - "39": "update_command_block_minecart", - "40": "set_creative_slot", - "41": "update_jigsaw_block", - "42": "update_structure_block", - "43": "update_sign", - "44": "arm_animation", - "45": "spectate", - "46": "block_place", - "47": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" } } ] diff --git a/data/pc/1.16/protocol.json b/data/pc/1.16/protocol.json index 393802e9e..e8b9547e6 100644 --- a/data/pc/1.16/protocol.json +++ b/data/pc/1.16/protocol.json @@ -848,8 +848,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -904,8 +904,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -953,8 +953,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1066,11 +1066,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1156,9 +1156,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4307,98 +4307,98 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "animation", - "6": "statistics", - "7": "acknowledge_player_digging", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "select_advancement_tab", - "61": "world_border", - "62": "camera", - "63": "held_item_slot", - "64": "update_view_position", - "65": "update_view_distance", - "66": "spawn_position", - "67": "scoreboard_display_objective", - "68": "entity_metadata", - "69": "attach_entity", - "70": "entity_velocity", - "71": "entity_equipment", - "72": "experience", - "73": "update_health", - "74": "scoreboard_objective", - "75": "set_passengers", - "76": "teams", - "77": "scoreboard_score", - "78": "update_time", - "79": "title", - "80": "entity_sound_effect", - "81": "sound_effect", - "82": "stop_sound", - "83": "playerlist_header", - "84": "nbt_query_response", - "85": "collect", - "86": "entity_teleport", - "87": "advancements", - "88": "entity_update_attributes", - "89": "entity_effect", - "90": "declare_recipes", - "91": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "animation", + "0x06": "statistics", + "0x07": "acknowledge_player_digging", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "select_advancement_tab", + "0x3d": "world_border", + "0x3e": "camera", + "0x3f": "held_item_slot", + "0x40": "update_view_position", + "0x41": "update_view_distance", + "0x42": "spawn_position", + "0x43": "scoreboard_display_objective", + "0x44": "entity_metadata", + "0x45": "attach_entity", + "0x46": "entity_velocity", + "0x47": "entity_equipment", + "0x48": "experience", + "0x49": "update_health", + "0x4a": "scoreboard_objective", + "0x4b": "set_passengers", + "0x4c": "teams", + "0x4d": "scoreboard_score", + "0x4e": "update_time", + "0x4f": "title", + "0x50": "entity_sound_effect", + "0x51": "sound_effect", + "0x52": "stop_sound", + "0x53": "playerlist_header", + "0x54": "nbt_query_response", + "0x55": "collect", + "0x56": "entity_teleport", + "0x57": "advancements", + "0x58": "entity_update_attributes", + "0x59": "entity_effect", + "0x5a": "declare_recipes", + "0x5b": "tags" } } ] @@ -5403,53 +5403,53 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "generate_structure", - "16": "keep_alive", - "17": "lock_difficulty", - "18": "position", - "19": "position_look", - "20": "look", - "21": "flying", - "22": "vehicle_move", - "23": "steer_boat", - "24": "pick_item", - "25": "craft_recipe_request", - "26": "abilities", - "27": "block_dig", - "28": "entity_action", - "29": "steer_vehicle", - "30": "crafting_book_data", - "31": "name_item", - "32": "resource_pack_receive", - "33": "advancement_tab", - "34": "select_trade", - "35": "set_beacon_effect", - "36": "held_item_slot", - "37": "update_command_block", - "38": "update_command_block_minecart", - "39": "set_creative_slot", - "40": "update_jigsaw_block", - "41": "update_structure_block", - "42": "update_sign", - "43": "arm_animation", - "44": "spectate", - "45": "block_place", - "46": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "crafting_book_data", + "0x1f": "name_item", + "0x20": "resource_pack_receive", + "0x21": "advancement_tab", + "0x22": "select_trade", + "0x23": "set_beacon_effect", + "0x24": "held_item_slot", + "0x25": "update_command_block", + "0x26": "update_command_block_minecart", + "0x27": "set_creative_slot", + "0x28": "update_jigsaw_block", + "0x29": "update_structure_block", + "0x2a": "update_sign", + "0x2b": "arm_animation", + "0x2c": "spectate", + "0x2d": "block_place", + "0x2e": "use_item" } } ] diff --git a/data/pc/1.17.1/protocol.json b/data/pc/1.17.1/protocol.json index 669afaf52..93228fff8 100644 --- a/data/pc/1.17.1/protocol.json +++ b/data/pc/1.17.1/protocol.json @@ -912,8 +912,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -968,8 +968,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1017,8 +1017,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1130,11 +1130,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1220,9 +1220,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4407,109 +4407,109 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "sculk_vibration_signal", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "clear_titles", - "17": "tab_complete", - "18": "declare_commands", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "initialize_world_border", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "ping", - "49": "craft_recipe_response", - "50": "abilities", - "51": "end_combat_event", - "52": "enter_combat_event", - "53": "death_combat_event", - "54": "player_info", - "55": "face_player", - "56": "position", - "57": "unlock_recipes", - "58": "entity_destroy", - "59": "remove_entity_effect", - "60": "resource_pack_send", - "61": "respawn", - "62": "entity_head_rotation", - "63": "multi_block_change", - "64": "select_advancement_tab", - "65": "action_bar", - "66": "world_border_center", - "67": "world_border_lerp_size", - "68": "world_border_size", - "69": "world_border_warning_delay", - "70": "world_border_warning_reach", - "71": "camera", - "72": "held_item_slot", - "73": "update_view_position", - "74": "update_view_distance", - "75": "spawn_position", - "76": "scoreboard_display_objective", - "77": "entity_metadata", - "78": "attach_entity", - "79": "entity_velocity", - "80": "entity_equipment", - "81": "experience", - "82": "update_health", - "83": "scoreboard_objective", - "84": "set_passengers", - "85": "teams", - "86": "scoreboard_score", - "87": "set_title_subtitle", - "88": "update_time", - "89": "set_title_text", - "90": "set_title_time", - "91": "entity_sound_effect", - "92": "sound_effect", - "93": "stop_sound", - "94": "playerlist_header", - "95": "nbt_query_response", - "96": "collect", - "97": "entity_teleport", - "98": "advancements", - "99": "entity_update_attributes", - "100": "entity_effect", - "101": "declare_recipes", - "102": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "set_title_subtitle", + "0x58": "update_time", + "0x59": "set_title_text", + "0x5a": "set_title_time", + "0x5b": "entity_sound_effect", + "0x5c": "sound_effect", + "0x5d": "stop_sound", + "0x5e": "playerlist_header", + "0x5f": "nbt_query_response", + "0x60": "collect", + "0x61": "entity_teleport", + "0x62": "advancements", + "0x63": "entity_update_attributes", + "0x64": "entity_effect", + "0x65": "declare_recipes", + "0x66": "tags" } } ] @@ -5511,54 +5511,54 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "generate_structure", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "pong", - "30": "recipe_book", - "31": "displayed_recipe", - "32": "name_item", - "33": "resource_pack_receive", - "34": "advancement_tab", - "35": "select_trade", - "36": "set_beacon_effect", - "37": "held_item_slot", - "38": "update_command_block", - "39": "update_command_block_minecart", - "40": "set_creative_slot", - "41": "update_jigsaw_block", - "42": "update_structure_block", - "43": "update_sign", - "44": "arm_animation", - "45": "spectate", - "46": "block_place", - "47": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" } } ] diff --git a/data/pc/1.17/protocol.json b/data/pc/1.17/protocol.json index eab83cadd..037d0069a 100644 --- a/data/pc/1.17/protocol.json +++ b/data/pc/1.17/protocol.json @@ -912,8 +912,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -968,8 +968,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1017,8 +1017,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1130,11 +1130,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1220,9 +1220,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4389,109 +4389,109 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "sculk_vibration_signal", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "clear_titles", - "17": "tab_complete", - "18": "declare_commands", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "initialize_world_border", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "ping", - "49": "craft_recipe_response", - "50": "abilities", - "51": "end_combat_event", - "52": "enter_combat_event", - "53": "death_combat_event", - "54": "player_info", - "55": "face_player", - "56": "position", - "57": "unlock_recipes", - "58": "destroy_entity", - "59": "remove_entity_effect", - "60": "resource_pack_send", - "61": "respawn", - "62": "entity_head_rotation", - "63": "multi_block_change", - "64": "select_advancement_tab", - "65": "action_bar", - "66": "world_border_center", - "67": "world_border_lerp_size", - "68": "world_border_size", - "69": "world_border_warning_delay", - "70": "world_border_warning_reach", - "71": "camera", - "72": "held_item_slot", - "73": "update_view_position", - "74": "update_view_distance", - "75": "spawn_position", - "76": "scoreboard_display_objective", - "77": "entity_metadata", - "78": "attach_entity", - "79": "entity_velocity", - "80": "entity_equipment", - "81": "experience", - "82": "update_health", - "83": "scoreboard_objective", - "84": "set_passengers", - "85": "teams", - "86": "scoreboard_score", - "87": "set_title_subtitle", - "88": "update_time", - "89": "set_title_text", - "90": "set_title_time", - "91": "entity_sound_effect", - "92": "sound_effect", - "93": "stop_sound", - "94": "playerlist_header", - "95": "nbt_query_response", - "96": "collect", - "97": "entity_teleport", - "98": "advancements", - "99": "entity_update_attributes", - "100": "entity_effect", - "101": "declare_recipes", - "102": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "destroy_entity", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "set_title_subtitle", + "0x58": "update_time", + "0x59": "set_title_text", + "0x5a": "set_title_time", + "0x5b": "entity_sound_effect", + "0x5c": "sound_effect", + "0x5d": "stop_sound", + "0x5e": "playerlist_header", + "0x5f": "nbt_query_response", + "0x60": "collect", + "0x61": "entity_teleport", + "0x62": "advancements", + "0x63": "entity_update_attributes", + "0x64": "entity_effect", + "0x65": "declare_recipes", + "0x66": "tags" } } ] @@ -5480,54 +5480,54 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "generate_structure", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "pong", - "30": "recipe_book", - "31": "displayed_recipe", - "32": "name_item", - "33": "resource_pack_receive", - "34": "advancement_tab", - "35": "select_trade", - "36": "set_beacon_effect", - "37": "held_item_slot", - "38": "update_command_block", - "39": "update_command_block_minecart", - "40": "set_creative_slot", - "41": "update_jigsaw_block", - "42": "update_structure_block", - "43": "update_sign", - "44": "arm_animation", - "45": "spectate", - "46": "block_place", - "47": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" } } ] diff --git a/data/pc/1.18.2/protocol.json b/data/pc/1.18.2/protocol.json index 2ab36e05b..0ce9e2672 100644 --- a/data/pc/1.18.2/protocol.json +++ b/data/pc/1.18.2/protocol.json @@ -958,8 +958,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1014,8 +1014,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1063,8 +1063,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1176,11 +1176,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1266,9 +1266,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4522,110 +4522,110 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "sculk_vibration_signal", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "clear_titles", - "17": "tab_complete", - "18": "declare_commands", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "initialize_world_border", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "ping", - "49": "craft_recipe_response", - "50": "abilities", - "51": "end_combat_event", - "52": "enter_combat_event", - "53": "death_combat_event", - "54": "player_info", - "55": "face_player", - "56": "position", - "57": "unlock_recipes", - "58": "entity_destroy", - "59": "remove_entity_effect", - "60": "resource_pack_send", - "61": "respawn", - "62": "entity_head_rotation", - "63": "multi_block_change", - "64": "select_advancement_tab", - "65": "action_bar", - "66": "world_border_center", - "67": "world_border_lerp_size", - "68": "world_border_size", - "69": "world_border_warning_delay", - "70": "world_border_warning_reach", - "71": "camera", - "72": "held_item_slot", - "73": "update_view_position", - "74": "update_view_distance", - "75": "spawn_position", - "76": "scoreboard_display_objective", - "77": "entity_metadata", - "78": "attach_entity", - "79": "entity_velocity", - "80": "entity_equipment", - "81": "experience", - "82": "update_health", - "83": "scoreboard_objective", - "84": "set_passengers", - "85": "teams", - "86": "scoreboard_score", - "87": "simulation_distance", - "88": "set_title_subtitle", - "89": "update_time", - "90": "set_title_text", - "91": "set_title_time", - "92": "entity_sound_effect", - "93": "sound_effect", - "94": "stop_sound", - "95": "playerlist_header", - "96": "nbt_query_response", - "97": "collect", - "98": "entity_teleport", - "99": "advancements", - "100": "entity_update_attributes", - "101": "entity_effect", - "102": "declare_recipes", - "103": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "simulation_distance", + "0x58": "set_title_subtitle", + "0x59": "update_time", + "0x5a": "set_title_text", + "0x5b": "set_title_time", + "0x5c": "entity_sound_effect", + "0x5d": "sound_effect", + "0x5e": "stop_sound", + "0x5f": "playerlist_header", + "0x60": "nbt_query_response", + "0x61": "collect", + "0x62": "entity_teleport", + "0x63": "advancements", + "0x64": "entity_update_attributes", + "0x65": "entity_effect", + "0x66": "declare_recipes", + "0x67": "tags" } } ] @@ -5632,54 +5632,54 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "generate_structure", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "pong", - "30": "recipe_book", - "31": "displayed_recipe", - "32": "name_item", - "33": "resource_pack_receive", - "34": "advancement_tab", - "35": "select_trade", - "36": "set_beacon_effect", - "37": "held_item_slot", - "38": "update_command_block", - "39": "update_command_block_minecart", - "40": "set_creative_slot", - "41": "update_jigsaw_block", - "42": "update_structure_block", - "43": "update_sign", - "44": "arm_animation", - "45": "spectate", - "46": "block_place", - "47": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" } } ] diff --git a/data/pc/1.18/protocol.json b/data/pc/1.18/protocol.json index e572944ee..e10ae8593 100644 --- a/data/pc/1.18/protocol.json +++ b/data/pc/1.18/protocol.json @@ -958,8 +958,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1014,8 +1014,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1063,8 +1063,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1176,11 +1176,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1266,9 +1266,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4522,110 +4522,110 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "sculk_vibration_signal", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "clear_titles", - "17": "tab_complete", - "18": "declare_commands", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "initialize_world_border", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "ping", - "49": "craft_recipe_response", - "50": "abilities", - "51": "end_combat_event", - "52": "enter_combat_event", - "53": "death_combat_event", - "54": "player_info", - "55": "face_player", - "56": "position", - "57": "unlock_recipes", - "58": "entity_destroy", - "59": "remove_entity_effect", - "60": "resource_pack_send", - "61": "respawn", - "62": "entity_head_rotation", - "63": "multi_block_change", - "64": "select_advancement_tab", - "65": "action_bar", - "66": "world_border_center", - "67": "world_border_lerp_size", - "68": "world_border_size", - "69": "world_border_warning_delay", - "70": "world_border_warning_reach", - "71": "camera", - "72": "held_item_slot", - "73": "update_view_position", - "74": "update_view_distance", - "75": "spawn_position", - "76": "scoreboard_display_objective", - "77": "entity_metadata", - "78": "attach_entity", - "79": "entity_velocity", - "80": "entity_equipment", - "81": "experience", - "82": "update_health", - "83": "scoreboard_objective", - "84": "set_passengers", - "85": "teams", - "86": "scoreboard_score", - "87": "simulation_distance", - "88": "set_title_subtitle", - "89": "update_time", - "90": "set_title_text", - "91": "set_title_time", - "92": "entity_sound_effect", - "93": "sound_effect", - "94": "stop_sound", - "95": "playerlist_header", - "96": "nbt_query_response", - "97": "collect", - "98": "entity_teleport", - "99": "advancements", - "100": "entity_update_attributes", - "101": "entity_effect", - "102": "declare_recipes", - "103": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "clear_titles", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "initialize_world_border", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "ping", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "end_combat_event", + "0x34": "enter_combat_event", + "0x35": "death_combat_event", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "action_bar", + "0x42": "world_border_center", + "0x43": "world_border_lerp_size", + "0x44": "world_border_size", + "0x45": "world_border_warning_delay", + "0x46": "world_border_warning_reach", + "0x47": "camera", + "0x48": "held_item_slot", + "0x49": "update_view_position", + "0x4a": "update_view_distance", + "0x4b": "spawn_position", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "simulation_distance", + "0x58": "set_title_subtitle", + "0x59": "update_time", + "0x5a": "set_title_text", + "0x5b": "set_title_time", + "0x5c": "entity_sound_effect", + "0x5d": "sound_effect", + "0x5e": "stop_sound", + "0x5f": "playerlist_header", + "0x60": "nbt_query_response", + "0x61": "collect", + "0x62": "entity_teleport", + "0x63": "advancements", + "0x64": "entity_update_attributes", + "0x65": "entity_effect", + "0x66": "declare_recipes", + "0x67": "tags" } } ] @@ -5632,54 +5632,54 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "edit_book", - "12": "query_entity_nbt", - "13": "use_entity", - "14": "generate_structure", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "pong", - "30": "recipe_book", - "31": "displayed_recipe", - "32": "name_item", - "33": "resource_pack_receive", - "34": "advancement_tab", - "35": "select_trade", - "36": "set_beacon_effect", - "37": "held_item_slot", - "38": "update_command_block", - "39": "update_command_block_minecart", - "40": "set_creative_slot", - "41": "update_jigsaw_block", - "42": "update_structure_block", - "43": "update_sign", - "44": "arm_animation", - "45": "spectate", - "46": "block_place", - "47": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "edit_book", + "0x0c": "query_entity_nbt", + "0x0d": "use_entity", + "0x0e": "generate_structure", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "pong", + "0x1e": "recipe_book", + "0x1f": "displayed_recipe", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" } } ] diff --git a/data/pc/1.19.2/protocol.json b/data/pc/1.19.2/protocol.json index 7dae3bddc..b59734781 100644 --- a/data/pc/1.19.2/protocol.json +++ b/data/pc/1.19.2/protocol.json @@ -1075,8 +1075,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1131,8 +1131,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1180,8 +1180,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1322,11 +1322,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1491,9 +1491,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4944,114 +4944,114 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "named_entity_spawn", - "3": "animation", - "4": "statistics", - "5": "acknowledge_player_digging", - "6": "block_break_animation", - "7": "tile_entity_data", - "8": "block_action", - "9": "block_change", - "10": "boss_bar", - "11": "difficulty", - "12": "chat_preview", - "13": "clear_titles", - "14": "tab_complete", - "15": "declare_commands", - "16": "close_window", - "17": "window_items", - "18": "craft_progress_bar", - "19": "set_slot", - "20": "set_cooldown", - "21": "chat_suggestions", - "22": "custom_payload", - "23": "named_sound_effect", - "24": "hide_message", - "25": "kick_disconnect", - "26": "entity_status", - "27": "explosion", - "28": "unload_chunk", - "29": "game_state_change", - "30": "open_horse_window", - "31": "initialize_world_border", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "vehicle_move", - "44": "open_book", - "45": "open_window", - "46": "open_sign_entity", - "47": "ping", - "48": "craft_recipe_response", - "49": "abilities", - "50": "message_header", - "51": "player_chat", - "52": "end_combat_event", - "53": "enter_combat_event", - "54": "death_combat_event", - "55": "player_info", - "56": "face_player", - "57": "position", - "58": "unlock_recipes", - "59": "entity_destroy", - "60": "remove_entity_effect", - "61": "resource_pack_send", - "62": "respawn", - "63": "entity_head_rotation", - "64": "multi_block_change", - "65": "select_advancement_tab", - "66": "server_data", - "67": "action_bar", - "68": "world_border_center", - "69": "world_border_lerp_size", - "70": "world_border_size", - "71": "world_border_warning_delay", - "72": "world_border_warning_reach", - "73": "camera", - "74": "held_item_slot", - "75": "update_view_position", - "76": "update_view_distance", - "77": "spawn_position", - "78": "should_display_chat_preview", - "79": "scoreboard_display_objective", - "80": "entity_metadata", - "81": "attach_entity", - "82": "entity_velocity", - "83": "entity_equipment", - "84": "experience", - "85": "update_health", - "86": "scoreboard_objective", - "87": "set_passengers", - "88": "teams", - "89": "scoreboard_score", - "90": "simulation_distance", - "91": "set_title_subtitle", - "92": "update_time", - "93": "set_title_text", - "94": "set_title_time", - "95": "entity_sound_effect", - "96": "sound_effect", - "97": "stop_sound", - "98": "system_chat", - "99": "playerlist_header", - "100": "nbt_query_response", - "101": "collect", - "102": "entity_teleport", - "103": "advancements", - "104": "entity_update_attributes", - "105": "entity_effect", - "106": "declare_recipes", - "107": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "named_entity_spawn", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chat_preview", + "0x0d": "clear_titles", + "0x0e": "tab_complete", + "0x0f": "declare_commands", + "0x10": "close_window", + "0x11": "window_items", + "0x12": "craft_progress_bar", + "0x13": "set_slot", + "0x14": "set_cooldown", + "0x15": "chat_suggestions", + "0x16": "custom_payload", + "0x17": "named_sound_effect", + "0x18": "hide_message", + "0x19": "kick_disconnect", + "0x1a": "entity_status", + "0x1b": "explosion", + "0x1c": "unload_chunk", + "0x1d": "game_state_change", + "0x1e": "open_horse_window", + "0x1f": "initialize_world_border", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "vehicle_move", + "0x2c": "open_book", + "0x2d": "open_window", + "0x2e": "open_sign_entity", + "0x2f": "ping", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "message_header", + "0x33": "player_chat", + "0x34": "end_combat_event", + "0x35": "enter_combat_event", + "0x36": "death_combat_event", + "0x37": "player_info", + "0x38": "face_player", + "0x39": "position", + "0x3a": "unlock_recipes", + "0x3b": "entity_destroy", + "0x3c": "remove_entity_effect", + "0x3d": "resource_pack_send", + "0x3e": "respawn", + "0x3f": "entity_head_rotation", + "0x40": "multi_block_change", + "0x41": "select_advancement_tab", + "0x42": "server_data", + "0x43": "action_bar", + "0x44": "world_border_center", + "0x45": "world_border_lerp_size", + "0x46": "world_border_size", + "0x47": "world_border_warning_delay", + "0x48": "world_border_warning_reach", + "0x49": "camera", + "0x4a": "held_item_slot", + "0x4b": "update_view_position", + "0x4c": "update_view_distance", + "0x4d": "spawn_position", + "0x4e": "should_display_chat_preview", + "0x4f": "scoreboard_display_objective", + "0x50": "entity_metadata", + "0x51": "attach_entity", + "0x52": "entity_velocity", + "0x53": "entity_equipment", + "0x54": "experience", + "0x55": "update_health", + "0x56": "scoreboard_objective", + "0x57": "set_passengers", + "0x58": "teams", + "0x59": "scoreboard_score", + "0x5a": "simulation_distance", + "0x5b": "set_title_subtitle", + "0x5c": "update_time", + "0x5d": "set_title_text", + "0x5e": "set_title_time", + "0x5f": "entity_sound_effect", + "0x60": "sound_effect", + "0x61": "stop_sound", + "0x62": "system_chat", + "0x63": "playerlist_header", + "0x64": "nbt_query_response", + "0x65": "collect", + "0x66": "entity_teleport", + "0x67": "advancements", + "0x68": "entity_update_attributes", + "0x69": "entity_effect", + "0x6a": "declare_recipes", + "0x6b": "tags" } } ] @@ -6251,57 +6251,57 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "message_acknowledgement", - "4": "chat_command", - "5": "chat_message", - "6": "chat_preview", - "7": "client_command", - "8": "settings", - "9": "tab_complete", - "10": "enchant_item", - "11": "window_click", - "12": "close_window", - "13": "custom_payload", - "14": "edit_book", - "15": "query_entity_nbt", - "16": "use_entity", - "17": "generate_structure", - "18": "keep_alive", - "19": "lock_difficulty", - "20": "position", - "21": "position_look", - "22": "look", - "23": "flying", - "24": "vehicle_move", - "25": "steer_boat", - "26": "pick_item", - "27": "craft_recipe_request", - "28": "abilities", - "29": "block_dig", - "30": "entity_action", - "31": "steer_vehicle", - "32": "pong", - "33": "recipe_book", - "34": "displayed_recipe", - "35": "name_item", - "36": "resource_pack_receive", - "37": "advancement_tab", - "38": "select_trade", - "39": "set_beacon_effect", - "40": "held_item_slot", - "41": "update_command_block", - "42": "update_command_block_minecart", - "43": "set_creative_slot", - "44": "update_jigsaw_block", - "45": "update_structure_block", - "46": "update_sign", - "47": "arm_animation", - "48": "spectate", - "49": "block_place", - "50": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_preview", + "0x07": "client_command", + "0x08": "settings", + "0x09": "tab_complete", + "0x0a": "enchant_item", + "0x0b": "window_click", + "0x0c": "close_window", + "0x0d": "custom_payload", + "0x0e": "edit_book", + "0x0f": "query_entity_nbt", + "0x10": "use_entity", + "0x11": "generate_structure", + "0x12": "keep_alive", + "0x13": "lock_difficulty", + "0x14": "position", + "0x15": "position_look", + "0x16": "look", + "0x17": "flying", + "0x18": "vehicle_move", + "0x19": "steer_boat", + "0x1a": "pick_item", + "0x1b": "craft_recipe_request", + "0x1c": "abilities", + "0x1d": "block_dig", + "0x1e": "entity_action", + "0x1f": "steer_vehicle", + "0x20": "pong", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" } } ] diff --git a/data/pc/1.19.3/protocol.json b/data/pc/1.19.3/protocol.json index 52c5fcfef..8e971111f 100644 --- a/data/pc/1.19.3/protocol.json +++ b/data/pc/1.19.3/protocol.json @@ -1213,8 +1213,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1269,8 +1269,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1318,8 +1318,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1460,11 +1460,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1557,9 +1557,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -5243,113 +5243,113 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "named_entity_spawn", - "3": "animation", - "4": "statistics", - "5": "acknowledge_player_digging", - "6": "block_break_animation", - "7": "tile_entity_data", - "8": "block_action", - "9": "block_change", - "10": "boss_bar", - "11": "difficulty", - "12": "clear_titles", - "13": "tab_complete", - "14": "declare_commands", - "15": "close_window", - "16": "window_items", - "17": "craft_progress_bar", - "18": "set_slot", - "19": "set_cooldown", - "20": "chat_suggestions", - "21": "custom_payload", - "22": "hide_message", - "23": "kick_disconnect", - "24": "profileless_chat", - "25": "entity_status", - "26": "explosion", - "27": "unload_chunk", - "28": "game_state_change", - "29": "open_horse_window", - "30": "initialize_world_border", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "update_light", - "36": "login", - "37": "map", - "38": "trade_list", - "39": "rel_entity_move", - "40": "entity_move_look", - "41": "entity_look", - "42": "vehicle_move", - "43": "open_book", - "44": "open_window", - "45": "open_sign_entity", - "46": "ping", - "47": "craft_recipe_response", - "48": "abilities", - "49": "player_chat", - "50": "end_combat_event", - "51": "enter_combat_event", - "52": "death_combat_event", - "53": "player_remove", - "54": "player_info", - "55": "face_player", - "56": "position", - "57": "unlock_recipes", - "58": "entity_destroy", - "59": "remove_entity_effect", - "60": "resource_pack_send", - "61": "respawn", - "62": "entity_head_rotation", - "63": "multi_block_change", - "64": "select_advancement_tab", - "65": "server_data", - "66": "action_bar", - "67": "world_border_center", - "68": "world_border_lerp_size", - "69": "world_border_size", - "70": "world_border_warning_delay", - "71": "world_border_warning_reach", - "72": "camera", - "73": "held_item_slot", - "74": "update_view_position", - "75": "update_view_distance", - "76": "spawn_position", - "77": "scoreboard_display_objective", - "78": "entity_metadata", - "79": "attach_entity", - "80": "entity_velocity", - "81": "entity_equipment", - "82": "experience", - "83": "update_health", - "84": "scoreboard_objective", - "85": "set_passengers", - "86": "teams", - "87": "scoreboard_score", - "88": "simulation_distance", - "89": "set_title_subtitle", - "90": "update_time", - "91": "set_title_text", - "92": "set_title_time", - "93": "entity_sound_effect", - "94": "sound_effect", - "95": "stop_sound", - "96": "system_chat", - "97": "playerlist_header", - "98": "nbt_query_response", - "99": "collect", - "100": "entity_teleport", - "101": "advancements", - "102": "entity_update_attributes", - "103": "feature_flags", - "104": "entity_effect", - "105": "declare_recipes", - "106": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "named_entity_spawn", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "clear_titles", + "0x0d": "tab_complete", + "0x0e": "declare_commands", + "0x0f": "close_window", + "0x10": "window_items", + "0x11": "craft_progress_bar", + "0x12": "set_slot", + "0x13": "set_cooldown", + "0x14": "chat_suggestions", + "0x15": "custom_payload", + "0x16": "hide_message", + "0x17": "kick_disconnect", + "0x18": "profileless_chat", + "0x19": "entity_status", + "0x1a": "explosion", + "0x1b": "unload_chunk", + "0x1c": "game_state_change", + "0x1d": "open_horse_window", + "0x1e": "initialize_world_border", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "update_light", + "0x24": "login", + "0x25": "map", + "0x26": "trade_list", + "0x27": "rel_entity_move", + "0x28": "entity_move_look", + "0x29": "entity_look", + "0x2a": "vehicle_move", + "0x2b": "open_book", + "0x2c": "open_window", + "0x2d": "open_sign_entity", + "0x2e": "ping", + "0x2f": "craft_recipe_response", + "0x30": "abilities", + "0x31": "player_chat", + "0x32": "end_combat_event", + "0x33": "enter_combat_event", + "0x34": "death_combat_event", + "0x35": "player_remove", + "0x36": "player_info", + "0x37": "face_player", + "0x38": "position", + "0x39": "unlock_recipes", + "0x3a": "entity_destroy", + "0x3b": "remove_entity_effect", + "0x3c": "resource_pack_send", + "0x3d": "respawn", + "0x3e": "entity_head_rotation", + "0x3f": "multi_block_change", + "0x40": "select_advancement_tab", + "0x41": "server_data", + "0x42": "action_bar", + "0x43": "world_border_center", + "0x44": "world_border_lerp_size", + "0x45": "world_border_size", + "0x46": "world_border_warning_delay", + "0x47": "world_border_warning_reach", + "0x48": "camera", + "0x49": "held_item_slot", + "0x4a": "update_view_position", + "0x4b": "update_view_distance", + "0x4c": "spawn_position", + "0x4d": "scoreboard_display_objective", + "0x4e": "entity_metadata", + "0x4f": "attach_entity", + "0x50": "entity_velocity", + "0x51": "entity_equipment", + "0x52": "experience", + "0x53": "update_health", + "0x54": "scoreboard_objective", + "0x55": "set_passengers", + "0x56": "teams", + "0x57": "scoreboard_score", + "0x58": "simulation_distance", + "0x59": "set_title_subtitle", + "0x5a": "update_time", + "0x5b": "set_title_text", + "0x5c": "set_title_time", + "0x5d": "entity_sound_effect", + "0x5e": "sound_effect", + "0x5f": "stop_sound", + "0x60": "system_chat", + "0x61": "playerlist_header", + "0x62": "nbt_query_response", + "0x63": "collect", + "0x64": "entity_teleport", + "0x65": "advancements", + "0x66": "entity_update_attributes", + "0x67": "feature_flags", + "0x68": "entity_effect", + "0x69": "declare_recipes", + "0x6a": "tags" } } ] @@ -6507,57 +6507,57 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "message_acknowledgement", - "4": "chat_command", - "5": "chat_message", - "6": "client_command", - "7": "settings", - "8": "tab_complete", - "9": "enchant_item", - "10": "window_click", - "11": "close_window", - "12": "custom_payload", - "13": "edit_book", - "14": "query_entity_nbt", - "15": "use_entity", - "16": "generate_structure", - "17": "keep_alive", - "18": "lock_difficulty", - "19": "position", - "20": "position_look", - "21": "look", - "22": "flying", - "23": "vehicle_move", - "24": "steer_boat", - "25": "pick_item", - "26": "craft_recipe_request", - "27": "abilities", - "28": "block_dig", - "29": "entity_action", - "30": "steer_vehicle", - "31": "pong", - "32": "chat_session_update", - "33": "recipe_book", - "34": "displayed_recipe", - "35": "name_item", - "36": "resource_pack_receive", - "37": "advancement_tab", - "38": "select_trade", - "39": "set_beacon_effect", - "40": "held_item_slot", - "41": "update_command_block", - "42": "update_command_block_minecart", - "43": "set_creative_slot", - "44": "update_jigsaw_block", - "45": "update_structure_block", - "46": "update_sign", - "47": "arm_animation", - "48": "spectate", - "49": "block_place", - "50": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "client_command", + "0x07": "settings", + "0x08": "tab_complete", + "0x09": "enchant_item", + "0x0a": "window_click", + "0x0b": "close_window", + "0x0c": "custom_payload", + "0x0d": "edit_book", + "0x0e": "query_entity_nbt", + "0x0f": "use_entity", + "0x10": "generate_structure", + "0x11": "keep_alive", + "0x12": "lock_difficulty", + "0x13": "position", + "0x14": "position_look", + "0x15": "look", + "0x16": "flying", + "0x17": "vehicle_move", + "0x18": "steer_boat", + "0x19": "pick_item", + "0x1a": "craft_recipe_request", + "0x1b": "abilities", + "0x1c": "block_dig", + "0x1d": "entity_action", + "0x1e": "steer_vehicle", + "0x1f": "pong", + "0x20": "chat_session_update", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" } } ] diff --git a/data/pc/1.19.4/protocol.json b/data/pc/1.19.4/protocol.json index 114a7e3ea..428bff3d1 100644 --- a/data/pc/1.19.4/protocol.json +++ b/data/pc/1.19.4/protocol.json @@ -1322,8 +1322,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1378,8 +1378,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1427,8 +1427,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1569,11 +1569,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1666,9 +1666,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -5466,117 +5466,117 @@ { "type": "varint", "mappings": { - "0": "bundle_delimiter", - "1": "spawn_entity", - "2": "spawn_entity_experience_orb", - "3": "named_entity_spawn", - "4": "animation", - "5": "statistics", - "6": "acknowledge_player_digging", - "7": "block_break_animation", - "8": "tile_entity_data", - "9": "block_action", - "10": "block_change", - "11": "boss_bar", - "12": "difficulty", - "13": "chunk_biomes", - "14": "clear_titles", - "15": "tab_complete", - "16": "declare_commands", - "17": "close_window", - "18": "window_items", - "19": "craft_progress_bar", - "20": "set_slot", - "21": "set_cooldown", - "22": "chat_suggestions", - "23": "custom_payload", - "24": "damage_event", - "25": "hide_message", - "26": "kick_disconnect", - "27": "profileless_chat", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "open_horse_window", - "33": "hurt_animation", - "34": "initialize_world_border", - "35": "keep_alive", - "36": "map_chunk", - "37": "world_event", - "38": "world_particles", - "39": "update_light", - "40": "login", - "41": "map", - "42": "trade_list", - "43": "rel_entity_move", - "44": "entity_move_look", - "45": "entity_look", - "46": "vehicle_move", - "47": "open_book", - "48": "open_window", - "49": "open_sign_entity", - "50": "ping", - "51": "craft_recipe_response", - "52": "abilities", - "53": "player_chat", - "54": "end_combat_event", - "55": "enter_combat_event", - "56": "death_combat_event", - "57": "player_remove", - "58": "player_info", - "59": "face_player", - "60": "position", - "61": "unlock_recipes", - "62": "entity_destroy", - "63": "remove_entity_effect", - "64": "resource_pack_send", - "65": "respawn", - "66": "entity_head_rotation", - "67": "multi_block_change", - "68": "select_advancement_tab", - "69": "server_data", - "70": "action_bar", - "71": "world_border_center", - "72": "world_border_lerp_size", - "73": "world_border_size", - "74": "world_border_warning_delay", - "75": "world_border_warning_reach", - "76": "camera", - "77": "held_item_slot", - "78": "update_view_position", - "79": "update_view_distance", - "80": "spawn_position", - "81": "scoreboard_display_objective", - "82": "entity_metadata", - "83": "attach_entity", - "84": "entity_velocity", - "85": "entity_equipment", - "86": "experience", - "87": "update_health", - "88": "scoreboard_objective", - "89": "set_passengers", - "90": "teams", - "91": "scoreboard_score", - "92": "simulation_distance", - "93": "set_title_subtitle", - "94": "update_time", - "95": "set_title_text", - "96": "set_title_time", - "97": "entity_sound_effect", - "98": "sound_effect", - "99": "stop_sound", - "100": "system_chat", - "101": "playerlist_header", - "102": "nbt_query_response", - "103": "collect", - "104": "entity_teleport", - "105": "advancements", - "106": "entity_update_attributes", - "107": "feature_flags", - "108": "entity_effect", - "109": "declare_recipes", - "110": "tags" + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "named_entity_spawn", + "0x04": "animation", + "0x05": "statistics", + "0x06": "acknowledge_player_digging", + "0x07": "block_break_animation", + "0x08": "tile_entity_data", + "0x09": "block_action", + "0x0a": "block_change", + "0x0b": "boss_bar", + "0x0c": "difficulty", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "set_cooldown", + "0x16": "chat_suggestions", + "0x17": "custom_payload", + "0x18": "damage_event", + "0x19": "hide_message", + "0x1a": "kick_disconnect", + "0x1b": "profileless_chat", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "hurt_animation", + "0x22": "initialize_world_border", + "0x23": "keep_alive", + "0x24": "map_chunk", + "0x25": "world_event", + "0x26": "world_particles", + "0x27": "update_light", + "0x28": "login", + "0x29": "map", + "0x2a": "trade_list", + "0x2b": "rel_entity_move", + "0x2c": "entity_move_look", + "0x2d": "entity_look", + "0x2e": "vehicle_move", + "0x2f": "open_book", + "0x30": "open_window", + "0x31": "open_sign_entity", + "0x32": "ping", + "0x33": "craft_recipe_response", + "0x34": "abilities", + "0x35": "player_chat", + "0x36": "end_combat_event", + "0x37": "enter_combat_event", + "0x38": "death_combat_event", + "0x39": "player_remove", + "0x3a": "player_info", + "0x3b": "face_player", + "0x3c": "position", + "0x3d": "unlock_recipes", + "0x3e": "entity_destroy", + "0x3f": "remove_entity_effect", + "0x40": "resource_pack_send", + "0x41": "respawn", + "0x42": "entity_head_rotation", + "0x43": "multi_block_change", + "0x44": "select_advancement_tab", + "0x45": "server_data", + "0x46": "action_bar", + "0x47": "world_border_center", + "0x48": "world_border_lerp_size", + "0x49": "world_border_size", + "0x4a": "world_border_warning_delay", + "0x4b": "world_border_warning_reach", + "0x4c": "camera", + "0x4d": "held_item_slot", + "0x4e": "update_view_position", + "0x4f": "update_view_distance", + "0x50": "spawn_position", + "0x51": "scoreboard_display_objective", + "0x52": "entity_metadata", + "0x53": "attach_entity", + "0x54": "entity_velocity", + "0x55": "entity_equipment", + "0x56": "experience", + "0x57": "update_health", + "0x58": "scoreboard_objective", + "0x59": "set_passengers", + "0x5a": "teams", + "0x5b": "scoreboard_score", + "0x5c": "simulation_distance", + "0x5d": "set_title_subtitle", + "0x5e": "update_time", + "0x5f": "set_title_text", + "0x60": "set_title_time", + "0x61": "entity_sound_effect", + "0x62": "sound_effect", + "0x63": "stop_sound", + "0x64": "system_chat", + "0x65": "playerlist_header", + "0x66": "nbt_query_response", + "0x67": "collect", + "0x68": "entity_teleport", + "0x69": "advancements", + "0x6a": "entity_update_attributes", + "0x6b": "feature_flags", + "0x6c": "entity_effect", + "0x6d": "declare_recipes", + "0x6e": "tags" } } ] @@ -6738,57 +6738,57 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "message_acknowledgement", - "4": "chat_command", - "5": "chat_message", - "6": "chat_session_update", - "7": "client_command", - "8": "settings", - "9": "tab_complete", - "10": "enchant_item", - "11": "window_click", - "12": "close_window", - "13": "custom_payload", - "14": "edit_book", - "15": "query_entity_nbt", - "16": "use_entity", - "17": "generate_structure", - "18": "keep_alive", - "19": "lock_difficulty", - "20": "position", - "21": "position_look", - "22": "look", - "23": "flying", - "24": "vehicle_move", - "25": "steer_boat", - "26": "pick_item", - "27": "craft_recipe_request", - "28": "abilities", - "29": "block_dig", - "30": "entity_action", - "31": "steer_vehicle", - "32": "pong", - "33": "recipe_book", - "34": "displayed_recipe", - "35": "name_item", - "36": "resource_pack_receive", - "37": "advancement_tab", - "38": "select_trade", - "39": "set_beacon_effect", - "40": "held_item_slot", - "41": "update_command_block", - "42": "update_command_block_minecart", - "43": "set_creative_slot", - "44": "update_jigsaw_block", - "45": "update_structure_block", - "46": "update_sign", - "47": "arm_animation", - "48": "spectate", - "49": "block_place", - "50": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "client_command", + "0x08": "settings", + "0x09": "tab_complete", + "0x0a": "enchant_item", + "0x0b": "window_click", + "0x0c": "close_window", + "0x0d": "custom_payload", + "0x0e": "edit_book", + "0x0f": "query_entity_nbt", + "0x10": "use_entity", + "0x11": "generate_structure", + "0x12": "keep_alive", + "0x13": "lock_difficulty", + "0x14": "position", + "0x15": "position_look", + "0x16": "look", + "0x17": "flying", + "0x18": "vehicle_move", + "0x19": "steer_boat", + "0x1a": "pick_item", + "0x1b": "craft_recipe_request", + "0x1c": "abilities", + "0x1d": "block_dig", + "0x1e": "entity_action", + "0x1f": "steer_vehicle", + "0x20": "pong", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" } } ] diff --git a/data/pc/1.19/protocol.json b/data/pc/1.19/protocol.json index 96a511dd3..09d514061 100644 --- a/data/pc/1.19/protocol.json +++ b/data/pc/1.19/protocol.json @@ -1044,8 +1044,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1100,8 +1100,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1149,8 +1149,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1291,11 +1291,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1453,9 +1453,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4784,111 +4784,111 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "named_entity_spawn", - "3": "animation", - "4": "statistics", - "5": "acknowledge_player_digging", - "6": "block_break_animation", - "7": "tile_entity_data", - "8": "block_action", - "9": "block_change", - "10": "boss_bar", - "11": "difficulty", - "12": "chat_preview", - "13": "clear_titles", - "14": "tab_complete", - "15": "declare_commands", - "16": "close_window", - "17": "window_items", - "18": "craft_progress_bar", - "19": "set_slot", - "20": "set_cooldown", - "21": "custom_payload", - "22": "named_sound_effect", - "23": "kick_disconnect", - "24": "entity_status", - "25": "explosion", - "26": "unload_chunk", - "27": "game_state_change", - "28": "open_horse_window", - "29": "initialize_world_border", - "30": "keep_alive", - "31": "map_chunk", - "32": "world_event", - "33": "world_particles", - "34": "update_light", - "35": "login", - "36": "map", - "37": "trade_list", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "vehicle_move", - "42": "open_book", - "43": "open_window", - "44": "open_sign_entity", - "45": "ping", - "46": "craft_recipe_response", - "47": "abilities", - "48": "player_chat", - "49": "end_combat_event", - "50": "enter_combat_event", - "51": "death_combat_event", - "52": "player_info", - "53": "face_player", - "54": "position", - "55": "unlock_recipes", - "56": "entity_destroy", - "57": "remove_entity_effect", - "58": "resource_pack_send", - "59": "respawn", - "60": "entity_head_rotation", - "61": "multi_block_change", - "62": "select_advancement_tab", - "63": "server_data", - "64": "action_bar", - "65": "world_border_center", - "66": "world_border_lerp_size", - "67": "world_border_size", - "68": "world_border_warning_delay", - "69": "world_border_warning_reach", - "70": "camera", - "71": "held_item_slot", - "72": "update_view_position", - "73": "update_view_distance", - "74": "spawn_position", - "75": "should_display_chat_preview", - "76": "scoreboard_display_objective", - "77": "entity_metadata", - "78": "attach_entity", - "79": "entity_velocity", - "80": "entity_equipment", - "81": "experience", - "82": "update_health", - "83": "scoreboard_objective", - "84": "set_passengers", - "85": "teams", - "86": "scoreboard_score", - "87": "simulation_distance", - "88": "set_title_subtitle", - "89": "update_time", - "90": "set_title_text", - "91": "set_title_time", - "92": "entity_sound_effect", - "93": "sound_effect", - "94": "stop_sound", - "95": "system_chat", - "96": "playerlist_header", - "97": "nbt_query_response", - "98": "collect", - "99": "entity_teleport", - "100": "advancements", - "101": "entity_update_attributes", - "102": "entity_effect", - "103": "declare_recipes", - "104": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "named_entity_spawn", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chat_preview", + "0x0d": "clear_titles", + "0x0e": "tab_complete", + "0x0f": "declare_commands", + "0x10": "close_window", + "0x11": "window_items", + "0x12": "craft_progress_bar", + "0x13": "set_slot", + "0x14": "set_cooldown", + "0x15": "custom_payload", + "0x16": "named_sound_effect", + "0x17": "kick_disconnect", + "0x18": "entity_status", + "0x19": "explosion", + "0x1a": "unload_chunk", + "0x1b": "game_state_change", + "0x1c": "open_horse_window", + "0x1d": "initialize_world_border", + "0x1e": "keep_alive", + "0x1f": "map_chunk", + "0x20": "world_event", + "0x21": "world_particles", + "0x22": "update_light", + "0x23": "login", + "0x24": "map", + "0x25": "trade_list", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "vehicle_move", + "0x2a": "open_book", + "0x2b": "open_window", + "0x2c": "open_sign_entity", + "0x2d": "ping", + "0x2e": "craft_recipe_response", + "0x2f": "abilities", + "0x30": "player_chat", + "0x31": "end_combat_event", + "0x32": "enter_combat_event", + "0x33": "death_combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "multi_block_change", + "0x3e": "select_advancement_tab", + "0x3f": "server_data", + "0x40": "action_bar", + "0x41": "world_border_center", + "0x42": "world_border_lerp_size", + "0x43": "world_border_size", + "0x44": "world_border_warning_delay", + "0x45": "world_border_warning_reach", + "0x46": "camera", + "0x47": "held_item_slot", + "0x48": "update_view_position", + "0x49": "update_view_distance", + "0x4a": "spawn_position", + "0x4b": "should_display_chat_preview", + "0x4c": "scoreboard_display_objective", + "0x4d": "entity_metadata", + "0x4e": "attach_entity", + "0x4f": "entity_velocity", + "0x50": "entity_equipment", + "0x51": "experience", + "0x52": "update_health", + "0x53": "scoreboard_objective", + "0x54": "set_passengers", + "0x55": "teams", + "0x56": "scoreboard_score", + "0x57": "simulation_distance", + "0x58": "set_title_subtitle", + "0x59": "update_time", + "0x5a": "set_title_text", + "0x5b": "set_title_time", + "0x5c": "entity_sound_effect", + "0x5d": "sound_effect", + "0x5e": "stop_sound", + "0x5f": "system_chat", + "0x60": "playerlist_header", + "0x61": "nbt_query_response", + "0x62": "collect", + "0x63": "entity_teleport", + "0x64": "advancements", + "0x65": "entity_update_attributes", + "0x66": "entity_effect", + "0x67": "declare_recipes", + "0x68": "tags" } } ] @@ -5996,56 +5996,56 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat_command", - "4": "chat_message", - "5": "chat_preview", - "6": "client_command", - "7": "settings", - "8": "tab_complete", - "9": "enchant_item", - "10": "window_click", - "11": "close_window", - "12": "custom_payload", - "13": "edit_book", - "14": "query_entity_nbt", - "15": "use_entity", - "16": "generate_structure", - "17": "keep_alive", - "18": "lock_difficulty", - "19": "position", - "20": "position_look", - "21": "look", - "22": "flying", - "23": "vehicle_move", - "24": "steer_boat", - "25": "pick_item", - "26": "craft_recipe_request", - "27": "abilities", - "28": "block_dig", - "29": "entity_action", - "30": "steer_vehicle", - "31": "pong", - "32": "recipe_book", - "33": "displayed_recipe", - "34": "name_item", - "35": "resource_pack_receive", - "36": "advancement_tab", - "37": "select_trade", - "38": "set_beacon_effect", - "39": "held_item_slot", - "40": "update_command_block", - "41": "update_command_block_minecart", - "42": "set_creative_slot", - "43": "update_jigsaw_block", - "44": "update_structure_block", - "45": "update_sign", - "46": "arm_animation", - "47": "spectate", - "48": "block_place", - "49": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat_command", + "0x04": "chat_message", + "0x05": "chat_preview", + "0x06": "client_command", + "0x07": "settings", + "0x08": "tab_complete", + "0x09": "enchant_item", + "0x0a": "window_click", + "0x0b": "close_window", + "0x0c": "custom_payload", + "0x0d": "edit_book", + "0x0e": "query_entity_nbt", + "0x0f": "use_entity", + "0x10": "generate_structure", + "0x11": "keep_alive", + "0x12": "lock_difficulty", + "0x13": "position", + "0x14": "position_look", + "0x15": "look", + "0x16": "flying", + "0x17": "vehicle_move", + "0x18": "steer_boat", + "0x19": "pick_item", + "0x1a": "craft_recipe_request", + "0x1b": "abilities", + "0x1c": "block_dig", + "0x1d": "entity_action", + "0x1e": "steer_vehicle", + "0x1f": "pong", + "0x20": "recipe_book", + "0x21": "displayed_recipe", + "0x22": "name_item", + "0x23": "resource_pack_receive", + "0x24": "advancement_tab", + "0x25": "select_trade", + "0x26": "set_beacon_effect", + "0x27": "held_item_slot", + "0x28": "update_command_block", + "0x29": "update_command_block_minecart", + "0x2a": "set_creative_slot", + "0x2b": "update_jigsaw_block", + "0x2c": "update_structure_block", + "0x2d": "update_sign", + "0x2e": "arm_animation", + "0x2f": "spectate", + "0x30": "block_place", + "0x31": "use_item" } } ] diff --git a/data/pc/1.20.2/protocol.json b/data/pc/1.20.2/protocol.json index 0dec205ef..7590267d0 100644 --- a/data/pc/1.20.2/protocol.json +++ b/data/pc/1.20.2/protocol.json @@ -1322,8 +1322,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1378,8 +1378,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1427,8 +1427,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1569,11 +1569,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1667,10 +1667,10 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response", - "3": "login_acknowledged" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged" } } ] @@ -1828,15 +1828,15 @@ { "type": "varint", "mappings": { - "0": "custom_payload", - "1": "disconnect", - "2": "finish_configuration", - "3": "keep_alive", - "4": "ping", - "5": "registry_data", - "6": "resource_pack_send", - "7": "feature_flags", - "8": "tags" + "0x00": "custom_payload", + "0x01": "disconnect", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "ping", + "0x05": "registry_data", + "0x06": "resource_pack_send", + "0x07": "feature_flags", + "0x08": "tags" } } ] @@ -1959,12 +1959,12 @@ { "type": "varint", "mappings": { - "0": "settings", - "1": "custom_payload", - "2": "finish_configuration", - "3": "keep_alive", - "4": "pong", - "5": "resource_pack_receive" + "0x00": "settings", + "0x01": "custom_payload", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "pong", + "0x05": "resource_pack_receive" } } ] @@ -5700,119 +5700,119 @@ { "type": "varint", "mappings": { - "0": "bundle_delimiter", - "1": "spawn_entity", - "2": "spawn_entity_experience_orb", - "3": "animation", - "4": "statistics", - "5": "acknowledge_player_digging", - "6": "block_break_animation", - "7": "tile_entity_data", - "8": "block_action", - "9": "block_change", - "10": "boss_bar", - "11": "difficulty", - "12": "chunk_batch_finished", - "13": "chunk_batch_start", - "14": "chunk_biomes", - "15": "clear_titles", - "16": "tab_complete", - "17": "declare_commands", - "18": "close_window", - "19": "window_items", - "20": "craft_progress_bar", - "21": "set_slot", - "22": "set_cooldown", - "23": "chat_suggestions", - "24": "custom_payload", - "25": "damage_event", - "26": "hide_message", - "27": "kick_disconnect", - "28": "profileless_chat", - "29": "entity_status", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "open_horse_window", - "34": "hurt_animation", - "35": "initialize_world_border", - "36": "keep_alive", - "37": "map_chunk", - "38": "world_event", - "39": "world_particles", - "40": "update_light", - "41": "login", - "42": "map", - "43": "trade_list", - "44": "rel_entity_move", - "45": "entity_move_look", - "46": "entity_look", - "47": "vehicle_move", - "48": "open_book", - "49": "open_window", - "50": "open_sign_entity", - "51": "ping", - "52": "ping_response", - "53": "craft_recipe_response", - "54": "abilities", - "55": "player_chat", - "56": "end_combat_event", - "57": "enter_combat_event", - "58": "death_combat_event", - "59": "player_remove", - "60": "player_info", - "61": "face_player", - "62": "position", - "63": "unlock_recipes", - "64": "entity_destroy", - "65": "remove_entity_effect", - "66": "resource_pack_send", - "67": "respawn", - "68": "entity_head_rotation", - "69": "multi_block_change", - "70": "select_advancement_tab", - "71": "server_data", - "72": "action_bar", - "73": "world_border_center", - "74": "world_border_lerp_size", - "75": "world_border_size", - "76": "world_border_warning_delay", - "77": "world_border_warning_reach", - "78": "camera", - "79": "held_item_slot", - "80": "update_view_position", - "81": "update_view_distance", - "82": "spawn_position", - "83": "scoreboard_display_objective", - "84": "entity_metadata", - "85": "attach_entity", - "86": "entity_velocity", - "87": "entity_equipment", - "88": "experience", - "89": "update_health", - "90": "scoreboard_objective", - "91": "set_passengers", - "92": "teams", - "93": "scoreboard_score", - "94": "simulation_distance", - "95": "set_title_subtitle", - "96": "update_time", - "97": "set_title_text", - "98": "set_title_time", - "99": "entity_sound_effect", - "100": "sound_effect", - "101": "start_configuration", - "102": "stop_sound", - "103": "system_chat", - "104": "playerlist_header", - "105": "nbt_query_response", - "106": "collect", - "107": "entity_teleport", - "108": "advancements", - "109": "entity_update_attributes", - "110": "entity_effect", - "111": "declare_recipes", - "112": "tags" + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "hide_message", + "0x1b": "kick_disconnect", + "0x1c": "profileless_chat", + "0x1d": "entity_status", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "open_horse_window", + "0x22": "hurt_animation", + "0x23": "initialize_world_border", + "0x24": "keep_alive", + "0x25": "map_chunk", + "0x26": "world_event", + "0x27": "world_particles", + "0x28": "update_light", + "0x29": "login", + "0x2a": "map", + "0x2b": "trade_list", + "0x2c": "rel_entity_move", + "0x2d": "entity_move_look", + "0x2e": "entity_look", + "0x2f": "vehicle_move", + "0x30": "open_book", + "0x31": "open_window", + "0x32": "open_sign_entity", + "0x33": "ping", + "0x34": "ping_response", + "0x35": "craft_recipe_response", + "0x36": "abilities", + "0x37": "player_chat", + "0x38": "end_combat_event", + "0x39": "enter_combat_event", + "0x3a": "death_combat_event", + "0x3b": "player_remove", + "0x3c": "player_info", + "0x3d": "face_player", + "0x3e": "position", + "0x3f": "unlock_recipes", + "0x40": "entity_destroy", + "0x41": "remove_entity_effect", + "0x42": "resource_pack_send", + "0x43": "respawn", + "0x44": "entity_head_rotation", + "0x45": "multi_block_change", + "0x46": "select_advancement_tab", + "0x47": "server_data", + "0x48": "action_bar", + "0x49": "world_border_center", + "0x4a": "world_border_lerp_size", + "0x4b": "world_border_size", + "0x4c": "world_border_warning_delay", + "0x4d": "world_border_warning_reach", + "0x4e": "camera", + "0x4f": "held_item_slot", + "0x50": "update_view_position", + "0x51": "update_view_distance", + "0x52": "spawn_position", + "0x53": "scoreboard_display_objective", + "0x54": "entity_metadata", + "0x55": "attach_entity", + "0x56": "entity_velocity", + "0x57": "entity_equipment", + "0x58": "experience", + "0x59": "update_health", + "0x5a": "scoreboard_objective", + "0x5b": "set_passengers", + "0x5c": "teams", + "0x5d": "scoreboard_score", + "0x5e": "simulation_distance", + "0x5f": "set_title_subtitle", + "0x60": "update_time", + "0x61": "set_title_text", + "0x62": "set_title_time", + "0x63": "entity_sound_effect", + "0x64": "sound_effect", + "0x65": "start_configuration", + "0x66": "stop_sound", + "0x67": "system_chat", + "0x68": "playerlist_header", + "0x69": "nbt_query_response", + "0x6a": "collect", + "0x6b": "entity_teleport", + "0x6c": "advancements", + "0x6d": "entity_update_attributes", + "0x6e": "entity_effect", + "0x6f": "declare_recipes", + "0x70": "tags" } } ] @@ -7002,60 +7002,60 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "message_acknowledgement", - "4": "chat_command", - "5": "chat_message", - "6": "chat_session_update", - "7": "chunk_batch_received", - "8": "client_command", - "9": "settings", - "10": "tab_complete", - "11": "configuration_acknowledged", - "12": "enchant_item", - "13": "window_click", - "14": "close_window", - "15": "custom_payload", - "16": "edit_book", - "17": "query_entity_nbt", - "18": "use_entity", - "19": "generate_structure", - "20": "keep_alive", - "21": "lock_difficulty", - "22": "position", - "23": "position_look", - "24": "look", - "25": "flying", - "26": "vehicle_move", - "27": "steer_boat", - "28": "pick_item", - "29": "ping_request", - "30": "craft_recipe_request", - "31": "abilities", - "32": "block_dig", - "33": "entity_action", - "34": "steer_vehicle", - "35": "pong", - "36": "recipe_book", - "37": "displayed_recipe", - "38": "name_item", - "39": "resource_pack_receive", - "40": "advancement_tab", - "41": "select_trade", - "42": "set_beacon_effect", - "43": "held_item_slot", - "44": "update_command_block", - "45": "update_command_block_minecart", - "46": "set_creative_slot", - "47": "update_jigsaw_block", - "48": "update_structure_block", - "49": "update_sign", - "50": "arm_animation", - "51": "spectate", - "52": "block_place", - "53": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "chunk_batch_received", + "0x08": "client_command", + "0x09": "settings", + "0x0a": "tab_complete", + "0x0b": "configuration_acknowledged", + "0x0c": "enchant_item", + "0x0d": "window_click", + "0x0e": "close_window", + "0x0f": "custom_payload", + "0x10": "edit_book", + "0x11": "query_entity_nbt", + "0x12": "use_entity", + "0x13": "generate_structure", + "0x14": "keep_alive", + "0x15": "lock_difficulty", + "0x16": "position", + "0x17": "position_look", + "0x18": "look", + "0x19": "flying", + "0x1a": "vehicle_move", + "0x1b": "steer_boat", + "0x1c": "pick_item", + "0x1d": "ping_request", + "0x1e": "craft_recipe_request", + "0x1f": "abilities", + "0x20": "block_dig", + "0x21": "entity_action", + "0x22": "steer_vehicle", + "0x23": "pong", + "0x24": "recipe_book", + "0x25": "displayed_recipe", + "0x26": "name_item", + "0x27": "resource_pack_receive", + "0x28": "advancement_tab", + "0x29": "select_trade", + "0x2a": "set_beacon_effect", + "0x2b": "held_item_slot", + "0x2c": "update_command_block", + "0x2d": "update_command_block_minecart", + "0x2e": "set_creative_slot", + "0x2f": "update_jigsaw_block", + "0x30": "update_structure_block", + "0x31": "update_sign", + "0x32": "arm_animation", + "0x33": "spectate", + "0x34": "block_place", + "0x35": "use_item" } } ] diff --git a/data/pc/1.20.3/protocol.json b/data/pc/1.20.3/protocol.json index f90a2cd36..02b4ad63e 100644 --- a/data/pc/1.20.3/protocol.json +++ b/data/pc/1.20.3/protocol.json @@ -1323,8 +1323,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1379,8 +1379,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1428,8 +1428,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1570,11 +1570,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1668,10 +1668,10 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response", - "3": "login_acknowledged" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response", + "0x03": "login_acknowledged" } } ] @@ -1845,16 +1845,16 @@ { "type": "varint", "mappings": { - "0": "custom_payload", - "1": "disconnect", - "2": "finish_configuration", - "3": "keep_alive", - "4": "ping", - "5": "registry_data", - "6": "remove_resource_pack", - "7": "add_resource_pack", - "8": "feature_flags", - "9": "tags" + "0x00": "custom_payload", + "0x01": "disconnect", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "ping", + "0x05": "registry_data", + "0x06": "remove_resource_pack", + "0x07": "add_resource_pack", + "0x08": "feature_flags", + "0x09": "tags" } } ] @@ -1982,12 +1982,12 @@ { "type": "varint", "mappings": { - "0": "settings", - "1": "custom_payload", - "2": "finish_configuration", - "3": "keep_alive", - "4": "pong", - "5": "resource_pack_receive" + "0x00": "settings", + "0x01": "custom_payload", + "0x02": "finish_configuration", + "0x03": "keep_alive", + "0x04": "pong", + "0x05": "resource_pack_receive" } } ] @@ -5869,123 +5869,123 @@ { "type": "varint", "mappings": { - "0": "bundle_delimiter", - "1": "spawn_entity", - "2": "spawn_entity_experience_orb", - "3": "animation", - "4": "statistics", - "5": "acknowledge_player_digging", - "6": "block_break_animation", - "7": "tile_entity_data", - "8": "block_action", - "9": "block_change", - "10": "boss_bar", - "11": "difficulty", - "12": "chunk_batch_finished", - "13": "chunk_batch_start", - "14": "chunk_biomes", - "15": "clear_titles", - "16": "tab_complete", - "17": "declare_commands", - "18": "close_window", - "19": "window_items", - "20": "craft_progress_bar", - "21": "set_slot", - "22": "set_cooldown", - "23": "chat_suggestions", - "24": "custom_payload", - "25": "damage_event", - "26": "hide_message", - "27": "kick_disconnect", - "28": "profileless_chat", - "29": "entity_status", - "30": "explosion", - "31": "unload_chunk", - "32": "game_state_change", - "33": "open_horse_window", - "34": "hurt_animation", - "35": "initialize_world_border", - "36": "keep_alive", - "37": "map_chunk", - "38": "world_event", - "39": "world_particles", - "40": "update_light", - "41": "login", - "42": "map", - "43": "trade_list", - "44": "rel_entity_move", - "45": "entity_move_look", - "46": "entity_look", - "47": "vehicle_move", - "48": "open_book", - "49": "open_window", - "50": "open_sign_entity", - "51": "ping", - "52": "ping_response", - "53": "craft_recipe_response", - "54": "abilities", - "55": "player_chat", - "56": "end_combat_event", - "57": "enter_combat_event", - "58": "death_combat_event", - "59": "player_remove", - "60": "player_info", - "61": "face_player", - "62": "position", - "63": "unlock_recipes", - "64": "entity_destroy", - "65": "remove_entity_effect", - "66": "reset_score", - "67": "remove_resource_pack", - "68": "add_resource_pack", - "69": "respawn", - "70": "entity_head_rotation", - "71": "multi_block_change", - "72": "select_advancement_tab", - "73": "server_data", - "74": "action_bar", - "75": "world_border_center", - "76": "world_border_lerp_size", - "77": "world_border_size", - "78": "world_border_warning_delay", - "79": "world_border_warning_reach", - "80": "camera", - "81": "held_item_slot", - "82": "update_view_position", - "83": "update_view_distance", - "84": "spawn_position", - "85": "scoreboard_display_objective", - "86": "entity_metadata", - "87": "attach_entity", - "88": "entity_velocity", - "89": "entity_equipment", - "90": "experience", - "91": "update_health", - "92": "scoreboard_objective", - "93": "set_passengers", - "94": "teams", - "95": "scoreboard_score", - "96": "simulation_distance", - "97": "set_title_subtitle", - "98": "update_time", - "99": "set_title_text", - "100": "set_title_time", - "101": "entity_sound_effect", - "102": "sound_effect", - "103": "start_configuration", - "104": "stop_sound", - "105": "system_chat", - "106": "playerlist_header", - "107": "nbt_query_response", - "108": "collect", - "109": "entity_teleport", - "110": "set_ticking_state", - "111": "step_tick", - "112": "advancements", - "113": "entity_update_attributes", - "114": "entity_effect", - "115": "declare_recipes", - "116": "tags" + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "animation", + "0x04": "statistics", + "0x05": "acknowledge_player_digging", + "0x06": "block_break_animation", + "0x07": "tile_entity_data", + "0x08": "block_action", + "0x09": "block_change", + "0x0a": "boss_bar", + "0x0b": "difficulty", + "0x0c": "chunk_batch_finished", + "0x0d": "chunk_batch_start", + "0x0e": "chunk_biomes", + "0x0f": "clear_titles", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "close_window", + "0x13": "window_items", + "0x14": "craft_progress_bar", + "0x15": "set_slot", + "0x16": "set_cooldown", + "0x17": "chat_suggestions", + "0x18": "custom_payload", + "0x19": "damage_event", + "0x1a": "hide_message", + "0x1b": "kick_disconnect", + "0x1c": "profileless_chat", + "0x1d": "entity_status", + "0x1e": "explosion", + "0x1f": "unload_chunk", + "0x20": "game_state_change", + "0x21": "open_horse_window", + "0x22": "hurt_animation", + "0x23": "initialize_world_border", + "0x24": "keep_alive", + "0x25": "map_chunk", + "0x26": "world_event", + "0x27": "world_particles", + "0x28": "update_light", + "0x29": "login", + "0x2a": "map", + "0x2b": "trade_list", + "0x2c": "rel_entity_move", + "0x2d": "entity_move_look", + "0x2e": "entity_look", + "0x2f": "vehicle_move", + "0x30": "open_book", + "0x31": "open_window", + "0x32": "open_sign_entity", + "0x33": "ping", + "0x34": "ping_response", + "0x35": "craft_recipe_response", + "0x36": "abilities", + "0x37": "player_chat", + "0x38": "end_combat_event", + "0x39": "enter_combat_event", + "0x3a": "death_combat_event", + "0x3b": "player_remove", + "0x3c": "player_info", + "0x3d": "face_player", + "0x3e": "position", + "0x3f": "unlock_recipes", + "0x40": "entity_destroy", + "0x41": "remove_entity_effect", + "0x42": "reset_score", + "0x43": "remove_resource_pack", + "0x44": "add_resource_pack", + "0x45": "respawn", + "0x46": "entity_head_rotation", + "0x47": "multi_block_change", + "0x48": "select_advancement_tab", + "0x49": "server_data", + "0x4a": "action_bar", + "0x4b": "world_border_center", + "0x4c": "world_border_lerp_size", + "0x4d": "world_border_size", + "0x4e": "world_border_warning_delay", + "0x4f": "world_border_warning_reach", + "0x50": "camera", + "0x51": "held_item_slot", + "0x52": "update_view_position", + "0x53": "update_view_distance", + "0x54": "spawn_position", + "0x55": "scoreboard_display_objective", + "0x56": "entity_metadata", + "0x57": "attach_entity", + "0x58": "entity_velocity", + "0x59": "entity_equipment", + "0x5a": "experience", + "0x5b": "update_health", + "0x5c": "scoreboard_objective", + "0x5d": "set_passengers", + "0x5e": "teams", + "0x5f": "scoreboard_score", + "0x60": "simulation_distance", + "0x61": "set_title_subtitle", + "0x62": "update_time", + "0x63": "set_title_text", + "0x64": "set_title_time", + "0x65": "entity_sound_effect", + "0x66": "sound_effect", + "0x67": "start_configuration", + "0x68": "stop_sound", + "0x69": "system_chat", + "0x6a": "playerlist_header", + "0x6b": "nbt_query_response", + "0x6c": "collect", + "0x6d": "entity_teleport", + "0x6e": "set_ticking_state", + "0x6f": "step_tick", + "0x70": "advancements", + "0x71": "entity_update_attributes", + "0x72": "entity_effect", + "0x73": "declare_recipes", + "0x74": "tags" } } ] @@ -7208,61 +7208,61 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "message_acknowledgement", - "4": "chat_command", - "5": "chat_message", - "6": "chat_session_update", - "7": "chunk_batch_received", - "8": "client_command", - "9": "settings", - "10": "tab_complete", - "11": "configuration_acknowledged", - "12": "enchant_item", - "13": "window_click", - "14": "close_window", - "15": "set_slot_state", - "16": "custom_payload", - "17": "edit_book", - "18": "query_entity_nbt", - "19": "use_entity", - "20": "generate_structure", - "21": "keep_alive", - "22": "lock_difficulty", - "23": "position", - "24": "position_look", - "25": "look", - "26": "flying", - "27": "vehicle_move", - "28": "steer_boat", - "29": "pick_item", - "30": "ping_request", - "31": "craft_recipe_request", - "32": "abilities", - "33": "block_dig", - "34": "entity_action", - "35": "steer_vehicle", - "36": "pong", - "37": "recipe_book", - "38": "displayed_recipe", - "39": "name_item", - "40": "resource_pack_receive", - "41": "advancement_tab", - "42": "select_trade", - "43": "set_beacon_effect", - "44": "held_item_slot", - "45": "update_command_block", - "46": "update_command_block_minecart", - "47": "set_creative_slot", - "48": "update_jigsaw_block", - "49": "update_structure_block", - "50": "update_sign", - "51": "arm_animation", - "52": "spectate", - "53": "block_place", - "54": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "chunk_batch_received", + "0x08": "client_command", + "0x09": "settings", + "0x0a": "tab_complete", + "0x0b": "configuration_acknowledged", + "0x0c": "enchant_item", + "0x0d": "window_click", + "0x0e": "close_window", + "0x0f": "set_slot_state", + "0x10": "custom_payload", + "0x11": "edit_book", + "0x12": "query_entity_nbt", + "0x13": "use_entity", + "0x14": "generate_structure", + "0x15": "keep_alive", + "0x16": "lock_difficulty", + "0x17": "position", + "0x18": "position_look", + "0x19": "look", + "0x1a": "flying", + "0x1b": "vehicle_move", + "0x1c": "steer_boat", + "0x1d": "pick_item", + "0x1e": "ping_request", + "0x1f": "craft_recipe_request", + "0x20": "abilities", + "0x21": "block_dig", + "0x22": "entity_action", + "0x23": "steer_vehicle", + "0x24": "pong", + "0x25": "recipe_book", + "0x26": "displayed_recipe", + "0x27": "name_item", + "0x28": "resource_pack_receive", + "0x29": "advancement_tab", + "0x2a": "select_trade", + "0x2b": "set_beacon_effect", + "0x2c": "held_item_slot", + "0x2d": "update_command_block", + "0x2e": "update_command_block_minecart", + "0x2f": "set_creative_slot", + "0x30": "update_jigsaw_block", + "0x31": "update_structure_block", + "0x32": "update_sign", + "0x33": "arm_animation", + "0x34": "spectate", + "0x35": "block_place", + "0x36": "use_item" } } ] diff --git a/data/pc/1.20/protocol.json b/data/pc/1.20/protocol.json index a4de0ddc4..ec8a5b6f4 100644 --- a/data/pc/1.20/protocol.json +++ b/data/pc/1.20/protocol.json @@ -1322,8 +1322,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -1378,8 +1378,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -1427,8 +1427,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1569,11 +1569,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1666,9 +1666,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -5445,117 +5445,117 @@ { "type": "varint", "mappings": { - "0": "bundle_delimiter", - "1": "spawn_entity", - "2": "spawn_entity_experience_orb", - "3": "named_entity_spawn", - "4": "animation", - "5": "statistics", - "6": "acknowledge_player_digging", - "7": "block_break_animation", - "8": "tile_entity_data", - "9": "block_action", - "10": "block_change", - "11": "boss_bar", - "12": "difficulty", - "13": "chunk_biomes", - "14": "clear_titles", - "15": "tab_complete", - "16": "declare_commands", - "17": "close_window", - "18": "window_items", - "19": "craft_progress_bar", - "20": "set_slot", - "21": "set_cooldown", - "22": "chat_suggestions", - "23": "custom_payload", - "24": "damage_event", - "25": "hide_message", - "26": "kick_disconnect", - "27": "profileless_chat", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "open_horse_window", - "33": "hurt_animation", - "34": "initialize_world_border", - "35": "keep_alive", - "36": "map_chunk", - "37": "world_event", - "38": "world_particles", - "39": "update_light", - "40": "login", - "41": "map", - "42": "trade_list", - "43": "rel_entity_move", - "44": "entity_move_look", - "45": "entity_look", - "46": "vehicle_move", - "47": "open_book", - "48": "open_window", - "49": "open_sign_entity", - "50": "ping", - "51": "craft_recipe_response", - "52": "abilities", - "53": "player_chat", - "54": "end_combat_event", - "55": "enter_combat_event", - "56": "death_combat_event", - "57": "player_remove", - "58": "player_info", - "59": "face_player", - "60": "position", - "61": "unlock_recipes", - "62": "entity_destroy", - "63": "remove_entity_effect", - "64": "resource_pack_send", - "65": "respawn", - "66": "entity_head_rotation", - "67": "multi_block_change", - "68": "select_advancement_tab", - "69": "server_data", - "70": "action_bar", - "71": "world_border_center", - "72": "world_border_lerp_size", - "73": "world_border_size", - "74": "world_border_warning_delay", - "75": "world_border_warning_reach", - "76": "camera", - "77": "held_item_slot", - "78": "update_view_position", - "79": "update_view_distance", - "80": "spawn_position", - "81": "scoreboard_display_objective", - "82": "entity_metadata", - "83": "attach_entity", - "84": "entity_velocity", - "85": "entity_equipment", - "86": "experience", - "87": "update_health", - "88": "scoreboard_objective", - "89": "set_passengers", - "90": "teams", - "91": "scoreboard_score", - "92": "simulation_distance", - "93": "set_title_subtitle", - "94": "update_time", - "95": "set_title_text", - "96": "set_title_time", - "97": "entity_sound_effect", - "98": "sound_effect", - "99": "stop_sound", - "100": "system_chat", - "101": "playerlist_header", - "102": "nbt_query_response", - "103": "collect", - "104": "entity_teleport", - "105": "advancements", - "106": "entity_update_attributes", - "107": "feature_flags", - "108": "entity_effect", - "109": "declare_recipes", - "110": "tags" + "0x00": "bundle_delimiter", + "0x01": "spawn_entity", + "0x02": "spawn_entity_experience_orb", + "0x03": "named_entity_spawn", + "0x04": "animation", + "0x05": "statistics", + "0x06": "acknowledge_player_digging", + "0x07": "block_break_animation", + "0x08": "tile_entity_data", + "0x09": "block_action", + "0x0a": "block_change", + "0x0b": "boss_bar", + "0x0c": "difficulty", + "0x0d": "chunk_biomes", + "0x0e": "clear_titles", + "0x0f": "tab_complete", + "0x10": "declare_commands", + "0x11": "close_window", + "0x12": "window_items", + "0x13": "craft_progress_bar", + "0x14": "set_slot", + "0x15": "set_cooldown", + "0x16": "chat_suggestions", + "0x17": "custom_payload", + "0x18": "damage_event", + "0x19": "hide_message", + "0x1a": "kick_disconnect", + "0x1b": "profileless_chat", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "hurt_animation", + "0x22": "initialize_world_border", + "0x23": "keep_alive", + "0x24": "map_chunk", + "0x25": "world_event", + "0x26": "world_particles", + "0x27": "update_light", + "0x28": "login", + "0x29": "map", + "0x2a": "trade_list", + "0x2b": "rel_entity_move", + "0x2c": "entity_move_look", + "0x2d": "entity_look", + "0x2e": "vehicle_move", + "0x2f": "open_book", + "0x30": "open_window", + "0x31": "open_sign_entity", + "0x32": "ping", + "0x33": "craft_recipe_response", + "0x34": "abilities", + "0x35": "player_chat", + "0x36": "end_combat_event", + "0x37": "enter_combat_event", + "0x38": "death_combat_event", + "0x39": "player_remove", + "0x3a": "player_info", + "0x3b": "face_player", + "0x3c": "position", + "0x3d": "unlock_recipes", + "0x3e": "entity_destroy", + "0x3f": "remove_entity_effect", + "0x40": "resource_pack_send", + "0x41": "respawn", + "0x42": "entity_head_rotation", + "0x43": "multi_block_change", + "0x44": "select_advancement_tab", + "0x45": "server_data", + "0x46": "action_bar", + "0x47": "world_border_center", + "0x48": "world_border_lerp_size", + "0x49": "world_border_size", + "0x4a": "world_border_warning_delay", + "0x4b": "world_border_warning_reach", + "0x4c": "camera", + "0x4d": "held_item_slot", + "0x4e": "update_view_position", + "0x4f": "update_view_distance", + "0x50": "spawn_position", + "0x51": "scoreboard_display_objective", + "0x52": "entity_metadata", + "0x53": "attach_entity", + "0x54": "entity_velocity", + "0x55": "entity_equipment", + "0x56": "experience", + "0x57": "update_health", + "0x58": "scoreboard_objective", + "0x59": "set_passengers", + "0x5a": "teams", + "0x5b": "scoreboard_score", + "0x5c": "simulation_distance", + "0x5d": "set_title_subtitle", + "0x5e": "update_time", + "0x5f": "set_title_text", + "0x60": "set_title_time", + "0x61": "entity_sound_effect", + "0x62": "sound_effect", + "0x63": "stop_sound", + "0x64": "system_chat", + "0x65": "playerlist_header", + "0x66": "nbt_query_response", + "0x67": "collect", + "0x68": "entity_teleport", + "0x69": "advancements", + "0x6a": "entity_update_attributes", + "0x6b": "feature_flags", + "0x6c": "entity_effect", + "0x6d": "declare_recipes", + "0x6e": "tags" } } ] @@ -6721,57 +6721,57 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "message_acknowledgement", - "4": "chat_command", - "5": "chat_message", - "6": "chat_session_update", - "7": "client_command", - "8": "settings", - "9": "tab_complete", - "10": "enchant_item", - "11": "window_click", - "12": "close_window", - "13": "custom_payload", - "14": "edit_book", - "15": "query_entity_nbt", - "16": "use_entity", - "17": "generate_structure", - "18": "keep_alive", - "19": "lock_difficulty", - "20": "position", - "21": "position_look", - "22": "look", - "23": "flying", - "24": "vehicle_move", - "25": "steer_boat", - "26": "pick_item", - "27": "craft_recipe_request", - "28": "abilities", - "29": "block_dig", - "30": "entity_action", - "31": "steer_vehicle", - "32": "pong", - "33": "recipe_book", - "34": "displayed_recipe", - "35": "name_item", - "36": "resource_pack_receive", - "37": "advancement_tab", - "38": "select_trade", - "39": "set_beacon_effect", - "40": "held_item_slot", - "41": "update_command_block", - "42": "update_command_block_minecart", - "43": "set_creative_slot", - "44": "update_jigsaw_block", - "45": "update_structure_block", - "46": "update_sign", - "47": "arm_animation", - "48": "spectate", - "49": "block_place", - "50": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "message_acknowledgement", + "0x04": "chat_command", + "0x05": "chat_message", + "0x06": "chat_session_update", + "0x07": "client_command", + "0x08": "settings", + "0x09": "tab_complete", + "0x0a": "enchant_item", + "0x0b": "window_click", + "0x0c": "close_window", + "0x0d": "custom_payload", + "0x0e": "edit_book", + "0x0f": "query_entity_nbt", + "0x10": "use_entity", + "0x11": "generate_structure", + "0x12": "keep_alive", + "0x13": "lock_difficulty", + "0x14": "position", + "0x15": "position_look", + "0x16": "look", + "0x17": "flying", + "0x18": "vehicle_move", + "0x19": "steer_boat", + "0x1a": "pick_item", + "0x1b": "craft_recipe_request", + "0x1c": "abilities", + "0x1d": "block_dig", + "0x1e": "entity_action", + "0x1f": "steer_vehicle", + "0x20": "pong", + "0x21": "recipe_book", + "0x22": "displayed_recipe", + "0x23": "name_item", + "0x24": "resource_pack_receive", + "0x25": "advancement_tab", + "0x26": "select_trade", + "0x27": "set_beacon_effect", + "0x28": "held_item_slot", + "0x29": "update_command_block", + "0x2a": "update_command_block_minecart", + "0x2b": "set_creative_slot", + "0x2c": "update_jigsaw_block", + "0x2d": "update_structure_block", + "0x2e": "update_sign", + "0x2f": "arm_animation", + "0x30": "spectate", + "0x31": "block_place", + "0x32": "use_item" } } ] diff --git a/data/pc/1.7/protocol.json b/data/pc/1.7/protocol.json index aa32edc1c..9357f5373 100644 --- a/data/pc/1.7/protocol.json +++ b/data/pc/1.7/protocol.json @@ -278,8 +278,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -334,8 +334,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -383,8 +383,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -470,9 +470,9 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success" } } ] @@ -540,8 +540,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2224,71 +2224,71 @@ { "type": "varint", "mappings": { - "0": "keep_alive", - "1": "login", - "2": "chat", - "3": "update_time", - "4": "entity_equipment", - "5": "spawn_position", - "6": "update_health", - "7": "respawn", - "8": "position", - "9": "held_item_slot", - "10": "bed", - "11": "animation", - "12": "named_entity_spawn", - "13": "collect", - "14": "spawn_entity", - "15": "spawn_entity_living", - "16": "spawn_entity_painting", - "17": "spawn_entity_experience_orb", - "18": "entity_velocity", - "19": "entity_destroy", - "20": "entity", - "21": "rel_entity_move", - "22": "entity_look", - "23": "entity_move_look", - "24": "entity_teleport", - "25": "entity_head_rotation", - "26": "entity_status", - "27": "attach_entity", - "28": "entity_metadata", - "29": "entity_effect", - "30": "remove_entity_effect", - "31": "experience", - "32": "update_attributes", - "33": "map_chunk", - "34": "multi_block_change", - "35": "block_change", - "36": "block_action", - "37": "block_break_animation", - "38": "map_chunk_bulk", - "39": "explosion", - "40": "world_event", - "41": "named_sound_effect", - "42": "world_particles", - "43": "game_state_change", - "44": "spawn_entity_weather", - "45": "open_window", - "46": "close_window", - "47": "set_slot", - "48": "window_items", - "49": "craft_progress_bar", - "50": "transaction", - "51": "update_sign", - "52": "map", - "53": "tile_entity_data", - "54": "open_sign_entity", - "55": "statistics", - "56": "player_info", - "57": "abilities", - "58": "tab_complete", - "59": "scoreboard_objective", - "60": "scoreboard_score", - "61": "scoreboard_display_objective", - "62": "scoreboard_team", - "63": "custom_payload", - "64": "kick_disconnect" + "0x00": "keep_alive", + "0x01": "login", + "0x02": "chat", + "0x03": "update_time", + "0x04": "entity_equipment", + "0x05": "spawn_position", + "0x06": "update_health", + "0x07": "respawn", + "0x08": "position", + "0x09": "held_item_slot", + "0x0a": "bed", + "0x0b": "animation", + "0x0c": "named_entity_spawn", + "0x0d": "collect", + "0x0e": "spawn_entity", + "0x0f": "spawn_entity_living", + "0x10": "spawn_entity_painting", + "0x11": "spawn_entity_experience_orb", + "0x12": "entity_velocity", + "0x13": "entity_destroy", + "0x14": "entity", + "0x15": "rel_entity_move", + "0x16": "entity_look", + "0x17": "entity_move_look", + "0x18": "entity_teleport", + "0x19": "entity_head_rotation", + "0x1a": "entity_status", + "0x1b": "attach_entity", + "0x1c": "entity_metadata", + "0x1d": "entity_effect", + "0x1e": "remove_entity_effect", + "0x1f": "experience", + "0x20": "update_attributes", + "0x21": "map_chunk", + "0x22": "multi_block_change", + "0x23": "block_change", + "0x24": "block_action", + "0x25": "block_break_animation", + "0x26": "map_chunk_bulk", + "0x27": "explosion", + "0x28": "world_event", + "0x29": "named_sound_effect", + "0x2a": "world_particles", + "0x2b": "game_state_change", + "0x2c": "spawn_entity_weather", + "0x2d": "open_window", + "0x2e": "close_window", + "0x2f": "set_slot", + "0x30": "window_items", + "0x31": "craft_progress_bar", + "0x32": "transaction", + "0x33": "update_sign", + "0x34": "map", + "0x35": "tile_entity_data", + "0x36": "open_sign_entity", + "0x37": "statistics", + "0x38": "player_info", + "0x39": "abilities", + "0x3a": "tab_complete", + "0x3b": "scoreboard_objective", + "0x3c": "scoreboard_score", + "0x3d": "scoreboard_display_objective", + "0x3e": "scoreboard_team", + "0x3f": "custom_payload", + "0x40": "kick_disconnect" } } ] @@ -2834,30 +2834,30 @@ { "type": "varint", "mappings": { - "0": "keep_alive", - "1": "chat", - "2": "use_entity", - "3": "flying", - "4": "position", - "5": "look", - "6": "position_look", - "7": "block_dig", - "8": "block_place", - "9": "held_item_slot", - "10": "arm_animation", - "11": "entity_action", - "12": "steer_vehicle", - "13": "close_window", - "14": "window_click", - "15": "transaction", - "16": "set_creative_slot", - "17": "enchant_item", - "18": "update_sign", - "19": "abilities", - "20": "tab_complete", - "21": "settings", - "22": "client_command", - "23": "custom_payload" + "0x00": "keep_alive", + "0x01": "chat", + "0x02": "use_entity", + "0x03": "flying", + "0x04": "position", + "0x05": "look", + "0x06": "position_look", + "0x07": "block_dig", + "0x08": "block_place", + "0x09": "held_item_slot", + "0x0a": "arm_animation", + "0x0b": "entity_action", + "0x0c": "steer_vehicle", + "0x0d": "close_window", + "0x0e": "window_click", + "0x0f": "transaction", + "0x10": "set_creative_slot", + "0x11": "enchant_item", + "0x12": "update_sign", + "0x13": "abilities", + "0x14": "tab_complete", + "0x15": "settings", + "0x16": "client_command", + "0x17": "custom_payload" } } ] diff --git a/data/pc/1.8/protocol.json b/data/pc/1.8/protocol.json index d1609be76..bd09fd7f6 100644 --- a/data/pc/1.8/protocol.json +++ b/data/pc/1.8/protocol.json @@ -248,8 +248,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -304,8 +304,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -353,8 +353,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -449,10 +449,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -521,8 +521,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2709,80 +2709,80 @@ { "type": "varint", "mappings": { - "0": "keep_alive", - "1": "login", - "2": "chat", - "3": "update_time", - "4": "entity_equipment", - "5": "spawn_position", - "6": "update_health", - "7": "respawn", - "8": "position", - "9": "held_item_slot", - "10": "bed", - "11": "animation", - "12": "named_entity_spawn", - "13": "collect", - "14": "spawn_entity", - "15": "spawn_entity_living", - "16": "spawn_entity_painting", - "17": "spawn_entity_experience_orb", - "18": "entity_velocity", - "19": "entity_destroy", - "20": "entity", - "21": "rel_entity_move", - "22": "entity_look", - "23": "entity_move_look", - "24": "entity_teleport", - "25": "entity_head_rotation", - "26": "entity_status", - "27": "attach_entity", - "28": "entity_metadata", - "29": "entity_effect", - "30": "remove_entity_effect", - "31": "experience", - "32": "update_attributes", - "33": "map_chunk", - "34": "multi_block_change", - "35": "block_change", - "36": "block_action", - "37": "block_break_animation", - "38": "map_chunk_bulk", - "39": "explosion", - "40": "world_event", - "41": "named_sound_effect", - "42": "world_particles", - "43": "game_state_change", - "44": "spawn_entity_weather", - "45": "open_window", - "46": "close_window", - "47": "set_slot", - "48": "window_items", - "49": "craft_progress_bar", - "50": "transaction", - "51": "update_sign", - "52": "map", - "53": "tile_entity_data", - "54": "open_sign_entity", - "55": "statistics", - "56": "player_info", - "57": "abilities", - "58": "tab_complete", - "59": "scoreboard_objective", - "60": "scoreboard_score", - "61": "scoreboard_display_objective", - "62": "scoreboard_team", - "63": "custom_payload", - "64": "kick_disconnect", - "65": "difficulty", - "66": "combat_event", - "67": "camera", - "68": "world_border", - "69": "title", - "70": "set_compression", - "71": "playerlist_header", - "72": "resource_pack_send", - "73": "update_entity_nbt" + "0x00": "keep_alive", + "0x01": "login", + "0x02": "chat", + "0x03": "update_time", + "0x04": "entity_equipment", + "0x05": "spawn_position", + "0x06": "update_health", + "0x07": "respawn", + "0x08": "position", + "0x09": "held_item_slot", + "0x0a": "bed", + "0x0b": "animation", + "0x0c": "named_entity_spawn", + "0x0d": "collect", + "0x0e": "spawn_entity", + "0x0f": "spawn_entity_living", + "0x10": "spawn_entity_painting", + "0x11": "spawn_entity_experience_orb", + "0x12": "entity_velocity", + "0x13": "entity_destroy", + "0x14": "entity", + "0x15": "rel_entity_move", + "0x16": "entity_look", + "0x17": "entity_move_look", + "0x18": "entity_teleport", + "0x19": "entity_head_rotation", + "0x1a": "entity_status", + "0x1b": "attach_entity", + "0x1c": "entity_metadata", + "0x1d": "entity_effect", + "0x1e": "remove_entity_effect", + "0x1f": "experience", + "0x20": "update_attributes", + "0x21": "map_chunk", + "0x22": "multi_block_change", + "0x23": "block_change", + "0x24": "block_action", + "0x25": "block_break_animation", + "0x26": "map_chunk_bulk", + "0x27": "explosion", + "0x28": "world_event", + "0x29": "named_sound_effect", + "0x2a": "world_particles", + "0x2b": "game_state_change", + "0x2c": "spawn_entity_weather", + "0x2d": "open_window", + "0x2e": "close_window", + "0x2f": "set_slot", + "0x30": "window_items", + "0x31": "craft_progress_bar", + "0x32": "transaction", + "0x33": "update_sign", + "0x34": "map", + "0x35": "tile_entity_data", + "0x36": "open_sign_entity", + "0x37": "statistics", + "0x38": "player_info", + "0x39": "abilities", + "0x3a": "tab_complete", + "0x3b": "scoreboard_objective", + "0x3c": "scoreboard_score", + "0x3d": "scoreboard_display_objective", + "0x3e": "scoreboard_team", + "0x3f": "custom_payload", + "0x40": "kick_disconnect", + "0x41": "difficulty", + "0x42": "combat_event", + "0x43": "camera", + "0x44": "world_border", + "0x45": "title", + "0x46": "set_compression", + "0x47": "playerlist_header", + "0x48": "resource_pack_send", + "0x49": "update_entity_nbt" } } ] @@ -3336,32 +3336,32 @@ { "type": "varint", "mappings": { - "0": "keep_alive", - "1": "chat", - "2": "use_entity", - "3": "flying", - "4": "position", - "5": "look", - "6": "position_look", - "7": "block_dig", - "8": "block_place", - "9": "held_item_slot", - "10": "arm_animation", - "11": "entity_action", - "12": "steer_vehicle", - "13": "close_window", - "14": "window_click", - "15": "transaction", - "16": "set_creative_slot", - "17": "enchant_item", - "18": "update_sign", - "19": "abilities", - "20": "tab_complete", - "21": "settings", - "22": "client_command", - "23": "custom_payload", - "24": "spectate", - "25": "resource_pack_receive" + "0x00": "keep_alive", + "0x01": "chat", + "0x02": "use_entity", + "0x03": "flying", + "0x04": "position", + "0x05": "look", + "0x06": "position_look", + "0x07": "block_dig", + "0x08": "block_place", + "0x09": "held_item_slot", + "0x0a": "arm_animation", + "0x0b": "entity_action", + "0x0c": "steer_vehicle", + "0x0d": "close_window", + "0x0e": "window_click", + "0x0f": "transaction", + "0x10": "set_creative_slot", + "0x11": "enchant_item", + "0x12": "update_sign", + "0x13": "abilities", + "0x14": "tab_complete", + "0x15": "settings", + "0x16": "client_command", + "0x17": "custom_payload", + "0x18": "spectate", + "0x19": "resource_pack_receive" } } ] diff --git a/data/pc/1.9.1-pre2/protocol.json b/data/pc/1.9.1-pre2/protocol.json index 2f25eee6d..4e3952bfb 100644 --- a/data/pc/1.9.1-pre2/protocol.json +++ b/data/pc/1.9.1-pre2/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2822,83 +2822,83 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "update_sign", - "71": "sound_effect", - "72": "playerlist_header", - "73": "collect", - "74": "entity_teleport", - "75": "entity_update_attributes", - "76": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "update_sign", + "0x47": "sound_effect", + "0x48": "playerlist_header", + "0x49": "collect", + "0x4a": "entity_teleport", + "0x4b": "entity_update_attributes", + "0x4c": "entity_effect" } } ] @@ -3538,36 +3538,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/1.9.2/protocol.json b/data/pc/1.9.2/protocol.json index 2f25eee6d..4e3952bfb 100644 --- a/data/pc/1.9.2/protocol.json +++ b/data/pc/1.9.2/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2822,83 +2822,83 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "update_sign", - "71": "sound_effect", - "72": "playerlist_header", - "73": "collect", - "74": "entity_teleport", - "75": "entity_update_attributes", - "76": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "update_sign", + "0x47": "sound_effect", + "0x48": "playerlist_header", + "0x49": "collect", + "0x4a": "entity_teleport", + "0x4b": "entity_update_attributes", + "0x4c": "entity_effect" } } ] @@ -3538,36 +3538,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/1.9.4/protocol.json b/data/pc/1.9.4/protocol.json index 023f6d47b..6afca6346 100644 --- a/data/pc/1.9.4/protocol.json +++ b/data/pc/1.9.4/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2807,82 +2807,82 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "sound_effect", - "71": "playerlist_header", - "72": "collect", - "73": "entity_teleport", - "74": "entity_update_attributes", - "75": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" } } ] @@ -3521,36 +3521,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/1.9/protocol.json b/data/pc/1.9/protocol.json index 8a07fa2a0..a9037a859 100644 --- a/data/pc/1.9/protocol.json +++ b/data/pc/1.9/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2822,83 +2822,83 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "update_sign", - "71": "sound_effect", - "72": "playerlist_header", - "73": "collect", - "74": "entity_teleport", - "75": "entity_update_attributes", - "76": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "update_sign", + "0x47": "sound_effect", + "0x48": "playerlist_header", + "0x49": "collect", + "0x4a": "entity_teleport", + "0x4b": "entity_update_attributes", + "0x4c": "entity_effect" } } ] @@ -3538,36 +3538,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/15w40b/protocol.json b/data/pc/15w40b/protocol.json index adfe4c904..bc3a118b5 100644 --- a/data/pc/15w40b/protocol.json +++ b/data/pc/15w40b/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2746,81 +2746,81 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "kick_disconnect", - "26": "entity_status", - "27": "explosion", - "28": "unload_chunk", - "29": "set_compression", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "named_sound_effect", - "36": "login", - "37": "map", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "entity", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "scoreboard_team", - "65": "scoreboard_score", - "66": "spawn_position", - "67": "update_time", - "68": "title", - "69": "update_sign", - "70": "playerlist_header", - "71": "collect", - "72": "entity_teleport", - "73": "update_attributes", - "74": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "kick_disconnect", + "0x1a": "entity_status", + "0x1b": "explosion", + "0x1c": "unload_chunk", + "0x1d": "set_compression", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "named_sound_effect", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "scoreboard_team", + "0x41": "scoreboard_score", + "0x42": "spawn_position", + "0x43": "update_time", + "0x44": "title", + "0x45": "update_sign", + "0x46": "playerlist_header", + "0x47": "collect", + "0x48": "entity_teleport", + "0x49": "update_attributes", + "0x4a": "entity_effect" } } ] @@ -3407,33 +3407,33 @@ { "type": "varint", "mappings": { - "0": "tab_complete", - "1": "chat", - "2": "client_command", - "3": "settings", - "4": "transaction", - "5": "enchant_item", - "6": "window_click", - "7": "close_window", - "8": "custom_payload", - "9": "use_entity", - "10": "keep_alive", - "11": "position", - "12": "position_look", - "13": "look", - "14": "flying", - "15": "abilities", - "16": "block_dig", - "17": "entity_action", - "18": "steer_vehicle", - "19": "resource_pack_receive", - "20": "held_item_slot", - "21": "set_creative_slot", - "22": "update_sign", - "23": "arm_animation", - "24": "spectate", - "25": "block_place", - "26": "use_item" + "0x00": "tab_complete", + "0x01": "chat", + "0x02": "client_command", + "0x03": "settings", + "0x04": "transaction", + "0x05": "enchant_item", + "0x06": "window_click", + "0x07": "close_window", + "0x08": "custom_payload", + "0x09": "use_entity", + "0x0a": "keep_alive", + "0x0b": "position", + "0x0c": "position_look", + "0x0d": "look", + "0x0e": "flying", + "0x0f": "abilities", + "0x10": "block_dig", + "0x11": "entity_action", + "0x12": "steer_vehicle", + "0x13": "resource_pack_receive", + "0x14": "held_item_slot", + "0x15": "set_creative_slot", + "0x16": "update_sign", + "0x17": "arm_animation", + "0x18": "spectate", + "0x19": "block_place", + "0x1a": "use_item" } } ] diff --git a/data/pc/16w20a/protocol.json b/data/pc/16w20a/protocol.json index 4234d54b1..2d214a855 100644 --- a/data/pc/16w20a/protocol.json +++ b/data/pc/16w20a/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2807,82 +2807,82 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "sound_effect", - "71": "playerlist_header", - "72": "collect", - "73": "entity_teleport", - "74": "entity_update_attributes", - "75": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" } } ] @@ -3521,36 +3521,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/16w35a/protocol.json b/data/pc/16w35a/protocol.json index 9009cdcaf..b55dd29e3 100644 --- a/data/pc/16w35a/protocol.json +++ b/data/pc/16w35a/protocol.json @@ -241,8 +241,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -297,8 +297,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -346,8 +346,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -442,10 +442,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -514,8 +514,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -2811,82 +2811,82 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "tab_complete", - "15": "chat", - "16": "multi_block_change", - "17": "transaction", - "18": "close_window", - "19": "open_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "keep_alive", - "32": "map_chunk", - "33": "world_event", - "34": "world_particles", - "35": "login", - "36": "map", - "37": "rel_entity_move", - "38": "entity_move_look", - "39": "entity_look", - "40": "entity", - "41": "vehicle_move", - "42": "open_sign_entity", - "43": "abilities", - "44": "combat_event", - "45": "player_info", - "46": "position", - "47": "bed", - "48": "entity_destroy", - "49": "remove_entity_effect", - "50": "resource_pack_send", - "51": "respawn", - "52": "entity_head_rotation", - "53": "world_border", - "54": "camera", - "55": "held_item_slot", - "56": "scoreboard_display_objective", - "57": "entity_metadata", - "58": "attach_entity", - "59": "entity_velocity", - "60": "entity_equipment", - "61": "experience", - "62": "update_health", - "63": "scoreboard_objective", - "64": "set_passengers", - "65": "teams", - "66": "scoreboard_score", - "67": "spawn_position", - "68": "update_time", - "69": "title", - "70": "sound_effect", - "71": "playerlist_header", - "72": "collect", - "73": "entity_teleport", - "74": "entity_update_attributes", - "75": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "tab_complete", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "transaction", + "0x12": "close_window", + "0x13": "open_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "keep_alive", + "0x20": "map_chunk", + "0x21": "world_event", + "0x22": "world_particles", + "0x23": "login", + "0x24": "map", + "0x25": "rel_entity_move", + "0x26": "entity_move_look", + "0x27": "entity_look", + "0x28": "entity", + "0x29": "vehicle_move", + "0x2a": "open_sign_entity", + "0x2b": "abilities", + "0x2c": "combat_event", + "0x2d": "player_info", + "0x2e": "position", + "0x2f": "bed", + "0x30": "entity_destroy", + "0x31": "remove_entity_effect", + "0x32": "resource_pack_send", + "0x33": "respawn", + "0x34": "entity_head_rotation", + "0x35": "world_border", + "0x36": "camera", + "0x37": "held_item_slot", + "0x38": "scoreboard_display_objective", + "0x39": "entity_metadata", + "0x3a": "attach_entity", + "0x3b": "entity_velocity", + "0x3c": "entity_equipment", + "0x3d": "experience", + "0x3e": "update_health", + "0x3f": "scoreboard_objective", + "0x40": "set_passengers", + "0x41": "teams", + "0x42": "scoreboard_score", + "0x43": "spawn_position", + "0x44": "update_time", + "0x45": "title", + "0x46": "sound_effect", + "0x47": "playerlist_header", + "0x48": "collect", + "0x49": "entity_teleport", + "0x4a": "entity_update_attributes", + "0x4b": "entity_effect" } } ] @@ -3521,36 +3521,36 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "tab_complete", - "2": "chat", - "3": "client_command", - "4": "settings", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "position", - "13": "position_look", - "14": "look", - "15": "flying", - "16": "vehicle_move", - "17": "steer_boat", - "18": "abilities", - "19": "block_dig", - "20": "entity_action", - "21": "steer_vehicle", - "22": "resource_pack_receive", - "23": "held_item_slot", - "24": "set_creative_slot", - "25": "update_sign", - "26": "arm_animation", - "27": "spectate", - "28": "block_place", - "29": "use_item" + "0x00": "teleport_confirm", + "0x01": "tab_complete", + "0x02": "chat", + "0x03": "client_command", + "0x04": "settings", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "position", + "0x0d": "position_look", + "0x0e": "look", + "0x0f": "flying", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "abilities", + "0x13": "block_dig", + "0x14": "entity_action", + "0x15": "steer_vehicle", + "0x16": "resource_pack_receive", + "0x17": "held_item_slot", + "0x18": "set_creative_slot", + "0x19": "update_sign", + "0x1a": "arm_animation", + "0x1b": "spectate", + "0x1c": "block_place", + "0x1d": "use_item" } } ] diff --git a/data/pc/17w15a/protocol.json b/data/pc/17w15a/protocol.json index c7b995ce6..d90c457b1 100644 --- a/data/pc/17w15a/protocol.json +++ b/data/pc/17w15a/protocol.json @@ -242,8 +242,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -298,8 +298,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -347,8 +347,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -443,10 +443,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -515,8 +515,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3035,84 +3035,84 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "advancements", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "tab_complete", - "16": "chat", - "17": "multi_block_change", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "login", - "37": "map", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "entity", - "42": "vehicle_move", - "43": "open_sign_entity", - "44": "abilities", - "45": "combat_event", - "46": "player_info", - "47": "position", - "48": "bed", - "49": "unlock_recipes", - "50": "entity_destroy", - "51": "remove_entity_effect", - "52": "resource_pack_send", - "53": "respawn", - "54": "entity_head_rotation", - "55": "world_border", - "56": "camera", - "57": "held_item_slot", - "58": "scoreboard_display_objective", - "59": "entity_metadata", - "60": "attach_entity", - "61": "entity_velocity", - "62": "entity_equipment", - "63": "experience", - "64": "update_health", - "65": "scoreboard_objective", - "66": "set_passengers", - "67": "teams", - "68": "scoreboard_score", - "69": "spawn_position", - "70": "update_time", - "71": "title", - "72": "sound_effect", - "73": "playerlist_header", - "74": "collect", - "75": "entity_teleport", - "76": "entity_update_attributes", - "77": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "advancements", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "tab_complete", + "0x10": "chat", + "0x11": "multi_block_change", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "entity_update_attributes", + "0x4d": "entity_effect" } } ] @@ -3857,38 +3857,38 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "prepare_crafting_grid", - "2": "tab_complete", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "use_entity", - "12": "keep_alive", - "13": "position", - "14": "position_look", - "15": "look", - "16": "flying", - "17": "vehicle_move", - "18": "steer_boat", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "held_item_slot", - "26": "set_creative_slot", - "27": "update_sign", - "28": "arm_animation", - "29": "spectate", - "30": "block_place", - "31": "use_item" + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "flying", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "held_item_slot", + "0x1a": "set_creative_slot", + "0x1b": "update_sign", + "0x1c": "arm_animation", + "0x1d": "spectate", + "0x1e": "block_place", + "0x1f": "use_item" } } ] diff --git a/data/pc/17w18b/protocol.json b/data/pc/17w18b/protocol.json index 0eec5a1fe..15c175ffa 100644 --- a/data/pc/17w18b/protocol.json +++ b/data/pc/17w18b/protocol.json @@ -242,8 +242,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -298,8 +298,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -347,8 +347,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -443,10 +443,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -515,8 +515,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3029,84 +3029,84 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "advancements", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "tab_complete", - "16": "chat", - "17": "multi_block_change", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "login", - "37": "map", - "38": "rel_entity_move", - "39": "entity_move_look", - "40": "entity_look", - "41": "entity", - "42": "vehicle_move", - "43": "open_sign_entity", - "44": "abilities", - "45": "combat_event", - "46": "player_info", - "47": "position", - "48": "bed", - "49": "unlock_recipes", - "50": "entity_destroy", - "51": "remove_entity_effect", - "52": "resource_pack_send", - "53": "respawn", - "54": "entity_head_rotation", - "55": "world_border", - "56": "camera", - "57": "held_item_slot", - "58": "scoreboard_display_objective", - "59": "entity_metadata", - "60": "attach_entity", - "61": "entity_velocity", - "62": "entity_equipment", - "63": "experience", - "64": "update_health", - "65": "scoreboard_objective", - "66": "set_passengers", - "67": "teams", - "68": "scoreboard_score", - "69": "spawn_position", - "70": "update_time", - "71": "title", - "72": "sound_effect", - "73": "playerlist_header", - "74": "collect", - "75": "entity_teleport", - "76": "entity_update_attributes", - "77": "entity_effect" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "advancements", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "tab_complete", + "0x10": "chat", + "0x11": "multi_block_change", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "rel_entity_move", + "0x27": "entity_move_look", + "0x28": "entity_look", + "0x29": "entity", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "abilities", + "0x2d": "combat_event", + "0x2e": "player_info", + "0x2f": "position", + "0x30": "bed", + "0x31": "unlock_recipes", + "0x32": "entity_destroy", + "0x33": "remove_entity_effect", + "0x34": "resource_pack_send", + "0x35": "respawn", + "0x36": "entity_head_rotation", + "0x37": "world_border", + "0x38": "camera", + "0x39": "held_item_slot", + "0x3a": "scoreboard_display_objective", + "0x3b": "entity_metadata", + "0x3c": "attach_entity", + "0x3d": "entity_velocity", + "0x3e": "entity_equipment", + "0x3f": "experience", + "0x40": "update_health", + "0x41": "scoreboard_objective", + "0x42": "set_passengers", + "0x43": "teams", + "0x44": "scoreboard_score", + "0x45": "spawn_position", + "0x46": "update_time", + "0x47": "title", + "0x48": "sound_effect", + "0x49": "playerlist_header", + "0x4a": "collect", + "0x4b": "entity_teleport", + "0x4c": "entity_update_attributes", + "0x4d": "entity_effect" } } ] @@ -3851,38 +3851,38 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "prepare_crafting_grid", - "2": "tab_complete", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "transaction", - "7": "enchant_item", - "8": "window_click", - "9": "close_window", - "10": "custom_payload", - "11": "use_entity", - "12": "keep_alive", - "13": "position", - "14": "position_look", - "15": "look", - "16": "flying", - "17": "vehicle_move", - "18": "steer_boat", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "held_item_slot", - "26": "set_creative_slot", - "27": "update_sign", - "28": "arm_animation", - "29": "spectate", - "30": "block_place", - "31": "use_item" + "0x00": "teleport_confirm", + "0x01": "prepare_crafting_grid", + "0x02": "tab_complete", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "transaction", + "0x07": "enchant_item", + "0x08": "window_click", + "0x09": "close_window", + "0x0a": "custom_payload", + "0x0b": "use_entity", + "0x0c": "keep_alive", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "flying", + "0x11": "vehicle_move", + "0x12": "steer_boat", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "held_item_slot", + "0x1a": "set_creative_slot", + "0x1b": "update_sign", + "0x1c": "arm_animation", + "0x1d": "spectate", + "0x1e": "block_place", + "0x1f": "use_item" } } ] diff --git a/data/pc/17w50a/protocol.json b/data/pc/17w50a/protocol.json index f8a51f6f0..e32c0c690 100644 --- a/data/pc/17w50a/protocol.json +++ b/data/pc/17w50a/protocol.json @@ -238,8 +238,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -294,8 +294,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -343,8 +343,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -439,10 +439,10 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress" } } ] @@ -511,8 +511,8 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin" + "0x00": "login_start", + "0x01": "encryption_begin" } } ] @@ -3638,90 +3638,90 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "block_break_animation", - "9": "tile_entity_data", - "10": "block_action", - "11": "block_change", - "12": "boss_bar", - "13": "difficulty", - "14": "chat", - "15": "multi_block_change", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "open_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "login", - "37": "map", - "38": "entity", - "39": "rel_entity_move", - "40": "entity_move_look", - "41": "entity_look", - "42": "vehicle_move", - "43": "open_sign_entity", - "44": "craft_recipe_response", - "45": "abilities", - "46": "combat_event", - "47": "player_info", - "48": "position", - "49": "bed", - "50": "unlock_recipes", - "51": "entity_destroy", - "52": "remove_entity_effect", - "53": "resource_pack_send", - "54": "respawn", - "55": "entity_head_rotation", - "56": "select_advancement_tab", - "57": "world_border", - "58": "camera", - "59": "held_item_slot", - "60": "scoreboard_display_objective", - "61": "entity_metadata", - "62": "attach_entity", - "63": "entity_velocity", - "64": "entity_equipment", - "65": "experience", - "66": "update_health", - "67": "scoreboard_objective", - "68": "set_passengers", - "69": "teams", - "70": "scoreboard_score", - "71": "spawn_position", - "72": "update_time", - "73": "title", - "74": "stop_sound", - "75": "sound_effect", - "76": "playerlist_header", - "77": "collect", - "78": "entity_teleport", - "79": "advancements", - "80": "entity_update_attributes", - "81": "entity_effect", - "82": "declare_recipes", - "83": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "block_break_animation", + "0x09": "tile_entity_data", + "0x0a": "block_action", + "0x0b": "block_change", + "0x0c": "boss_bar", + "0x0d": "difficulty", + "0x0e": "chat", + "0x0f": "multi_block_change", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "open_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "login", + "0x25": "map", + "0x26": "entity", + "0x27": "rel_entity_move", + "0x28": "entity_move_look", + "0x29": "entity_look", + "0x2a": "vehicle_move", + "0x2b": "open_sign_entity", + "0x2c": "craft_recipe_response", + "0x2d": "abilities", + "0x2e": "combat_event", + "0x2f": "player_info", + "0x30": "position", + "0x31": "bed", + "0x32": "unlock_recipes", + "0x33": "entity_destroy", + "0x34": "remove_entity_effect", + "0x35": "resource_pack_send", + "0x36": "respawn", + "0x37": "entity_head_rotation", + "0x38": "select_advancement_tab", + "0x39": "world_border", + "0x3a": "camera", + "0x3b": "held_item_slot", + "0x3c": "scoreboard_display_objective", + "0x3d": "entity_metadata", + "0x3e": "attach_entity", + "0x3f": "entity_velocity", + "0x40": "entity_equipment", + "0x41": "experience", + "0x42": "update_health", + "0x43": "scoreboard_objective", + "0x44": "set_passengers", + "0x45": "teams", + "0x46": "scoreboard_score", + "0x47": "spawn_position", + "0x48": "update_time", + "0x49": "title", + "0x4a": "stop_sound", + "0x4b": "sound_effect", + "0x4c": "playerlist_header", + "0x4d": "collect", + "0x4e": "entity_teleport", + "0x4f": "advancements", + "0x50": "entity_update_attributes", + "0x51": "entity_effect", + "0x52": "declare_recipes", + "0x53": "tags" } } ] @@ -4440,39 +4440,39 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "chat", - "2": "client_command", - "3": "settings", - "4": "tab_complete", - "5": "transaction", - "6": "enchant_item", - "7": "window_click", - "8": "close_window", - "9": "custom_payload", - "10": "use_entity", - "11": "keep_alive", - "12": "flying", - "13": "position", - "14": "position_look", - "15": "look", - "16": "vehicle_move", - "17": "steer_boat", - "18": "craft_recipe_request", - "19": "abilities", - "20": "block_dig", - "21": "entity_action", - "22": "steer_vehicle", - "23": "crafting_book_data", - "24": "resource_pack_receive", - "25": "advancement_tab", - "26": "held_item_slot", - "27": "set_creative_slot", - "28": "update_sign", - "29": "arm_animation", - "30": "spectate", - "31": "block_place", - "32": "use_item" + "0x00": "teleport_confirm", + "0x01": "chat", + "0x02": "client_command", + "0x03": "settings", + "0x04": "tab_complete", + "0x05": "transaction", + "0x06": "enchant_item", + "0x07": "window_click", + "0x08": "close_window", + "0x09": "custom_payload", + "0x0a": "use_entity", + "0x0b": "keep_alive", + "0x0c": "flying", + "0x0d": "position", + "0x0e": "position_look", + "0x0f": "look", + "0x10": "vehicle_move", + "0x11": "steer_boat", + "0x12": "craft_recipe_request", + "0x13": "abilities", + "0x14": "block_dig", + "0x15": "entity_action", + "0x16": "steer_vehicle", + "0x17": "crafting_book_data", + "0x18": "resource_pack_receive", + "0x19": "advancement_tab", + "0x1a": "held_item_slot", + "0x1b": "set_creative_slot", + "0x1c": "update_sign", + "0x1d": "arm_animation", + "0x1e": "spectate", + "0x1f": "block_place", + "0x20": "use_item" } } ] diff --git a/data/pc/20w13b/protocol.json b/data/pc/20w13b/protocol.json index 759eec04f..c5ab3a18b 100644 --- a/data/pc/20w13b/protocol.json +++ b/data/pc/20w13b/protocol.json @@ -797,8 +797,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -853,8 +853,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -902,8 +902,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1015,11 +1015,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1105,9 +1105,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4247,99 +4247,99 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_weather", - "3": "spawn_entity_living", - "4": "spawn_entity_painting", - "5": "named_entity_spawn", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "multi_block_change", - "17": "tab_complete", - "18": "declare_commands", - "19": "transaction", - "20": "close_window", - "21": "window_items", - "22": "craft_progress_bar", - "23": "set_slot", - "24": "set_cooldown", - "25": "custom_payload", - "26": "named_sound_effect", - "27": "kick_disconnect", - "28": "entity_status", - "29": "explosion", - "30": "unload_chunk", - "31": "game_state_change", - "32": "open_horse_window", - "33": "keep_alive", - "34": "map_chunk", - "35": "world_event", - "36": "world_particles", - "37": "update_light", - "38": "login", - "39": "map", - "40": "trade_list", - "41": "rel_entity_move", - "42": "entity_move_look", - "43": "entity_look", - "44": "entity", - "45": "vehicle_move", - "46": "open_book", - "47": "open_window", - "48": "open_sign_entity", - "49": "craft_recipe_response", - "50": "abilities", - "51": "combat_event", - "52": "player_info", - "53": "face_player", - "54": "position", - "55": "unlock_recipes", - "56": "entity_destroy", - "57": "remove_entity_effect", - "58": "resource_pack_send", - "59": "respawn", - "60": "entity_head_rotation", - "61": "select_advancement_tab", - "62": "world_border", - "63": "camera", - "64": "held_item_slot", - "65": "update_view_position", - "66": "update_view_distance", - "67": "spawn_position", - "68": "scoreboard_display_objective", - "69": "entity_metadata", - "70": "attach_entity", - "71": "entity_velocity", - "72": "entity_equipment", - "73": "experience", - "74": "update_health", - "75": "scoreboard_objective", - "76": "set_passengers", - "77": "teams", - "78": "scoreboard_score", - "79": "update_time", - "80": "title", - "81": "entity_sound_effect", - "82": "sound_effect", - "83": "stop_sound", - "84": "playerlist_header", - "85": "nbt_query_response", - "86": "collect", - "87": "entity_teleport", - "88": "advancements", - "89": "entity_update_attributes", - "90": "entity_effect", - "91": "declare_recipes", - "92": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_weather", + "0x03": "spawn_entity_living", + "0x04": "spawn_entity_painting", + "0x05": "named_entity_spawn", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "multi_block_change", + "0x11": "tab_complete", + "0x12": "declare_commands", + "0x13": "transaction", + "0x14": "close_window", + "0x15": "window_items", + "0x16": "craft_progress_bar", + "0x17": "set_slot", + "0x18": "set_cooldown", + "0x19": "custom_payload", + "0x1a": "named_sound_effect", + "0x1b": "kick_disconnect", + "0x1c": "entity_status", + "0x1d": "explosion", + "0x1e": "unload_chunk", + "0x1f": "game_state_change", + "0x20": "open_horse_window", + "0x21": "keep_alive", + "0x22": "map_chunk", + "0x23": "world_event", + "0x24": "world_particles", + "0x25": "update_light", + "0x26": "login", + "0x27": "map", + "0x28": "trade_list", + "0x29": "rel_entity_move", + "0x2a": "entity_move_look", + "0x2b": "entity_look", + "0x2c": "entity", + "0x2d": "vehicle_move", + "0x2e": "open_book", + "0x2f": "open_window", + "0x30": "open_sign_entity", + "0x31": "craft_recipe_response", + "0x32": "abilities", + "0x33": "combat_event", + "0x34": "player_info", + "0x35": "face_player", + "0x36": "position", + "0x37": "unlock_recipes", + "0x38": "entity_destroy", + "0x39": "remove_entity_effect", + "0x3a": "resource_pack_send", + "0x3b": "respawn", + "0x3c": "entity_head_rotation", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "spawn_position", + "0x44": "scoreboard_display_objective", + "0x45": "entity_metadata", + "0x46": "attach_entity", + "0x47": "entity_velocity", + "0x48": "entity_equipment", + "0x49": "experience", + "0x4a": "update_health", + "0x4b": "scoreboard_objective", + "0x4c": "set_passengers", + "0x4d": "teams", + "0x4e": "scoreboard_score", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" } } ] @@ -5332,52 +5332,52 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "keep_alive", - "16": "lock_difficulty", - "17": "position", - "18": "position_look", - "19": "look", - "20": "flying", - "21": "vehicle_move", - "22": "steer_boat", - "23": "pick_item", - "24": "craft_recipe_request", - "25": "abilities", - "26": "block_dig", - "27": "entity_action", - "28": "steer_vehicle", - "29": "crafting_book_data", - "30": "name_item", - "31": "resource_pack_receive", - "32": "advancement_tab", - "33": "select_trade", - "34": "set_beacon_effect", - "35": "held_item_slot", - "36": "update_command_block", - "37": "update_command_block_minecart", - "38": "set_creative_slot", - "39": "update_jigsaw_block", - "40": "update_structure_block", - "41": "update_sign", - "42": "arm_animation", - "43": "spectate", - "44": "block_place", - "45": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "keep_alive", + "0x10": "lock_difficulty", + "0x11": "position", + "0x12": "position_look", + "0x13": "look", + "0x14": "flying", + "0x15": "vehicle_move", + "0x16": "steer_boat", + "0x17": "pick_item", + "0x18": "craft_recipe_request", + "0x19": "abilities", + "0x1a": "block_dig", + "0x1b": "entity_action", + "0x1c": "steer_vehicle", + "0x1d": "crafting_book_data", + "0x1e": "name_item", + "0x1f": "resource_pack_receive", + "0x20": "advancement_tab", + "0x21": "select_trade", + "0x22": "set_beacon_effect", + "0x23": "held_item_slot", + "0x24": "update_command_block", + "0x25": "update_command_block_minecart", + "0x26": "set_creative_slot", + "0x27": "update_jigsaw_block", + "0x28": "update_structure_block", + "0x29": "update_sign", + "0x2a": "arm_animation", + "0x2b": "spectate", + "0x2c": "block_place", + "0x2d": "use_item" } } ] diff --git a/data/pc/21w07a/protocol.json b/data/pc/21w07a/protocol.json index f14e723bd..783d3997c 100644 --- a/data/pc/21w07a/protocol.json +++ b/data/pc/21w07a/protocol.json @@ -798,8 +798,8 @@ { "type": "varint", "mappings": { - "0": "set_protocol", - "254": "legacy_server_list_ping" + "0x00": "set_protocol", + "0xfe": "legacy_server_list_ping" } } ] @@ -854,8 +854,8 @@ { "type": "varint", "mappings": { - "0": "server_info", - "1": "ping" + "0x00": "server_info", + "0x01": "ping" } } ] @@ -903,8 +903,8 @@ { "type": "varint", "mappings": { - "0": "ping_start", - "1": "ping" + "0x00": "ping_start", + "0x01": "ping" } } ] @@ -1016,11 +1016,11 @@ { "type": "varint", "mappings": { - "0": "disconnect", - "1": "encryption_begin", - "2": "success", - "3": "compress", - "4": "login_plugin_request" + "0x00": "disconnect", + "0x01": "encryption_begin", + "0x02": "success", + "0x03": "compress", + "0x04": "login_plugin_request" } } ] @@ -1106,9 +1106,9 @@ { "type": "varint", "mappings": { - "0": "login_start", - "1": "encryption_begin", - "2": "login_plugin_response" + "0x00": "login_start", + "0x01": "encryption_begin", + "0x02": "login_plugin_response" } } ] @@ -4387,99 +4387,99 @@ { "type": "varint", "mappings": { - "0": "spawn_entity", - "1": "spawn_entity_experience_orb", - "2": "spawn_entity_living", - "3": "spawn_entity_painting", - "4": "named_entity_spawn", - "5": "sculk_vibration_signal", - "6": "animation", - "7": "statistics", - "8": "acknowledge_player_digging", - "9": "block_break_animation", - "10": "tile_entity_data", - "11": "block_action", - "12": "block_change", - "13": "boss_bar", - "14": "difficulty", - "15": "chat", - "16": "tab_complete", - "17": "declare_commands", - "18": "transaction", - "19": "close_window", - "20": "window_items", - "21": "craft_progress_bar", - "22": "set_slot", - "23": "set_cooldown", - "24": "custom_payload", - "25": "named_sound_effect", - "26": "kick_disconnect", - "27": "entity_status", - "28": "explosion", - "29": "unload_chunk", - "30": "game_state_change", - "31": "open_horse_window", - "32": "keep_alive", - "33": "map_chunk", - "34": "world_event", - "35": "world_particles", - "36": "update_light", - "37": "login", - "38": "map", - "39": "trade_list", - "40": "rel_entity_move", - "41": "entity_move_look", - "42": "entity_look", - "43": "entity", - "44": "vehicle_move", - "45": "open_book", - "46": "open_window", - "47": "open_sign_entity", - "48": "craft_recipe_response", - "49": "abilities", - "50": "combat_event", - "51": "player_info", - "52": "face_player", - "53": "position", - "54": "unlock_recipes", - "55": "entity_destroy", - "56": "remove_entity_effect", - "57": "resource_pack_send", - "58": "respawn", - "59": "entity_head_rotation", - "60": "multi_block_change", - "61": "select_advancement_tab", - "62": "world_border", - "63": "camera", - "64": "held_item_slot", - "65": "update_view_position", - "66": "update_view_distance", - "67": "spawn_position", - "68": "scoreboard_display_objective", - "69": "entity_metadata", - "70": "attach_entity", - "71": "entity_velocity", - "72": "entity_equipment", - "73": "experience", - "74": "update_health", - "75": "scoreboard_objective", - "76": "set_passengers", - "77": "teams", - "78": "scoreboard_score", - "79": "update_time", - "80": "title", - "81": "entity_sound_effect", - "82": "sound_effect", - "83": "stop_sound", - "84": "playerlist_header", - "85": "nbt_query_response", - "86": "collect", - "87": "entity_teleport", - "88": "advancements", - "89": "entity_update_attributes", - "90": "entity_effect", - "91": "declare_recipes", - "92": "tags" + "0x00": "spawn_entity", + "0x01": "spawn_entity_experience_orb", + "0x02": "spawn_entity_living", + "0x03": "spawn_entity_painting", + "0x04": "named_entity_spawn", + "0x05": "sculk_vibration_signal", + "0x06": "animation", + "0x07": "statistics", + "0x08": "acknowledge_player_digging", + "0x09": "block_break_animation", + "0x0a": "tile_entity_data", + "0x0b": "block_action", + "0x0c": "block_change", + "0x0d": "boss_bar", + "0x0e": "difficulty", + "0x0f": "chat", + "0x10": "tab_complete", + "0x11": "declare_commands", + "0x12": "transaction", + "0x13": "close_window", + "0x14": "window_items", + "0x15": "craft_progress_bar", + "0x16": "set_slot", + "0x17": "set_cooldown", + "0x18": "custom_payload", + "0x19": "named_sound_effect", + "0x1a": "kick_disconnect", + "0x1b": "entity_status", + "0x1c": "explosion", + "0x1d": "unload_chunk", + "0x1e": "game_state_change", + "0x1f": "open_horse_window", + "0x20": "keep_alive", + "0x21": "map_chunk", + "0x22": "world_event", + "0x23": "world_particles", + "0x24": "update_light", + "0x25": "login", + "0x26": "map", + "0x27": "trade_list", + "0x28": "rel_entity_move", + "0x29": "entity_move_look", + "0x2a": "entity_look", + "0x2b": "entity", + "0x2c": "vehicle_move", + "0x2d": "open_book", + "0x2e": "open_window", + "0x2f": "open_sign_entity", + "0x30": "craft_recipe_response", + "0x31": "abilities", + "0x32": "combat_event", + "0x33": "player_info", + "0x34": "face_player", + "0x35": "position", + "0x36": "unlock_recipes", + "0x37": "entity_destroy", + "0x38": "remove_entity_effect", + "0x39": "resource_pack_send", + "0x3a": "respawn", + "0x3b": "entity_head_rotation", + "0x3c": "multi_block_change", + "0x3d": "select_advancement_tab", + "0x3e": "world_border", + "0x3f": "camera", + "0x40": "held_item_slot", + "0x41": "update_view_position", + "0x42": "update_view_distance", + "0x43": "spawn_position", + "0x44": "scoreboard_display_objective", + "0x45": "entity_metadata", + "0x46": "attach_entity", + "0x47": "entity_velocity", + "0x48": "entity_equipment", + "0x49": "experience", + "0x4a": "update_health", + "0x4b": "scoreboard_objective", + "0x4c": "set_passengers", + "0x4d": "teams", + "0x4e": "scoreboard_score", + "0x4f": "update_time", + "0x50": "title", + "0x51": "entity_sound_effect", + "0x52": "sound_effect", + "0x53": "stop_sound", + "0x54": "playerlist_header", + "0x55": "nbt_query_response", + "0x56": "collect", + "0x57": "entity_teleport", + "0x58": "advancements", + "0x59": "entity_update_attributes", + "0x5a": "entity_effect", + "0x5b": "declare_recipes", + "0x5c": "tags" } } ] @@ -5448,54 +5448,54 @@ { "type": "varint", "mappings": { - "0": "teleport_confirm", - "1": "query_block_nbt", - "2": "set_difficulty", - "3": "chat", - "4": "client_command", - "5": "settings", - "6": "tab_complete", - "7": "transaction", - "8": "enchant_item", - "9": "window_click", - "10": "close_window", - "11": "custom_payload", - "12": "edit_book", - "13": "query_entity_nbt", - "14": "use_entity", - "15": "generate_structure", - "16": "keep_alive", - "17": "lock_difficulty", - "18": "position", - "19": "position_look", - "20": "look", - "21": "flying", - "22": "vehicle_move", - "23": "steer_boat", - "24": "pick_item", - "25": "craft_recipe_request", - "26": "abilities", - "27": "block_dig", - "28": "entity_action", - "29": "steer_vehicle", - "30": "displayed_recipe", - "31": "recipe_book", - "32": "name_item", - "33": "resource_pack_receive", - "34": "advancement_tab", - "35": "select_trade", - "36": "set_beacon_effect", - "37": "held_item_slot", - "38": "update_command_block", - "39": "update_command_block_minecart", - "40": "set_creative_slot", - "41": "update_jigsaw_block", - "42": "update_structure_block", - "43": "update_sign", - "44": "arm_animation", - "45": "spectate", - "46": "block_place", - "47": "use_item" + "0x00": "teleport_confirm", + "0x01": "query_block_nbt", + "0x02": "set_difficulty", + "0x03": "chat", + "0x04": "client_command", + "0x05": "settings", + "0x06": "tab_complete", + "0x07": "transaction", + "0x08": "enchant_item", + "0x09": "window_click", + "0x0a": "close_window", + "0x0b": "custom_payload", + "0x0c": "edit_book", + "0x0d": "query_entity_nbt", + "0x0e": "use_entity", + "0x0f": "generate_structure", + "0x10": "keep_alive", + "0x11": "lock_difficulty", + "0x12": "position", + "0x13": "position_look", + "0x14": "look", + "0x15": "flying", + "0x16": "vehicle_move", + "0x17": "steer_boat", + "0x18": "pick_item", + "0x19": "craft_recipe_request", + "0x1a": "abilities", + "0x1b": "block_dig", + "0x1c": "entity_action", + "0x1d": "steer_vehicle", + "0x1e": "displayed_recipe", + "0x1f": "recipe_book", + "0x20": "name_item", + "0x21": "resource_pack_receive", + "0x22": "advancement_tab", + "0x23": "select_trade", + "0x24": "set_beacon_effect", + "0x25": "held_item_slot", + "0x26": "update_command_block", + "0x27": "update_command_block_minecart", + "0x28": "set_creative_slot", + "0x29": "update_jigsaw_block", + "0x2a": "update_structure_block", + "0x2b": "update_sign", + "0x2c": "arm_animation", + "0x2d": "spectate", + "0x2e": "block_place", + "0x2f": "use_item" } } ] diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index bc6449891..249d02478 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -46,14 +46,27 @@ function genProtoSchema (createPacketMap) { return [version, json] } +function visitor (key, value) { + // Convert decimal to hex in protocol.json for packet mapper fields + if ((key === 'packet') && (value?.[1]?.[0]?.name === 'name')) { + const mapper = value[1][0].type[1].mappings + for (const key in mapper) { + if (key.startsWith('0x')) continue + mapper['0x' + Number(key).toString(16).padStart(2, '0')] = mapper[key] + delete mapper[key] + } + } + return value +} + function convert (edition, ver, path) { process.chdir(path || join(__dirname, `../../data/${edition}/${ver}`)) const [version, json] = genProtoSchema(edition === 'bedrock') fs.mkdirSync(`../${version}`, { recursive: true }) if (edition === 'bedrock') { - fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: json }, null, 2)) + fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify({ types: json }, visitor, 2)) } else if (edition === 'pc') { - fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify(json, null, 2)) + fs.writeFileSync(`../${version}/protocol.json`, JSON.stringify(json, visitor, 2)) } return version } From c12c6116aabb5b3e6f9a9fe5b5cb3f6afa1f32fc Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 7 Jul 2024 08:20:33 +0000 Subject: [PATCH 13/14] fix test --- tools/js/compileProtocol.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/js/compileProtocol.js b/tools/js/compileProtocol.js index 249d02478..c78d9ea30 100644 --- a/tools/js/compileProtocol.js +++ b/tools/js/compileProtocol.js @@ -77,8 +77,8 @@ function validate (edition, ver, path) { const [version, json] = genProtoSchema(edition === 'bedrock') const expected = edition === 'bedrock' - ? JSON.stringify({ types: json }, null, 2) - : JSON.stringify(json, null, 2) + ? JSON.stringify({ types: json }, visitor, 2) + : JSON.stringify(json, visitor, 2) // If you crash here, no protocol.json was generated - run `npm run build` const actual = JSON.stringify(getJSON(`../${version}/protocol.json`), null, 2) From ae8805a1961dbdda42a4365a4cd3c136b8aa0650 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Wed, 17 Jul 2024 01:48:20 +0000 Subject: [PATCH 14/14] update generated protocols Fix protodef-yaml setting switch defaults to void --- data/bedrock/1.16.201/protocol.json | 99 ++++++---------- data/bedrock/1.16.210/protocol.json | 117 +++++++------------ data/bedrock/1.16.220/protocol.json | 138 ++++++++-------------- data/bedrock/1.17.0/protocol.json | 138 ++++++++-------------- data/bedrock/1.17.10/protocol.json | 138 ++++++++-------------- data/bedrock/1.17.30/protocol.json | 144 ++++++++--------------- data/bedrock/1.17.40/protocol.json | 144 ++++++++--------------- data/bedrock/1.18.0/protocol.json | 150 ++++++++---------------- data/bedrock/1.18.11/protocol.json | 156 +++++++++---------------- data/bedrock/1.18.30/protocol.json | 156 +++++++++---------------- data/bedrock/1.19.1/protocol.json | 156 +++++++++---------------- data/bedrock/1.19.10/protocol.json | 156 +++++++++---------------- data/bedrock/1.19.20/protocol.json | 162 +++++++++----------------- data/bedrock/1.19.21/protocol.json | 162 +++++++++----------------- data/bedrock/1.19.30/protocol.json | 165 +++++++++----------------- data/bedrock/1.19.40/protocol.json | 165 +++++++++----------------- data/bedrock/1.19.50/protocol.json | 165 +++++++++----------------- data/bedrock/1.19.60/protocol.json | 165 +++++++++----------------- data/bedrock/1.19.62/protocol.json | 165 +++++++++----------------- data/bedrock/1.19.70/protocol.json | 165 +++++++++----------------- data/bedrock/1.19.80/protocol.json | 165 +++++++++----------------- data/bedrock/1.20.0/protocol.json | 165 +++++++++----------------- data/bedrock/1.20.10/protocol.json | 165 +++++++++----------------- data/bedrock/1.20.30/protocol.json | 165 +++++++++----------------- data/bedrock/1.20.40/protocol.json | 165 +++++++++----------------- data/bedrock/1.20.50/protocol.json | 165 +++++++++----------------- data/bedrock/1.20.61/protocol.json | 168 +++++++++------------------ data/bedrock/1.20.71/protocol.json | 168 +++++++++------------------ data/bedrock/1.20.80/protocol.json | 171 +++++++++------------------ data/bedrock/1.21.0/protocol.json | 174 ++++++++++------------------ data/bedrock/1.21.2/protocol.json | 174 ++++++++++------------------ data/pc/0.30c/protocol.json | 6 +- data/pc/1.10-pre1/protocol.json | 24 ++-- data/pc/1.10/protocol.json | 24 ++-- data/pc/1.11/protocol.json | 24 ++-- data/pc/1.12-pre4/protocol.json | 30 ++--- data/pc/1.12.1/protocol.json | 30 ++--- data/pc/1.12.2/protocol.json | 30 ++--- data/pc/1.12/protocol.json | 30 ++--- data/pc/1.13.1/protocol.json | 39 +++---- data/pc/1.13.2-pre1/protocol.json | 42 +++---- data/pc/1.13.2-pre2/protocol.json | 42 +++---- data/pc/1.13.2/protocol.json | 42 +++---- data/pc/1.13/protocol.json | 39 +++---- data/pc/1.14.1/protocol.json | 42 +++---- data/pc/1.14.3/protocol.json | 42 +++---- data/pc/1.14.4/protocol.json | 42 +++---- data/pc/1.14/protocol.json | 42 +++---- data/pc/1.15.1/protocol.json | 45 +++---- data/pc/1.15.2/protocol.json | 45 +++---- data/pc/1.15/protocol.json | 45 +++---- data/pc/1.16-rc1/protocol.json | 45 +++---- data/pc/1.16.1/protocol.json | 45 +++---- data/pc/1.16.2/protocol.json | 42 +++---- data/pc/1.16/protocol.json | 45 +++---- data/pc/1.17.1/protocol.json | 42 +++---- data/pc/1.17/protocol.json | 42 +++---- data/pc/1.18.2/protocol.json | 42 +++---- data/pc/1.18/protocol.json | 42 +++---- data/pc/1.19.2/protocol.json | 45 +++---- data/pc/1.19.3/protocol.json | 42 +++---- data/pc/1.19.4/protocol.json | 42 +++---- data/pc/1.19/protocol.json | 45 +++---- data/pc/1.20.2/protocol.json | 48 +++----- data/pc/1.20.3/protocol.json | 48 +++----- data/pc/1.20/protocol.json | 42 +++---- data/pc/1.7/protocol.json | 24 ++-- data/pc/1.8/protocol.json | 24 ++-- data/pc/1.9.1-pre2/protocol.json | 24 ++-- data/pc/1.9.2/protocol.json | 24 ++-- data/pc/1.9.4/protocol.json | 24 ++-- data/pc/1.9/protocol.json | 24 ++-- data/pc/15w40b/protocol.json | 24 ++-- data/pc/16w20a/protocol.json | 24 ++-- data/pc/16w35a/protocol.json | 24 ++-- data/pc/17w15a/protocol.json | 27 ++--- data/pc/17w18b/protocol.json | 27 ++--- data/pc/17w50a/protocol.json | 36 ++---- data/pc/20w13b/protocol.json | 45 +++---- data/pc/21w07a/protocol.json | 39 +++---- 80 files changed, 2201 insertions(+), 4402 deletions(-) diff --git a/data/bedrock/1.16.201/protocol.json b/data/bedrock/1.16.201/protocol.json index 8b8e76ec6..c2d9ccabb 100644 --- a/data/bedrock/1.16.201/protocol.json +++ b/data/bedrock/1.16.201/protocol.json @@ -221,8 +221,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -392,8 +391,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -635,8 +633,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1077,8 +1074,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1533,8 +1529,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1789,8 +1784,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1878,8 +1872,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -1891,15 +1884,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -2275,8 +2266,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2448,8 +2438,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3012,8 +3001,7 @@ "correct_player_move_prediction": "packet_correct_player_move_prediction", "item_component": "packet_item_component", "filter_text_packet": "packet_filter_text_packet" - }, - "default": "void" + } } ] } @@ -3353,8 +3341,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -3960,8 +3947,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4403,8 +4389,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -4640,8 +4625,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5000,8 +4984,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5314,8 +5297,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5394,8 +5376,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -5688,8 +5669,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6179,8 +6159,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6403,8 +6382,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -6416,8 +6394,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -6429,8 +6406,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -6442,8 +6418,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6455,8 +6430,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6468,8 +6442,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -6874,8 +6847,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -7062,8 +7034,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -7161,8 +7132,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -7174,8 +7144,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -7187,8 +7156,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -7200,8 +7168,7 @@ "compareTo": "types.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.16.210/protocol.json b/data/bedrock/1.16.210/protocol.json index 7bb18a9c4..c4499e771 100644 --- a/data/bedrock/1.16.210/protocol.json +++ b/data/bedrock/1.16.210/protocol.json @@ -221,8 +221,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -392,8 +391,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -645,8 +643,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1212,8 +1209,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1668,8 +1664,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1928,8 +1923,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2017,8 +2011,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2030,15 +2023,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -2464,8 +2455,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2578,8 +2568,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2665,8 +2654,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3301,8 +3289,7 @@ "item_component": "packet_item_component", "filter_text_packet": "packet_filter_text_packet", "debug_renderer": "packet_debug_renderer" - }, - "default": "void" + } } ] } @@ -3642,8 +3629,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4257,8 +4243,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4713,8 +4698,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -4917,8 +4901,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5292,8 +5275,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5613,8 +5595,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5693,8 +5674,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -5987,8 +5967,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6518,8 +6497,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6752,8 +6730,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -6765,8 +6742,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -6778,8 +6754,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -6791,8 +6766,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6804,8 +6778,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6817,8 +6790,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -7223,8 +7195,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -7412,8 +7383,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -7449,8 +7419,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7462,8 +7431,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -7557,8 +7525,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7566,8 +7533,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -7676,8 +7642,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -7689,8 +7654,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -7702,8 +7666,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -7715,8 +7678,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -8050,8 +8012,7 @@ } ] ] - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.16.220/protocol.json b/data/bedrock/1.16.220/protocol.json index 341f84aab..b29953b39 100644 --- a/data/bedrock/1.16.220/protocol.json +++ b/data/bedrock/1.16.220/protocol.json @@ -233,8 +233,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -825,8 +824,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1367,8 +1365,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1810,8 +1807,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2070,8 +2066,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2091,8 +2086,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2458,8 +2452,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2572,8 +2565,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2662,8 +2654,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2693,8 +2684,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2706,8 +2696,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -3795,8 +3784,7 @@ "item_component": "packet_item_component", "filter_text_packet": "packet_filter_text_packet", "debug_renderer": "packet_debug_renderer" - }, - "default": "void" + } } ] } @@ -4136,8 +4124,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4703,8 +4690,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5186,8 +5172,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5390,8 +5375,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5757,8 +5741,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5952,8 +5935,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -5965,8 +5947,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6002,8 +5983,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6045,8 +6025,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6234,8 +6213,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6314,8 +6292,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -6610,8 +6587,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7193,8 +7169,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7417,8 +7392,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7430,15 +7404,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -7534,8 +7506,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7547,8 +7518,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7560,8 +7530,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7573,8 +7542,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7586,8 +7554,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7599,8 +7566,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8017,8 +7983,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8121,8 +8086,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8310,8 +8274,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8347,8 +8310,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8360,8 +8322,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -8455,8 +8416,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8464,8 +8424,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -8598,8 +8557,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8611,8 +8569,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8624,8 +8581,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8637,8 +8593,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -8972,8 +8927,7 @@ } ] ] - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.17.0/protocol.json b/data/bedrock/1.17.0/protocol.json index 40303ea65..504f4ba0a 100644 --- a/data/bedrock/1.17.0/protocol.json +++ b/data/bedrock/1.17.0/protocol.json @@ -237,8 +237,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -828,8 +827,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1373,8 +1371,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1816,8 +1813,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2076,8 +2072,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2097,8 +2092,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2464,8 +2458,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2578,8 +2571,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2668,8 +2660,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2699,8 +2690,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2712,8 +2702,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -3872,8 +3861,7 @@ "sync_entity_property": "packet_sync_entity_property", "add_volume_entity": "packet_add_volume_entity", "remove_volume_entity": "packet_remove_volume_entity" - }, - "default": "void" + } } ] } @@ -4213,8 +4201,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4784,8 +4771,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5267,8 +5253,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5471,8 +5456,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5838,8 +5822,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6034,8 +6017,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6047,8 +6029,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6084,8 +6065,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6127,8 +6107,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6316,8 +6295,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6396,8 +6374,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -6692,8 +6669,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7275,8 +7251,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7499,8 +7474,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7512,15 +7486,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -7616,8 +7588,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7629,8 +7600,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7642,8 +7612,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7655,8 +7624,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7668,8 +7636,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7681,8 +7648,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8099,8 +8065,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8203,8 +8168,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8392,8 +8356,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8429,8 +8392,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8442,8 +8404,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -8537,8 +8498,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8546,8 +8506,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -8680,8 +8639,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8693,8 +8651,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8706,8 +8663,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8719,8 +8675,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9054,8 +9009,7 @@ } ] ] - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.17.10/protocol.json b/data/bedrock/1.17.10/protocol.json index 22745405e..a7c6cf3e6 100644 --- a/data/bedrock/1.17.10/protocol.json +++ b/data/bedrock/1.17.10/protocol.json @@ -237,8 +237,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -828,8 +827,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1373,8 +1371,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1816,8 +1813,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2076,8 +2072,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2097,8 +2092,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2464,8 +2458,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2578,8 +2571,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2668,8 +2660,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2699,8 +2690,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2712,8 +2702,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -3878,8 +3867,7 @@ "remove_volume_entity": "packet_remove_volume_entity", "simulation_type": "packet_simulation_type", "npc_dialogue": "packet_npc_dialogue" - }, - "default": "void" + } } ] } @@ -4223,8 +4211,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4794,8 +4781,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5357,8 +5343,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5561,8 +5546,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5928,8 +5912,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6124,8 +6107,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6137,8 +6119,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6174,8 +6155,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6217,8 +6197,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6406,8 +6385,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6486,8 +6464,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -6782,8 +6759,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7373,8 +7349,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7615,8 +7590,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7628,15 +7602,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -7732,8 +7704,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7745,8 +7716,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7758,8 +7728,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7771,8 +7740,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7784,8 +7752,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7797,8 +7764,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8215,8 +8181,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8319,8 +8284,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8508,8 +8472,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8545,8 +8508,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8558,8 +8520,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -8653,8 +8614,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8662,8 +8622,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -8796,8 +8755,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8809,8 +8767,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8822,8 +8779,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -8835,8 +8791,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9170,8 +9125,7 @@ } ] ] - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.17.30/protocol.json b/data/bedrock/1.17.30/protocol.json index b20fbe554..3cd1d85c6 100644 --- a/data/bedrock/1.17.30/protocol.json +++ b/data/bedrock/1.17.30/protocol.json @@ -237,8 +237,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -828,8 +827,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1373,8 +1371,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1816,8 +1813,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2084,8 +2080,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2105,8 +2100,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2472,8 +2466,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2586,8 +2579,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2676,8 +2668,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2707,8 +2698,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2720,8 +2710,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -3980,8 +3969,7 @@ "create_photo": "packet_create_photo", "update_subchunk_blocks": "packet_update_subchunk_blocks", "photo_info_request": "packet_photo_info_request" - }, - "default": "void" + } } ] } @@ -4325,8 +4313,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4900,8 +4887,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5463,8 +5449,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5679,8 +5664,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6056,8 +6040,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6252,8 +6235,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6265,8 +6247,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6302,8 +6283,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6345,8 +6325,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6534,8 +6513,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6614,8 +6592,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -6915,8 +6892,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7506,8 +7482,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7764,8 +7739,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7777,15 +7751,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -7881,8 +7853,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7894,8 +7865,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7907,8 +7877,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7920,8 +7889,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7933,8 +7901,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7946,8 +7913,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8364,8 +8330,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8492,8 +8457,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8509,8 +8473,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8546,8 +8509,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8731,8 +8693,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8768,8 +8729,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8781,8 +8741,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -8876,8 +8835,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8885,8 +8843,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9019,8 +8976,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9032,8 +8988,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9045,8 +9000,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9058,8 +9012,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9397,8 +9350,7 @@ } ] ] - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.17.40/protocol.json b/data/bedrock/1.17.40/protocol.json index b77519c4d..6314a7c0f 100644 --- a/data/bedrock/1.17.40/protocol.json +++ b/data/bedrock/1.17.40/protocol.json @@ -237,8 +237,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -828,8 +827,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1373,8 +1371,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1816,8 +1813,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2084,8 +2080,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2105,8 +2100,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2496,8 +2490,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2610,8 +2603,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2700,8 +2692,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2731,8 +2722,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2744,8 +2734,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4008,8 +3997,7 @@ "photo_info_request": "packet_photo_info_request", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request" - }, - "default": "void" + } } ] } @@ -4353,8 +4341,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4928,8 +4915,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5494,8 +5480,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6057,8 +6042,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6253,8 +6237,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6266,8 +6249,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6303,8 +6285,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6346,8 +6327,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6535,8 +6515,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6615,8 +6594,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -6916,8 +6894,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7507,8 +7484,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7765,8 +7741,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7778,15 +7753,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -7882,8 +7855,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7895,8 +7867,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7908,8 +7879,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7921,8 +7891,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7934,8 +7903,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7947,8 +7915,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8365,8 +8332,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8493,8 +8459,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8510,8 +8475,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8547,8 +8511,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8732,8 +8695,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8769,8 +8731,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8782,8 +8743,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -8877,8 +8837,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8886,8 +8845,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9020,8 +8978,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9033,8 +8990,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9046,8 +9002,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9059,8 +9014,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9398,8 +9352,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9638,8 +9591,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.18.0/protocol.json b/data/bedrock/1.18.0/protocol.json index f522bade2..e2700bc17 100644 --- a/data/bedrock/1.18.0/protocol.json +++ b/data/bedrock/1.18.0/protocol.json @@ -237,8 +237,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -828,8 +827,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1373,8 +1371,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1816,8 +1813,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2084,8 +2080,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2105,8 +2100,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2496,8 +2490,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2610,8 +2603,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2700,8 +2692,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2731,8 +2722,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2744,8 +2734,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4018,8 +4007,7 @@ "photo_info_request": "packet_photo_info_request", "subchunk": "packet_subchunk", "subchunk_request": "packet_subchunk_request" - }, - "default": "void" + } } ] } @@ -4363,8 +4351,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -4942,8 +4929,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5509,8 +5495,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5725,8 +5710,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6102,8 +6086,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6298,8 +6281,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6311,8 +6293,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6348,8 +6329,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6391,8 +6371,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6580,8 +6559,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6660,8 +6638,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -6966,8 +6943,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7557,8 +7533,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7815,8 +7790,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7828,15 +7802,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -7932,8 +7904,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7945,8 +7916,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7958,8 +7928,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -7971,8 +7940,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7984,8 +7952,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7997,8 +7964,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8415,8 +8381,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8543,8 +8508,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8560,8 +8524,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8597,8 +8560,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8782,8 +8744,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8819,8 +8780,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8832,8 +8792,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -8927,8 +8886,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8936,8 +8894,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9070,8 +9027,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9083,8 +9039,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9096,8 +9051,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9109,8 +9063,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9448,8 +9401,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9688,8 +9640,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -9705,8 +9656,7 @@ "compareTo": "cache_enabled", "fields": { "true": "lu64" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.18.11/protocol.json b/data/bedrock/1.18.11/protocol.json index afce56c5b..5e13b2372 100644 --- a/data/bedrock/1.18.11/protocol.json +++ b/data/bedrock/1.18.11/protocol.json @@ -237,8 +237,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -828,8 +827,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1377,8 +1375,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1820,8 +1817,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2088,8 +2084,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2109,8 +2104,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2536,8 +2530,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2650,8 +2643,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2741,8 +2733,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2772,8 +2763,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2785,8 +2775,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4091,8 +4080,7 @@ "client_start_item_cooldown": "packet_client_start_item_cooldown", "script_message": "packet_script_message", "code_builder_source": "packet_code_builder_source" - }, - "default": "void" + } } ] } @@ -4436,8 +4424,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5015,8 +5002,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5582,8 +5568,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5798,8 +5783,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6157,8 +6141,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6188,8 +6171,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6384,8 +6366,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6397,8 +6378,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6434,8 +6414,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6477,8 +6456,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6676,8 +6654,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6756,8 +6733,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7062,8 +7038,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7653,8 +7628,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7911,8 +7885,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -7924,15 +7897,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8028,8 +7999,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8041,8 +8011,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8054,8 +8023,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8067,8 +8035,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8080,8 +8047,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8093,8 +8059,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8511,8 +8476,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8639,8 +8603,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8656,8 +8619,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8693,8 +8655,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8878,8 +8839,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -8915,8 +8875,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8928,8 +8887,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9023,8 +8981,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9032,8 +8989,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9166,8 +9122,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9179,8 +9134,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9192,8 +9146,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9205,8 +9158,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9544,8 +9496,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9793,8 +9744,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -9880,8 +9830,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -9917,8 +9866,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.18.30/protocol.json b/data/bedrock/1.18.30/protocol.json index 4f80ec7db..1f3f0e5b0 100644 --- a/data/bedrock/1.18.30/protocol.json +++ b/data/bedrock/1.18.30/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -832,8 +831,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1385,8 +1383,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1828,8 +1825,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2096,8 +2092,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2117,8 +2112,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2544,8 +2538,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2658,8 +2651,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2749,8 +2741,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2780,8 +2771,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2793,8 +2783,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4159,8 +4148,7 @@ "dimension_data": "packet_dimension_data", "agent_action": "packet_agent_action", "change_mob_property": "packet_change_mob_property" - }, - "default": "void" + } } ] } @@ -4504,8 +4492,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5097,8 +5084,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5669,8 +5655,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5885,8 +5870,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6244,8 +6228,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6275,8 +6258,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6471,8 +6453,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6484,8 +6465,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6521,8 +6501,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6564,8 +6543,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6763,8 +6741,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6843,8 +6820,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7151,8 +7127,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7742,8 +7717,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8000,8 +7974,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8013,15 +7986,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8117,8 +8088,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8130,8 +8100,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8143,8 +8112,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8156,8 +8124,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8169,8 +8136,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8182,8 +8148,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8604,8 +8569,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8732,8 +8696,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8749,8 +8712,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8786,8 +8748,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8971,8 +8932,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9008,8 +8968,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9021,8 +8980,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9116,8 +9074,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9125,8 +9082,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9259,8 +9215,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9272,8 +9227,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9285,8 +9239,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9298,8 +9251,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9637,8 +9589,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9906,8 +9857,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -9993,8 +9943,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10030,8 +9979,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.1/protocol.json b/data/bedrock/1.19.1/protocol.json index a12588dec..eca6f53d5 100644 --- a/data/bedrock/1.19.1/protocol.json +++ b/data/bedrock/1.19.1/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -832,8 +831,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1385,8 +1383,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1828,8 +1825,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2096,8 +2092,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2117,8 +2112,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2546,8 +2540,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2660,8 +2653,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2751,8 +2743,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2782,8 +2773,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2795,8 +2785,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4200,8 +4189,7 @@ "request_ability": "packet_request_ability", "request_permissions": "packet_request_permissions", "toast_request": "packet_toast_request" - }, - "default": "void" + } } ] } @@ -4545,8 +4533,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5146,8 +5133,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5719,8 +5705,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -5939,8 +5924,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6287,8 +6271,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6318,8 +6301,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6518,8 +6500,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6531,8 +6512,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6568,8 +6548,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6611,8 +6590,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6810,8 +6788,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6890,8 +6867,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7202,8 +7178,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7793,8 +7768,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8051,8 +8025,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8064,15 +8037,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8168,8 +8139,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8181,8 +8151,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8194,8 +8163,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8207,8 +8175,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8220,8 +8187,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8233,8 +8199,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8655,8 +8620,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8783,8 +8747,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8800,8 +8763,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8837,8 +8799,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9036,8 +8997,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9073,8 +9033,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9086,8 +9045,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9181,8 +9139,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9190,8 +9147,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9324,8 +9280,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9337,8 +9292,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9350,8 +9304,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9363,8 +9316,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9702,8 +9654,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9971,8 +9922,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10058,8 +10008,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10095,8 +10044,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.10/protocol.json b/data/bedrock/1.19.10/protocol.json index 56afb4f0f..7f91514a3 100644 --- a/data/bedrock/1.19.10/protocol.json +++ b/data/bedrock/1.19.10/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -832,8 +831,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1385,8 +1383,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1828,8 +1825,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2096,8 +2092,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2117,8 +2112,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2546,8 +2540,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2660,8 +2653,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2751,8 +2743,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2782,8 +2773,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2795,8 +2785,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4300,8 +4289,7 @@ "update_adventure_settings": "packet_update_adventure_settings", "death_info": "packet_death_info", "editor_network": "packet_editor_network" - }, - "default": "void" + } } ] } @@ -4647,8 +4635,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5250,8 +5237,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5824,8 +5810,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6044,8 +6029,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6380,8 +6364,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6411,8 +6394,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6611,8 +6593,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6624,8 +6605,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6661,8 +6641,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6704,8 +6683,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6903,8 +6881,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6983,8 +6960,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7295,8 +7271,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7886,8 +7861,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8144,8 +8118,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8157,15 +8130,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8261,8 +8232,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8274,8 +8244,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8287,8 +8256,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8300,8 +8268,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8313,8 +8280,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8326,8 +8292,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8748,8 +8713,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -8876,8 +8840,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8893,8 +8856,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8930,8 +8892,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9129,8 +9090,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9166,8 +9126,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9179,8 +9138,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9274,8 +9232,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9283,8 +9240,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9417,8 +9373,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9430,8 +9385,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9443,8 +9397,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9456,8 +9409,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9795,8 +9747,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10064,8 +10015,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10151,8 +10101,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10188,8 +10137,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.20/protocol.json b/data/bedrock/1.19.20/protocol.json index b17a6c7cd..612d47b99 100644 --- a/data/bedrock/1.19.20/protocol.json +++ b/data/bedrock/1.19.20/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -832,8 +831,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1423,8 +1421,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1866,8 +1863,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2134,8 +2130,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2155,8 +2150,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2584,8 +2578,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2698,8 +2691,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2789,8 +2781,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2820,8 +2811,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2833,8 +2823,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4340,8 +4329,7 @@ "death_info": "packet_death_info", "editor_network": "packet_editor_network", "feature_registry": "packet_feature_registry" - }, - "default": "void" + } } ] } @@ -4687,8 +4675,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5320,8 +5307,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5894,8 +5880,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6114,8 +6099,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6450,8 +6434,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6481,8 +6464,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6685,8 +6667,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6698,8 +6679,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6735,8 +6715,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6778,8 +6757,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6999,8 +6977,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7079,8 +7056,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7391,8 +7367,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7982,8 +7957,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8107,8 +8081,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8141,8 +8114,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8287,8 +8259,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8300,15 +8271,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8404,8 +8373,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8417,8 +8385,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8430,8 +8397,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8443,8 +8409,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8456,8 +8421,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8469,8 +8433,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8913,8 +8876,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9041,8 +9003,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9058,8 +9019,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9095,8 +9055,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9294,8 +9253,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9331,8 +9289,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9344,8 +9301,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9439,8 +9395,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9448,8 +9403,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9582,8 +9536,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9595,8 +9548,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9608,8 +9560,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9621,8 +9572,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9960,8 +9910,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10229,8 +10178,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10316,8 +10264,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10353,8 +10300,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.21/protocol.json b/data/bedrock/1.19.21/protocol.json index b17a6c7cd..612d47b99 100644 --- a/data/bedrock/1.19.21/protocol.json +++ b/data/bedrock/1.19.21/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -832,8 +831,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1423,8 +1421,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1866,8 +1863,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2134,8 +2130,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2155,8 +2150,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2584,8 +2578,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2698,8 +2691,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2789,8 +2781,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2820,8 +2811,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2833,8 +2823,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4340,8 +4329,7 @@ "death_info": "packet_death_info", "editor_network": "packet_editor_network", "feature_registry": "packet_feature_registry" - }, - "default": "void" + } } ] } @@ -4687,8 +4675,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5320,8 +5307,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5894,8 +5880,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6114,8 +6099,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6450,8 +6434,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6481,8 +6464,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6685,8 +6667,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6698,8 +6679,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6735,8 +6715,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6778,8 +6757,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6999,8 +6977,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7079,8 +7056,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7391,8 +7367,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7982,8 +7957,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8107,8 +8081,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8141,8 +8114,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8287,8 +8259,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8300,15 +8271,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8404,8 +8373,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8417,8 +8385,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8430,8 +8397,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8443,8 +8409,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8456,8 +8421,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8469,8 +8433,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -8913,8 +8876,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9041,8 +9003,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9058,8 +9019,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9095,8 +9055,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9294,8 +9253,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9331,8 +9289,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9344,8 +9301,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9439,8 +9395,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9448,8 +9403,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9582,8 +9536,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9595,8 +9548,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9608,8 +9560,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9621,8 +9572,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -9960,8 +9910,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10229,8 +10178,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10316,8 +10264,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10353,8 +10300,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.30/protocol.json b/data/bedrock/1.19.30/protocol.json index 70175a286..93cdba289 100644 --- a/data/bedrock/1.19.30/protocol.json +++ b/data/bedrock/1.19.30/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -832,8 +831,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1423,8 +1421,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1520,8 +1517,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -1926,8 +1922,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2194,8 +2189,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2215,8 +2209,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2644,8 +2637,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2780,8 +2772,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2871,8 +2862,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2902,8 +2892,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2915,8 +2904,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4430,8 +4418,7 @@ "request_network_settings": "packet_request_network_settings", "game_test_request": "packet_game_test_request", "game_test_results": "packet_game_test_results" - }, - "default": "void" + } } ] } @@ -4787,8 +4774,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5420,8 +5406,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5994,8 +5979,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6214,8 +6198,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6550,8 +6533,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6581,8 +6563,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6785,8 +6766,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6798,8 +6778,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6835,8 +6814,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6878,8 +6856,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7099,8 +7076,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7179,8 +7155,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7491,8 +7466,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8086,8 +8060,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8211,8 +8184,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8245,8 +8217,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8391,8 +8362,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8404,15 +8374,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8508,8 +8476,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8521,8 +8488,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8534,8 +8500,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8547,8 +8512,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8560,8 +8524,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8573,8 +8536,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9017,8 +8979,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9145,8 +9106,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9162,8 +9122,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9199,8 +9158,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9423,8 +9381,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9460,8 +9417,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9473,8 +9429,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9568,8 +9523,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9577,8 +9531,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9711,8 +9664,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9724,8 +9676,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9737,8 +9688,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9750,8 +9700,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10089,8 +10038,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10358,8 +10306,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10445,8 +10392,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10482,8 +10428,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.40/protocol.json b/data/bedrock/1.19.40/protocol.json index 174d84ffd..493b90ee1 100644 --- a/data/bedrock/1.19.40/protocol.json +++ b/data/bedrock/1.19.40/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1475,8 +1473,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1572,8 +1569,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -1978,8 +1974,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2246,8 +2241,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2267,8 +2261,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2706,8 +2699,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2843,8 +2835,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2934,8 +2925,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2965,8 +2955,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2978,8 +2967,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4499,8 +4487,7 @@ "request_network_settings": "packet_request_network_settings", "game_test_request": "packet_game_test_request", "game_test_results": "packet_game_test_results" - }, - "default": "void" + } } ] } @@ -4856,8 +4843,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5497,8 +5483,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6072,8 +6057,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6296,8 +6280,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6632,8 +6615,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6663,8 +6645,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6867,8 +6848,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6880,8 +6860,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6917,8 +6896,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6960,8 +6938,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7181,8 +7158,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7261,8 +7237,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7573,8 +7548,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8168,8 +8142,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8293,8 +8266,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8327,8 +8299,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8473,8 +8444,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8486,15 +8456,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8590,8 +8558,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8603,8 +8570,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8616,8 +8582,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8629,8 +8594,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8642,8 +8606,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8655,8 +8618,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9099,8 +9061,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9227,8 +9188,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9244,8 +9204,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9281,8 +9240,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9505,8 +9463,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9542,8 +9499,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9555,8 +9511,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9650,8 +9605,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9659,8 +9613,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9793,8 +9746,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9806,8 +9758,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9819,8 +9770,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9832,8 +9782,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10171,8 +10120,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10440,8 +10388,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10527,8 +10474,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10564,8 +10510,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.50/protocol.json b/data/bedrock/1.19.50/protocol.json index 08fdf7fe1..583fd1ca1 100644 --- a/data/bedrock/1.19.50/protocol.json +++ b/data/bedrock/1.19.50/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1479,8 +1477,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1576,8 +1573,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -1982,8 +1978,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2250,8 +2245,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2271,8 +2265,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2710,8 +2703,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2849,8 +2841,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2940,8 +2931,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2971,8 +2961,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -2984,8 +2973,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4519,8 +4507,7 @@ "game_test_request": "packet_game_test_request", "game_test_results": "packet_game_test_results", "update_client_input_locks": "packet_update_client_input_locks" - }, - "default": "void" + } } ] } @@ -4876,8 +4863,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5517,8 +5503,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6092,8 +6077,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6316,8 +6300,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6652,8 +6635,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6683,8 +6665,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6887,8 +6868,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6900,8 +6880,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6937,8 +6916,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6980,8 +6958,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7201,8 +7178,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7281,8 +7257,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7593,8 +7568,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8188,8 +8162,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8313,8 +8286,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8347,8 +8319,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8493,8 +8464,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8506,15 +8476,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8610,8 +8578,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8623,8 +8590,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8636,8 +8602,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8649,8 +8614,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8662,8 +8626,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8675,8 +8638,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9120,8 +9082,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9249,8 +9210,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9266,8 +9226,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9303,8 +9262,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9527,8 +9485,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9564,8 +9521,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9577,8 +9533,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9672,8 +9627,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9681,8 +9635,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9815,8 +9768,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9828,8 +9780,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9841,8 +9792,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9854,8 +9804,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10193,8 +10142,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10462,8 +10410,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10549,8 +10496,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10586,8 +10532,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.60/protocol.json b/data/bedrock/1.19.60/protocol.json index c39947fc3..2146ef1b9 100644 --- a/data/bedrock/1.19.60/protocol.json +++ b/data/bedrock/1.19.60/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1479,8 +1477,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1576,8 +1573,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2012,8 +2008,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2280,8 +2275,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2301,8 +2295,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2741,8 +2734,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2880,8 +2872,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2971,8 +2962,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3002,8 +2992,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3015,8 +3004,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4556,8 +4544,7 @@ "game_test_results": "packet_game_test_results", "update_client_input_locks": "packet_update_client_input_locks", "client_cheat_ability": "packet_client_cheat_ability" - }, - "default": "void" + } } ] } @@ -4913,8 +4900,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5558,8 +5544,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6133,8 +6118,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6357,8 +6341,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6693,8 +6676,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6724,8 +6706,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6928,8 +6909,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6941,8 +6921,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6978,8 +6957,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7021,8 +6999,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7242,8 +7219,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7322,8 +7298,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7638,8 +7613,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8233,8 +8207,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8358,8 +8331,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8392,8 +8364,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8538,8 +8509,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8551,15 +8521,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8655,8 +8623,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8668,8 +8635,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8681,8 +8647,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8694,8 +8659,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8707,8 +8671,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8720,8 +8683,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9165,8 +9127,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9294,8 +9255,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9311,8 +9271,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9348,8 +9307,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9581,8 +9539,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9618,8 +9575,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9631,8 +9587,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9726,8 +9681,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9735,8 +9689,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9870,8 +9823,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9883,8 +9835,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9896,8 +9847,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9909,8 +9859,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10248,8 +10197,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10517,8 +10465,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10604,8 +10551,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10641,8 +10587,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.62/protocol.json b/data/bedrock/1.19.62/protocol.json index 2d6f67287..637bb0a02 100644 --- a/data/bedrock/1.19.62/protocol.json +++ b/data/bedrock/1.19.62/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1479,8 +1477,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1576,8 +1573,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2012,8 +2008,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2284,8 +2279,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2305,8 +2299,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2745,8 +2738,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2884,8 +2876,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2975,8 +2966,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3006,8 +2996,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3019,8 +3008,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4560,8 +4548,7 @@ "game_test_results": "packet_game_test_results", "update_client_input_locks": "packet_update_client_input_locks", "client_cheat_ability": "packet_client_cheat_ability" - }, - "default": "void" + } } ] } @@ -4917,8 +4904,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5562,8 +5548,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6137,8 +6122,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6361,8 +6345,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6697,8 +6680,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6728,8 +6710,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6932,8 +6913,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6945,8 +6925,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -6982,8 +6961,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7025,8 +7003,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7246,8 +7223,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7326,8 +7302,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7642,8 +7617,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8237,8 +8211,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8362,8 +8335,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8396,8 +8368,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8542,8 +8513,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8555,15 +8525,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8659,8 +8627,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8672,8 +8639,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8685,8 +8651,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8698,8 +8663,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8711,8 +8675,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8724,8 +8687,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9169,8 +9131,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9298,8 +9259,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9315,8 +9275,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9352,8 +9311,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9585,8 +9543,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9622,8 +9579,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9635,8 +9591,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9730,8 +9685,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9739,8 +9693,7 @@ ] } ] - }, - "default": "void" + } } ] } @@ -9874,8 +9827,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9887,8 +9839,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9900,8 +9851,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9913,8 +9863,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10252,8 +10201,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10521,8 +10469,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10608,8 +10555,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10645,8 +10591,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.70/protocol.json b/data/bedrock/1.19.70/protocol.json index 8fcc53293..68c0a12c9 100644 --- a/data/bedrock/1.19.70/protocol.json +++ b/data/bedrock/1.19.70/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1483,8 +1481,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1590,8 +1587,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2026,8 +2022,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2298,8 +2293,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2319,8 +2313,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2759,8 +2752,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2896,8 +2888,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2987,8 +2978,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3018,8 +3008,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3031,8 +3020,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4583,8 +4571,7 @@ "camera_presets": "packet_camera_presets", "unlocked_recipes": "packet_unlocked_recipes", "camera_instruction": "packet_camera_instruction" - }, - "default": "void" + } } ] } @@ -4940,8 +4927,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5585,8 +5571,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6160,8 +6145,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6384,8 +6368,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6720,8 +6703,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6751,8 +6733,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6955,8 +6936,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -6968,8 +6948,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7005,8 +6984,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7048,8 +7026,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7269,8 +7246,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7349,8 +7325,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7665,8 +7640,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8260,8 +8234,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8385,8 +8358,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8419,8 +8391,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8565,8 +8536,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8578,15 +8548,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8682,8 +8650,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8695,8 +8662,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8708,8 +8674,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8721,8 +8686,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8734,8 +8698,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8747,8 +8710,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9192,8 +9154,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9321,8 +9282,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9338,8 +9298,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9375,8 +9334,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9608,8 +9566,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9645,8 +9602,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9658,8 +9614,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9753,8 +9708,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9762,8 +9716,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -9902,8 +9855,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9915,8 +9867,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9928,8 +9879,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9941,8 +9891,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10280,8 +10229,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10549,8 +10497,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10636,8 +10583,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10673,8 +10619,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.19.80/protocol.json b/data/bedrock/1.19.80/protocol.json index 060e030c4..8f89dfcf7 100644 --- a/data/bedrock/1.19.80/protocol.json +++ b/data/bedrock/1.19.80/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1483,8 +1481,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1590,8 +1587,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2060,8 +2056,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2332,8 +2327,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2353,8 +2347,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2793,8 +2786,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2930,8 +2922,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3021,8 +3012,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3052,8 +3042,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3065,8 +3054,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4624,8 +4612,7 @@ "compressed_biome_definitions": "packet_compressed_biome_definitions", "trim_data": "packet_trim_data", "open_sign": "packet_open_sign" - }, - "default": "void" + } } ] } @@ -4981,8 +4968,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5638,8 +5624,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6219,8 +6204,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6443,8 +6427,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6779,8 +6762,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6810,8 +6792,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7014,8 +6995,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7027,8 +7007,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7064,8 +7043,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7107,8 +7085,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7332,8 +7309,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7412,8 +7388,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7728,8 +7703,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8323,8 +8297,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8448,8 +8421,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8482,8 +8454,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8628,8 +8599,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8641,15 +8611,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8745,8 +8713,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8758,8 +8725,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8771,8 +8737,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8784,8 +8749,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8797,8 +8761,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8810,8 +8773,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9255,8 +9217,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9384,8 +9345,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9401,8 +9361,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9438,8 +9397,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9671,8 +9629,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9708,8 +9665,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9721,8 +9677,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9816,8 +9771,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9825,8 +9779,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -9965,8 +9918,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9978,8 +9930,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9991,8 +9942,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10004,8 +9954,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10343,8 +10292,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10612,8 +10560,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10699,8 +10646,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10736,8 +10682,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.0/protocol.json b/data/bedrock/1.20.0/protocol.json index e3909e25d..af746fc92 100644 --- a/data/bedrock/1.20.0/protocol.json +++ b/data/bedrock/1.20.0/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -835,8 +834,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1483,8 +1481,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1590,8 +1587,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2060,8 +2056,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2332,8 +2327,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2353,8 +2347,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2793,8 +2786,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2932,8 +2924,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3023,8 +3014,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3054,8 +3044,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3067,8 +3056,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4630,8 +4618,7 @@ "compressed_biome_definitions": "packet_compressed_biome_definitions", "trim_data": "packet_trim_data", "open_sign": "packet_open_sign" - }, - "default": "void" + } } ] } @@ -4987,8 +4974,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5648,8 +5634,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6229,8 +6214,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6453,8 +6437,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6789,8 +6772,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6820,8 +6802,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7025,8 +7006,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7038,8 +7018,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7075,8 +7054,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7118,8 +7096,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7343,8 +7320,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7423,8 +7399,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7739,8 +7714,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8334,8 +8308,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8459,8 +8432,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8493,8 +8465,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8639,8 +8610,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8652,15 +8622,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8756,8 +8724,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8769,8 +8736,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8782,8 +8748,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8795,8 +8760,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8808,8 +8772,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8821,8 +8784,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9266,8 +9228,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9395,8 +9356,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9412,8 +9372,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9449,8 +9408,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9690,8 +9648,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9727,8 +9684,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9740,8 +9696,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9835,8 +9790,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9844,8 +9798,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -9984,8 +9937,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -9997,8 +9949,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10010,8 +9961,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10023,8 +9973,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10362,8 +10311,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10631,8 +10579,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10718,8 +10665,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10755,8 +10701,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.10/protocol.json b/data/bedrock/1.20.10/protocol.json index ffa5fe14c..864cae5c6 100644 --- a/data/bedrock/1.20.10/protocol.json +++ b/data/bedrock/1.20.10/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -836,8 +835,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1485,8 +1483,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1592,8 +1589,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2062,8 +2058,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2334,8 +2329,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2355,8 +2349,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2798,8 +2791,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2937,8 +2929,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3028,8 +3019,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3059,8 +3049,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3072,8 +3061,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4637,8 +4625,7 @@ "trim_data": "packet_trim_data", "open_sign": "packet_open_sign", "agent_animation": "packet_agent_animation" - }, - "default": "void" + } } ] } @@ -4994,8 +4981,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5655,8 +5641,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6236,8 +6221,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6460,8 +6444,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6796,8 +6779,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6827,8 +6809,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7032,8 +7013,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7045,8 +7025,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7082,8 +7061,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7125,8 +7103,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7350,8 +7327,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7440,8 +7416,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7810,8 +7785,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8405,8 +8379,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8530,8 +8503,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8564,8 +8536,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8710,8 +8681,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8723,15 +8693,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8827,8 +8795,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8840,8 +8807,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8853,8 +8819,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8866,8 +8831,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8879,8 +8843,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -8892,8 +8855,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9337,8 +9299,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9466,8 +9427,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9483,8 +9443,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9520,8 +9479,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9762,8 +9720,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9799,8 +9756,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9812,8 +9768,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -9907,8 +9862,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9916,8 +9870,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10059,8 +10012,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10072,8 +10024,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10085,8 +10036,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10098,8 +10048,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10437,8 +10386,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10706,8 +10654,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10793,8 +10740,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10830,8 +10776,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.30/protocol.json b/data/bedrock/1.20.30/protocol.json index ae08190a8..1a9caa808 100644 --- a/data/bedrock/1.20.30/protocol.json +++ b/data/bedrock/1.20.30/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -881,8 +880,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1530,8 +1528,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1637,8 +1634,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2107,8 +2103,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2379,8 +2374,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2400,8 +2394,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2845,8 +2838,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2984,8 +2976,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3075,8 +3066,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3106,8 +3096,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3119,8 +3108,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4728,8 +4716,7 @@ "open_sign": "packet_open_sign", "agent_animation": "packet_agent_animation", "refresh_entitlements": "packet_refresh_entitlements" - }, - "default": "void" + } } ] } @@ -5107,8 +5094,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5778,8 +5764,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6359,8 +6344,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6583,8 +6567,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -6919,8 +6902,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -6950,8 +6932,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7155,8 +7136,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7168,8 +7148,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7205,8 +7184,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7248,8 +7226,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7473,8 +7450,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7563,8 +7539,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -7933,8 +7908,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8528,8 +8502,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8653,8 +8626,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8687,8 +8659,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8833,8 +8804,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8846,15 +8816,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -8950,8 +8918,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8963,8 +8930,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8976,8 +8942,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -8989,8 +8954,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9002,8 +8966,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9015,8 +8978,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9460,8 +9422,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9589,8 +9550,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9606,8 +9566,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9643,8 +9602,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9885,8 +9843,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -9922,8 +9879,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9935,8 +9891,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10030,8 +9985,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10039,8 +9993,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10184,8 +10137,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10197,8 +10149,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10210,8 +10161,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10223,8 +10173,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10562,8 +10511,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10831,8 +10779,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -10918,8 +10865,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -10955,8 +10901,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.40/protocol.json b/data/bedrock/1.20.40/protocol.json index ff57c2965..68aed5ee0 100644 --- a/data/bedrock/1.20.40/protocol.json +++ b/data/bedrock/1.20.40/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -881,8 +880,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1533,8 +1531,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1640,8 +1637,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2110,8 +2106,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2382,8 +2377,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2403,8 +2397,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2849,8 +2842,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2988,8 +2980,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3079,8 +3070,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3110,8 +3100,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3123,8 +3112,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4855,8 +4843,7 @@ "open_sign": "packet_open_sign", "agent_animation": "packet_agent_animation", "refresh_entitlements": "packet_refresh_entitlements" - }, - "default": "void" + } } ] } @@ -5238,8 +5225,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5909,8 +5895,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6490,8 +6475,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6714,8 +6698,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7050,8 +7033,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7081,8 +7063,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7286,8 +7267,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7299,8 +7279,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7336,8 +7315,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7379,8 +7357,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7604,8 +7581,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7694,8 +7670,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8064,8 +8039,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8659,8 +8633,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8784,8 +8757,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8818,8 +8790,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8964,8 +8935,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -8977,15 +8947,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9081,8 +9049,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9094,8 +9061,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9107,8 +9073,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9120,8 +9085,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9133,8 +9097,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9146,8 +9109,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9591,8 +9553,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9720,8 +9681,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9737,8 +9697,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9774,8 +9733,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10016,8 +9974,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10053,8 +10010,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10066,8 +10022,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10161,8 +10116,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10170,8 +10124,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10316,8 +10269,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10329,8 +10281,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10342,8 +10293,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10355,8 +10305,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10694,8 +10643,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10963,8 +10911,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11050,8 +10997,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11087,8 +11033,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.50/protocol.json b/data/bedrock/1.20.50/protocol.json index 1fe15e273..883d1b3c3 100644 --- a/data/bedrock/1.20.50/protocol.json +++ b/data/bedrock/1.20.50/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -898,8 +897,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1550,8 +1548,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1657,8 +1654,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2127,8 +2123,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2399,8 +2394,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2420,8 +2414,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2866,8 +2859,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3005,8 +2997,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3096,8 +3087,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3127,8 +3117,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3140,8 +3129,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4890,8 +4878,7 @@ "toggle_crafter_slot_request": "packet_toggle_crafter_slot_request", "set_player_inventory_options": "packet_set_player_inventory_options", "server_post_move": "packet_server_post_move" - }, - "default": "void" + } } ] } @@ -5273,8 +5260,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5944,8 +5930,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6527,8 +6512,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6751,8 +6735,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7087,8 +7070,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7118,8 +7100,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7323,8 +7304,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7336,8 +7316,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7373,8 +7352,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7416,8 +7394,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7641,8 +7618,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7731,8 +7707,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8101,8 +8076,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8706,8 +8680,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8831,8 +8804,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8865,8 +8837,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9011,8 +8982,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -9024,15 +8994,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9128,8 +9096,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9141,8 +9108,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9154,8 +9120,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9167,8 +9132,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9180,8 +9144,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9193,8 +9156,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9638,8 +9600,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9767,8 +9728,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9784,8 +9744,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9821,8 +9780,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10063,8 +10021,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10100,8 +10057,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10113,8 +10069,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10208,8 +10163,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10217,8 +10171,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10363,8 +10316,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10376,8 +10328,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10389,8 +10340,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10402,8 +10352,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10741,8 +10690,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -11010,8 +10958,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11097,8 +11044,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11134,8 +11080,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.61/protocol.json b/data/bedrock/1.20.61/protocol.json index c1f574fa1..421e56468 100644 --- a/data/bedrock/1.20.61/protocol.json +++ b/data/bedrock/1.20.61/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -898,8 +897,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1550,8 +1548,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1657,8 +1654,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2127,8 +2123,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2403,8 +2398,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2424,8 +2418,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2870,8 +2863,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3009,8 +3001,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3100,8 +3091,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3131,8 +3121,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3144,8 +3133,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4892,8 +4880,7 @@ "set_player_inventory_options": "packet_set_player_inventory_options", "set_hud": "packet_set_hud", "server_post_move": "packet_server_post_move" - }, - "default": "void" + } } ] } @@ -5275,8 +5262,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5946,8 +5932,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6534,8 +6519,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6758,8 +6742,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7098,8 +7081,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7129,8 +7111,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7334,8 +7315,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7347,8 +7327,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7384,8 +7363,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7427,8 +7405,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7652,8 +7629,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7742,8 +7718,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8112,8 +8087,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8717,8 +8691,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8842,8 +8815,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8876,8 +8848,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9022,8 +8993,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -9035,15 +9005,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9139,8 +9107,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9152,8 +9119,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9165,8 +9131,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9178,8 +9143,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9191,8 +9155,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9204,8 +9167,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9631,8 +9593,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9760,8 +9721,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9777,8 +9737,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9814,8 +9773,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10056,8 +10014,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10093,8 +10050,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10106,8 +10062,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10119,8 +10074,7 @@ "compareTo": "input_data.client_predicted_vehicle", "fields": { "true": "zigzag64" - }, - "default": "void" + } } ] }, @@ -10214,8 +10168,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10223,8 +10176,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10370,8 +10322,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10383,8 +10334,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10396,8 +10346,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10409,8 +10358,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10748,8 +10696,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -11017,8 +10964,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11104,8 +11050,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11141,8 +11086,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.71/protocol.json b/data/bedrock/1.20.71/protocol.json index 0d1cb2e5d..9f29ba0cf 100644 --- a/data/bedrock/1.20.71/protocol.json +++ b/data/bedrock/1.20.71/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -898,8 +897,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1550,8 +1548,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1657,8 +1654,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2127,8 +2123,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2403,8 +2398,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2424,8 +2418,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2870,8 +2863,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3009,8 +3001,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3100,8 +3091,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3131,8 +3121,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3144,8 +3133,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4914,8 +4902,7 @@ "set_player_inventory_options": "packet_set_player_inventory_options", "set_hud": "packet_set_hud", "server_post_move": "packet_server_post_move" - }, - "default": "void" + } } ] } @@ -5301,8 +5288,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -5972,8 +5958,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6568,8 +6553,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6796,8 +6780,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7136,8 +7119,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7167,8 +7149,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7372,8 +7353,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7385,8 +7365,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7422,8 +7401,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7465,8 +7443,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7681,8 +7658,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7771,8 +7747,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8141,8 +8116,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8746,8 +8720,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8871,8 +8844,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8905,8 +8877,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9051,8 +9022,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -9064,15 +9034,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9168,8 +9136,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9181,8 +9148,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9194,8 +9160,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9207,8 +9172,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9220,8 +9184,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9233,8 +9196,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9656,8 +9618,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9785,8 +9746,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9802,8 +9762,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9839,8 +9798,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10081,8 +10039,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10118,8 +10075,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10131,8 +10087,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10156,8 +10111,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10251,8 +10205,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10260,8 +10213,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10409,8 +10361,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10422,8 +10373,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10435,8 +10385,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10448,8 +10397,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10787,8 +10735,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -11056,8 +11003,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11143,8 +11089,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11180,8 +11125,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.20.80/protocol.json b/data/bedrock/1.20.80/protocol.json index fb49156bb..2c1fae90a 100644 --- a/data/bedrock/1.20.80/protocol.json +++ b/data/bedrock/1.20.80/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -898,8 +897,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1551,8 +1549,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1658,8 +1655,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2136,8 +2132,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2412,8 +2407,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2433,8 +2427,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2879,8 +2872,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3018,8 +3010,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3109,8 +3100,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3140,8 +3130,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3153,8 +3142,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -4952,8 +4940,7 @@ "set_player_inventory_options": "packet_set_player_inventory_options", "set_hud": "packet_set_hud", "server_post_move": "packet_server_post_move" - }, - "default": "void" + } } ] } @@ -5343,8 +5330,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6018,8 +6004,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6615,8 +6600,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6843,8 +6827,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7183,8 +7166,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7214,8 +7196,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7419,8 +7400,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7432,8 +7412,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7469,8 +7448,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7512,8 +7490,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7728,8 +7705,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7818,8 +7794,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8188,8 +8163,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8793,8 +8767,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -8918,8 +8891,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -8952,8 +8924,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9098,8 +9069,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -9111,15 +9081,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9215,8 +9183,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9228,8 +9195,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9241,8 +9207,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9254,8 +9219,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9267,8 +9231,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9280,8 +9243,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9703,8 +9665,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9832,8 +9793,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9849,8 +9809,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9886,8 +9845,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10128,8 +10086,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10165,8 +10122,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10178,8 +10134,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10203,8 +10158,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10298,8 +10252,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10307,8 +10260,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10456,8 +10408,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10469,8 +10420,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10482,8 +10432,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10495,8 +10444,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10757,8 +10705,7 @@ "compareTo": "prediction_type", "fields": { "vehicle": "vec2f" - }, - "default": "void" + } } ] }, @@ -10851,8 +10798,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -11120,8 +11066,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11207,8 +11152,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11244,8 +11188,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.21.0/protocol.json b/data/bedrock/1.21.0/protocol.json index d74d8b877..9d394107d 100644 --- a/data/bedrock/1.21.0/protocol.json +++ b/data/bedrock/1.21.0/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -899,8 +898,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1552,8 +1550,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1659,8 +1656,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2157,8 +2153,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2198,8 +2193,7 @@ "type": "RecipeIngredient" } ] - }, - "default": "void" + } } ] } @@ -2472,8 +2466,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2493,8 +2486,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2939,8 +2931,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3078,8 +3069,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3169,8 +3159,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3200,8 +3189,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3213,8 +3201,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -5023,8 +5010,7 @@ "set_hud": "packet_set_hud", "award_achievement": "packet_award_achievement", "server_post_move": "packet_server_post_move" - }, - "default": "void" + } } ] } @@ -5414,8 +5400,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6105,8 +6090,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6703,8 +6687,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6931,8 +6914,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7275,8 +7257,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7306,8 +7287,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7512,8 +7492,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7525,8 +7504,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7562,8 +7540,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7605,8 +7582,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7821,8 +7797,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7911,8 +7886,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8281,8 +8255,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8886,8 +8859,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9011,8 +8983,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9045,8 +9016,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9191,8 +9161,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -9204,15 +9173,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9308,8 +9275,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9321,8 +9287,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9334,8 +9299,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9347,8 +9311,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9360,8 +9323,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9373,8 +9335,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9796,8 +9757,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9925,8 +9885,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9942,8 +9901,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9979,8 +9937,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10222,8 +10179,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10259,8 +10215,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10272,8 +10227,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10297,8 +10251,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10392,8 +10345,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10401,8 +10353,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10551,8 +10502,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10564,8 +10514,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10577,8 +10526,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10590,8 +10538,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10852,8 +10799,7 @@ "compareTo": "prediction_type", "fields": { "vehicle": "vec2f" - }, - "default": "void" + } } ] }, @@ -10946,8 +10892,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -11215,8 +11160,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11302,8 +11246,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11339,8 +11282,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/bedrock/1.21.2/protocol.json b/data/bedrock/1.21.2/protocol.json index f8a613a49..634db9b66 100644 --- a/data/bedrock/1.21.2/protocol.json +++ b/data/bedrock/1.21.2/protocol.json @@ -238,8 +238,7 @@ "bool": "bool", "int": "zigzag32", "float": "lf32" - }, - "default": "void" + } } ] } @@ -899,8 +898,7 @@ "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" - }, - "default": "void" + } } ] } @@ -1552,8 +1550,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1659,8 +1656,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -2157,8 +2153,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2198,8 +2193,7 @@ "type": "RecipeIngredient" } ] - }, - "default": "void" + } } ] } @@ -2472,8 +2466,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -2493,8 +2486,7 @@ "type": "bool" } ] - }, - "default": "void" + } } ] } @@ -2939,8 +2931,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3078,8 +3069,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3169,8 +3159,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3200,8 +3189,7 @@ "compareTo": "type", "fields": { "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -3213,8 +3201,7 @@ "compareTo": "type", "fields": { "block": "BlockCoordinates" - }, - "default": "void" + } } ] } @@ -5025,8 +5012,7 @@ "award_achievement": "packet_award_achievement", "server_post_move": "packet_server_post_move", "clientbound_close_form": "packet_clientbound_close_form" - }, - "default": "void" + } } ] } @@ -5416,8 +5402,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6107,8 +6092,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -6705,8 +6689,7 @@ "fields": { "mouse_over_entity": "vec3f", "leave_vehicle": "vec3f" - }, - "default": "void" + } } ] } @@ -6933,8 +6916,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7277,8 +7259,7 @@ "compareTo": "sub_chunk_count", "fields": { "-2": "lu16" - }, - "default": "void" + } } ] }, @@ -7308,8 +7289,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7514,8 +7494,7 @@ "type": "zigzag64" } ] - }, - "default": "void" + } } ] }, @@ -7527,8 +7506,7 @@ "compareTo": "update_flags.initialisation || update_flags.decoration || update_flags.texture", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -7564,8 +7542,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -7607,8 +7584,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7823,8 +7799,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -7913,8 +7888,7 @@ "byte": "u8", "short": "lu16", "int": "lu32" - }, - "default": "void" + } } ] } @@ -8283,8 +8257,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -8888,8 +8861,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9013,8 +8985,7 @@ "compareTo": "has_response_data", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9047,8 +9018,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -9193,8 +9163,7 @@ "fields": { "player": "zigzag64", "entity": "zigzag64" - }, - "default": "void" + } } ] }, @@ -9206,15 +9175,13 @@ "compareTo": "entry_type", "fields": { "fake_player": "string" - }, - "default": "void" + } } ] } ] ] - }, - "default": "void" + } } ] } @@ -9310,8 +9277,7 @@ "compareTo": "flags.has_x", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9323,8 +9289,7 @@ "compareTo": "flags.has_y", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9336,8 +9301,7 @@ "compareTo": "flags.has_z", "fields": { "true": "lf32" - }, - "default": "void" + } } ] }, @@ -9349,8 +9313,7 @@ "compareTo": "flags.has_rot_x", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9362,8 +9325,7 @@ "compareTo": "flags.has_rot_y", "fields": { "true": "u8" - }, - "default": "void" + } } ] }, @@ -9375,8 +9337,7 @@ "compareTo": "flags.has_rot_z", "fields": { "true": "u8" - }, - "default": "void" + } } ] } @@ -9798,8 +9759,7 @@ "compareTo": "success", "fields": { "true": "nbt" - }, - "default": "void" + } } ] }, @@ -9927,8 +9887,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -9944,8 +9903,7 @@ "compareTo": "HasOverrideURI", "fields": { "true": "string" - }, - "default": "void" + } } ] }, @@ -9981,8 +9939,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10224,8 +10181,7 @@ "compareTo": "play_mode", "fields": { "reality": "vec3f" - }, - "default": "void" + } } ] }, @@ -10261,8 +10217,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10274,8 +10229,7 @@ "compareTo": "input_data.item_stack_request", "fields": { "true": "ItemStackRequest" - }, - "default": "void" + } } ] }, @@ -10299,8 +10253,7 @@ } ] ] - }, - "default": "void" + } } ] }, @@ -10394,8 +10347,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -10403,8 +10355,7 @@ ] } ] - }, - "default": "void" + } } ] }, @@ -10553,8 +10504,7 @@ "compareTo": "type.head", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10566,8 +10516,7 @@ "compareTo": "type.chest", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10579,8 +10528,7 @@ "compareTo": "type.legs", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] }, @@ -10592,8 +10540,7 @@ "compareTo": "type.feet", "fields": { "true": "zigzag32" - }, - "default": "void" + } } ] } @@ -10854,8 +10801,7 @@ "compareTo": "prediction_type", "fields": { "vehicle": "vec2f" - }, - "default": "void" + } } ] }, @@ -10948,8 +10894,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -11217,8 +11162,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] } @@ -11304,8 +11248,7 @@ "count": 256 } ] - }, - "default": "void" + } } ] }, @@ -11341,8 +11284,7 @@ "fields": { "true": "SubChunkEntryWithCaching", "false": "SubChunkEntryWithoutCaching" - }, - "default": "void" + } } ] } diff --git a/data/pc/0.30c/protocol.json b/data/pc/0.30c/protocol.json index cb6b196e6..3ef804fd1 100644 --- a/data/pc/0.30c/protocol.json +++ b/data/pc/0.30c/protocol.json @@ -125,8 +125,7 @@ "set_block": "packet_set_block", "position": "packet_position", "message": "packet_message" - }, - "default": "void" + } } ] } @@ -436,8 +435,7 @@ "message": "packet_message", "disconnect_player": "packet_disconnect_player", "update_user_type": "packet_update_user_type" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.10-pre1/protocol.json b/data/pc/1.10-pre1/protocol.json index 41e2f6316..cb53916f3 100644 --- a/data/pc/1.10-pre1/protocol.json +++ b/data/pc/1.10-pre1/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2970,8 +2964,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3588,8 +3581,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.10/protocol.json b/data/pc/1.10/protocol.json index 41e2f6316..cb53916f3 100644 --- a/data/pc/1.10/protocol.json +++ b/data/pc/1.10/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2970,8 +2964,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3588,8 +3581,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.11/protocol.json b/data/pc/1.11/protocol.json index 6e941becc..3bd6d2f24 100644 --- a/data/pc/1.11/protocol.json +++ b/data/pc/1.11/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2975,8 +2969,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3593,8 +3586,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.12-pre4/protocol.json b/data/pc/1.12-pre4/protocol.json index c7845da8f..864056c34 100644 --- a/data/pc/1.12-pre4/protocol.json +++ b/data/pc/1.12-pre4/protocol.json @@ -129,8 +129,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -257,8 +256,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -313,8 +311,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -362,8 +359,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -462,8 +458,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -530,8 +525,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -3210,8 +3204,7 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "advancement_progress": "packet_advancement_progress" - }, - "default": "void" + } } ] } @@ -3736,8 +3729,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3871,8 +3863,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -3965,8 +3956,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.12.1/protocol.json b/data/pc/1.12.1/protocol.json index 898d69228..11b854430 100644 --- a/data/pc/1.12.1/protocol.json +++ b/data/pc/1.12.1/protocol.json @@ -129,8 +129,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -257,8 +256,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -313,8 +311,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -362,8 +359,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -462,8 +458,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -530,8 +525,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -3264,8 +3258,7 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "select_advancement_tab": "packet_select_advancement_tab" - }, - "default": "void" + } } ] } @@ -3742,8 +3735,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3877,8 +3869,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -3971,8 +3962,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.12.2/protocol.json b/data/pc/1.12.2/protocol.json index 7d88b6b01..758de39bf 100644 --- a/data/pc/1.12.2/protocol.json +++ b/data/pc/1.12.2/protocol.json @@ -129,8 +129,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -257,8 +256,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -313,8 +311,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -362,8 +359,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -462,8 +458,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -530,8 +525,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -3264,8 +3258,7 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "select_advancement_tab": "packet_select_advancement_tab" - }, - "default": "void" + } } ] } @@ -3742,8 +3735,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3877,8 +3869,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -3971,8 +3962,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.12/protocol.json b/data/pc/1.12/protocol.json index f429ba747..7977fe274 100644 --- a/data/pc/1.12/protocol.json +++ b/data/pc/1.12/protocol.json @@ -129,8 +129,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -257,8 +256,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -313,8 +311,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -362,8 +359,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -462,8 +458,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -530,8 +525,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -3249,8 +3243,7 @@ "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect", "select_advancement_tab": "packet_select_advancement_tab" - }, - "default": "void" + } } ] } @@ -3775,8 +3768,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3910,8 +3902,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -4004,8 +3995,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.13.1/protocol.json b/data/pc/1.13.1/protocol.json index 587c24044..f9ed0647c 100644 --- a/data/pc/1.13.1/protocol.json +++ b/data/pc/1.13.1/protocol.json @@ -212,8 +212,7 @@ "13": "varint", "14": "nbt", "15": "particle" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -672,8 +671,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -692,8 +690,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -787,8 +784,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -843,8 +839,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -892,8 +887,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1011,8 +1005,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1097,8 +1090,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -3921,8 +3913,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4168,8 +4159,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -4837,8 +4827,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4972,8 +4961,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5086,8 +5074,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.13.2-pre1/protocol.json b/data/pc/1.13.2-pre1/protocol.json index cdebd4305..4caaf5f43 100644 --- a/data/pc/1.13.2-pre1/protocol.json +++ b/data/pc/1.13.2-pre1/protocol.json @@ -62,8 +62,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -217,8 +216,7 @@ "13": "varint", "14": "nbt", "15": "particle" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -677,8 +675,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -697,8 +694,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -792,8 +788,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -848,8 +843,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -897,8 +891,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1016,8 +1009,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1102,8 +1094,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -3926,8 +3917,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4173,8 +4163,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -4842,8 +4831,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4977,8 +4965,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5091,8 +5078,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.13.2-pre2/protocol.json b/data/pc/1.13.2-pre2/protocol.json index cdebd4305..4caaf5f43 100644 --- a/data/pc/1.13.2-pre2/protocol.json +++ b/data/pc/1.13.2-pre2/protocol.json @@ -62,8 +62,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -217,8 +216,7 @@ "13": "varint", "14": "nbt", "15": "particle" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -677,8 +675,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -697,8 +694,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -792,8 +788,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -848,8 +843,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -897,8 +891,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1016,8 +1009,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1102,8 +1094,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -3926,8 +3917,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4173,8 +4163,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -4842,8 +4831,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4977,8 +4965,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5091,8 +5078,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.13.2/protocol.json b/data/pc/1.13.2/protocol.json index 7f5d59250..e7a32e704 100644 --- a/data/pc/1.13.2/protocol.json +++ b/data/pc/1.13.2/protocol.json @@ -62,8 +62,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -217,8 +216,7 @@ "13": "varint", "14": "nbt", "15": "particle" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -677,8 +675,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -697,8 +694,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -792,8 +788,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -848,8 +843,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -897,8 +891,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1016,8 +1009,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1102,8 +1094,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -3926,8 +3917,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4173,8 +4163,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -4842,8 +4831,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4977,8 +4965,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5091,8 +5078,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.13/protocol.json b/data/pc/1.13/protocol.json index 1d84919c3..89e0e5cea 100644 --- a/data/pc/1.13/protocol.json +++ b/data/pc/1.13/protocol.json @@ -212,8 +212,7 @@ "13": "varint", "14": "nbt", "15": "particle" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -672,8 +671,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -692,8 +690,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -787,8 +784,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -843,8 +839,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -892,8 +887,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1011,8 +1005,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1097,8 +1090,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -3921,8 +3913,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4168,8 +4159,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -4833,8 +4823,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4968,8 +4957,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5082,8 +5070,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.14.1/protocol.json b/data/pc/1.14.1/protocol.json index 530dd6953..aba909139 100644 --- a/data/pc/1.14.1/protocol.json +++ b/data/pc/1.14.1/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4151,8 +4142,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4389,8 +4379,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -5092,8 +5081,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5252,8 +5240,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5372,8 +5359,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.14.3/protocol.json b/data/pc/1.14.3/protocol.json index 124b89726..ab214f573 100644 --- a/data/pc/1.14.3/protocol.json +++ b/data/pc/1.14.3/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4155,8 +4146,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4393,8 +4383,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -5096,8 +5085,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5256,8 +5244,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5376,8 +5363,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.14.4/protocol.json b/data/pc/1.14.4/protocol.json index 9c6edd9cd..736f79f2e 100644 --- a/data/pc/1.14.4/protocol.json +++ b/data/pc/1.14.4/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4159,8 +4150,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4420,8 +4410,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5123,8 +5112,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5283,8 +5271,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5403,8 +5390,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.14/protocol.json b/data/pc/1.14/protocol.json index 530dd6953..aba909139 100644 --- a/data/pc/1.14/protocol.json +++ b/data/pc/1.14/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4151,8 +4142,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4389,8 +4379,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -5092,8 +5081,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5252,8 +5240,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5372,8 +5359,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.15.1/protocol.json b/data/pc/1.15.1/protocol.json index 29b25bdcc..0cfa1d719 100644 --- a/data/pc/1.15.1/protocol.json +++ b/data/pc/1.15.1/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2319,8 +2310,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4183,8 +4173,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4444,8 +4433,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5147,8 +5135,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5307,8 +5294,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5427,8 +5413,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.15.2/protocol.json b/data/pc/1.15.2/protocol.json index 29b25bdcc..0cfa1d719 100644 --- a/data/pc/1.15.2/protocol.json +++ b/data/pc/1.15.2/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2319,8 +2310,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4183,8 +4173,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4444,8 +4433,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5147,8 +5135,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5307,8 +5294,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5427,8 +5413,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.15/protocol.json b/data/pc/1.15/protocol.json index 29b25bdcc..0cfa1d719 100644 --- a/data/pc/1.15/protocol.json +++ b/data/pc/1.15/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -747,8 +745,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -767,8 +764,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -862,8 +858,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -918,8 +913,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -967,8 +961,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1086,8 +1079,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1172,8 +1164,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2319,8 +2310,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4183,8 +4173,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4444,8 +4433,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5147,8 +5135,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5307,8 +5294,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5427,8 +5413,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.16-rc1/protocol.json b/data/pc/1.16-rc1/protocol.json index e8b9547e6..c135e8b18 100644 --- a/data/pc/1.16-rc1/protocol.json +++ b/data/pc/1.16-rc1/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -238,8 +237,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -748,8 +746,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -768,8 +765,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -863,8 +859,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -919,8 +914,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -968,8 +962,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1087,8 +1080,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1173,8 +1165,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2303,8 +2294,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4243,8 +4233,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4502,8 +4491,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5218,8 +5206,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5386,8 +5373,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5508,8 +5494,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.16.1/protocol.json b/data/pc/1.16.1/protocol.json index e8b9547e6..c135e8b18 100644 --- a/data/pc/1.16.1/protocol.json +++ b/data/pc/1.16.1/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -238,8 +237,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -748,8 +746,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -768,8 +765,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -863,8 +859,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -919,8 +914,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -968,8 +962,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1087,8 +1080,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1173,8 +1165,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2303,8 +2294,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4243,8 +4233,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4502,8 +4491,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5218,8 +5206,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5386,8 +5373,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5508,8 +5494,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.16.2/protocol.json b/data/pc/1.16.2/protocol.json index 21c48e44e..846fe620f 100644 --- a/data/pc/1.16.2/protocol.json +++ b/data/pc/1.16.2/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -238,8 +237,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -748,8 +746,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -768,8 +765,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -863,8 +859,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -919,8 +914,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -968,8 +962,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1087,8 +1080,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1173,8 +1165,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2302,8 +2293,7 @@ "type": "varint" } ] - }, - "default": "void" + } } ] }, @@ -4262,8 +4252,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4521,8 +4510,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5364,8 +5352,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5488,8 +5475,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.16/protocol.json b/data/pc/1.16/protocol.json index e8b9547e6..c135e8b18 100644 --- a/data/pc/1.16/protocol.json +++ b/data/pc/1.16/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -238,8 +237,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -748,8 +746,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -768,8 +765,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -863,8 +859,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -919,8 +914,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -968,8 +962,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1087,8 +1080,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1173,8 +1165,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2303,8 +2294,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4243,8 +4233,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4502,8 +4491,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5218,8 +5206,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5386,8 +5373,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5508,8 +5494,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.17.1/protocol.json b/data/pc/1.17.1/protocol.json index 93228fff8..3ec58d2a4 100644 --- a/data/pc/1.17.1/protocol.json +++ b/data/pc/1.17.1/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -195,8 +194,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -302,8 +300,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -812,8 +809,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -832,8 +828,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -927,8 +922,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -983,8 +977,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1032,8 +1025,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1151,8 +1143,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1237,8 +1228,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4150,8 +4140,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4624,8 +4613,7 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - }, - "default": "void" + } } ] } @@ -5485,8 +5473,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5618,8 +5605,7 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.17/protocol.json b/data/pc/1.17/protocol.json index 037d0069a..801891cc6 100644 --- a/data/pc/1.17/protocol.json +++ b/data/pc/1.17/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -195,8 +194,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -302,8 +300,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -812,8 +809,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -832,8 +828,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -927,8 +922,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -983,8 +977,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1032,8 +1025,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1151,8 +1143,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1237,8 +1228,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4132,8 +4122,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4606,8 +4595,7 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - }, - "default": "void" + } } ] } @@ -5454,8 +5442,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5587,8 +5574,7 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.18.2/protocol.json b/data/pc/1.18.2/protocol.json index 0ce9e2672..433e1fb7e 100644 --- a/data/pc/1.18.2/protocol.json +++ b/data/pc/1.18.2/protocol.json @@ -66,8 +66,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -206,8 +205,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -313,8 +311,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -858,8 +855,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -878,8 +874,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -973,8 +968,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1029,8 +1023,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1078,8 +1071,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1197,8 +1189,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1283,8 +1274,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4256,8 +4246,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4741,8 +4730,7 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - }, - "default": "void" + } } ] } @@ -5606,8 +5594,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5739,8 +5726,7 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.18/protocol.json b/data/pc/1.18/protocol.json index e10ae8593..acf6b8a7e 100644 --- a/data/pc/1.18/protocol.json +++ b/data/pc/1.18/protocol.json @@ -66,8 +66,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -206,8 +205,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -313,8 +311,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -858,8 +855,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -878,8 +874,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -973,8 +968,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1029,8 +1023,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1078,8 +1071,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1197,8 +1189,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1283,8 +1274,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4256,8 +4246,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4741,8 +4730,7 @@ "set_title_subtitle": "packet_set_title_subtitle", "set_title_text": "packet_set_title_text", "set_title_time": "packet_set_title_time" - }, - "default": "void" + } } ] } @@ -5606,8 +5594,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5739,8 +5726,7 @@ "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab", "pong": "packet_pong" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.19.2/protocol.json b/data/pc/1.19.2/protocol.json index b59734781..eb8eb57c9 100644 --- a/data/pc/1.19.2/protocol.json +++ b/data/pc/1.19.2/protocol.json @@ -65,8 +65,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -236,8 +235,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -383,8 +381,7 @@ "string" ], "22": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -975,8 +972,7 @@ "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -995,8 +991,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1090,8 +1085,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1146,8 +1140,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1195,8 +1188,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1343,8 +1335,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1458,8 +1449,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1508,8 +1498,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4682,8 +4671,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5171,8 +5159,7 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -6225,8 +6212,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -6364,8 +6350,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.19.3/protocol.json b/data/pc/1.19.3/protocol.json index 8e971111f..9bfafdbd2 100644 --- a/data/pc/1.19.3/protocol.json +++ b/data/pc/1.19.3/protocol.json @@ -66,8 +66,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -412,8 +410,7 @@ "string" ], "23": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -1113,8 +1110,7 @@ "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -1133,8 +1129,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1228,8 +1223,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1284,8 +1278,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1333,8 +1326,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1481,8 +1473,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1574,8 +1565,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -5020,8 +5010,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5468,8 +5457,7 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -6450,8 +6438,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -6620,8 +6607,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.19.4/protocol.json b/data/pc/1.19.4/protocol.json index 428bff3d1..ecd0cf60f 100644 --- a/data/pc/1.19.4/protocol.json +++ b/data/pc/1.19.4/protocol.json @@ -121,8 +121,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -292,8 +291,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -484,8 +482,7 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -1222,8 +1219,7 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -1242,8 +1238,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1337,8 +1332,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1393,8 +1387,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1442,8 +1435,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1590,8 +1582,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1683,8 +1674,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -5170,8 +5160,7 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - }, - "default": "void" + } } ] } @@ -5699,8 +5688,7 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -6681,8 +6669,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -6851,8 +6838,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.19/protocol.json b/data/pc/1.19/protocol.json index 09d514061..caa52038f 100644 --- a/data/pc/1.19/protocol.json +++ b/data/pc/1.19/protocol.json @@ -65,8 +65,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -236,8 +235,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -352,8 +350,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -944,8 +941,7 @@ "minecraft:template_mirror": "void", "minecraft:template_rotation": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -964,8 +960,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1059,8 +1054,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1115,8 +1109,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1164,8 +1157,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1312,8 +1304,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1420,8 +1411,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1470,8 +1460,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4561,8 +4550,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5005,8 +4993,7 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -5970,8 +5957,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -6107,8 +6093,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.20.2/protocol.json b/data/pc/1.20.2/protocol.json index 7590267d0..dcdb1a049 100644 --- a/data/pc/1.20.2/protocol.json +++ b/data/pc/1.20.2/protocol.json @@ -121,8 +121,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -292,8 +291,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -484,8 +482,7 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -1222,8 +1219,7 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -1242,8 +1238,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1337,8 +1332,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1393,8 +1387,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1442,8 +1435,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1590,8 +1582,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1686,8 +1677,7 @@ "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response", "login_acknowledged": "packet_login_acknowledged" - }, - "default": "void" + } } ] } @@ -1857,8 +1847,7 @@ "resource_pack_send": "packet_resource_pack_send", "feature_flags": "packet_feature_flags", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -1982,8 +1971,7 @@ "keep_alive": "packet_keep_alive", "pong": "packet_pong", "resource_pack_receive": "packet_resource_pack_receive" - }, - "default": "void" + } } ] } @@ -5391,8 +5379,7 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - }, - "default": "void" + } } ] } @@ -5937,8 +5924,7 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -6923,8 +6909,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -7121,8 +7106,7 @@ "chunk_batch_received": "packet_chunk_batch_received", "configuration_acknowledged": "packet_configuration_acknowledged", "ping_request": "packet_ping_request" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.20.3/protocol.json b/data/pc/1.20.3/protocol.json index 02b4ad63e..cbf8f74d3 100644 --- a/data/pc/1.20.3/protocol.json +++ b/data/pc/1.20.3/protocol.json @@ -121,8 +121,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -292,8 +291,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -484,8 +482,7 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -1223,8 +1220,7 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -1243,8 +1239,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1338,8 +1333,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1394,8 +1388,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1443,8 +1436,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1591,8 +1583,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1687,8 +1678,7 @@ "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response", "login_acknowledged": "packet_login_acknowledged" - }, - "default": "void" + } } ] } @@ -1876,8 +1866,7 @@ "add_resource_pack": "packet_add_resource_pack", "feature_flags": "packet_feature_flags", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -2005,8 +1994,7 @@ "keep_alive": "packet_keep_alive", "pong": "packet_pong", "resource_pack_receive": "packet_resource_pack_receive" - }, - "default": "void" + } } ] } @@ -5538,8 +5526,7 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - }, - "default": "void" + } } ] } @@ -6114,8 +6101,7 @@ "tags": "packet_tags", "set_ticking_state": "packet_set_ticking_state", "step_tick": "packet_step_tick" - }, - "default": "void" + } } ] } @@ -7112,8 +7098,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -7329,8 +7314,7 @@ "configuration_acknowledged": "packet_configuration_acknowledged", "ping_request": "packet_ping_request", "set_slot_state": "packet_set_slot_state" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.20/protocol.json b/data/pc/1.20/protocol.json index ec8a5b6f4..044c84b28 100644 --- a/data/pc/1.20/protocol.json +++ b/data/pc/1.20/protocol.json @@ -121,8 +121,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -292,8 +291,7 @@ "fields": { "minecraft:block": "position", "minecraft:entity": "varint" - }, - "default": "void" + } } ] }, @@ -484,8 +482,7 @@ "sniffer_state": "varint", "vector3": "vec3f", "quaternion": "vec4f" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -1222,8 +1219,7 @@ "minecraft:template_rotation": "void", "minecraft:heightmap": "void", "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -1242,8 +1238,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -1337,8 +1332,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -1393,8 +1387,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1442,8 +1435,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1590,8 +1582,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1683,8 +1674,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -5149,8 +5139,7 @@ ] ], "minecraft:crafting_decorated_pot": "minecraft_simple_recipe_format" - }, - "default": "void" + } } ] } @@ -5678,8 +5667,7 @@ "entity_effect": "packet_entity_effect", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -6664,8 +6652,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -6834,8 +6821,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.7/protocol.json b/data/pc/1.7/protocol.json index 9357f5373..925b4616c 100644 --- a/data/pc/1.7/protocol.json +++ b/data/pc/1.7/protocol.json @@ -163,8 +163,7 @@ } ] ] - }, - "default": "void" + } } ], "entityMetadata": [ @@ -293,8 +292,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -349,8 +347,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -398,8 +395,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -487,8 +483,7 @@ "disconnect": "packet_disconnect", "encryption_begin": "packet_encryption_begin", "success": "packet_success" - }, - "default": "void" + } } ] } @@ -555,8 +550,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2365,8 +2359,7 @@ "scoreboard_team": "packet_scoreboard_team", "custom_payload": "packet_custom_payload", "kick_disconnect": "packet_kick_disconnect" - }, - "default": "void" + } } ] } @@ -2893,8 +2886,7 @@ "settings": "packet_settings", "client_command": "packet_client_command", "custom_payload": "packet_custom_payload" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.8/protocol.json b/data/pc/1.8/protocol.json index bd09fd7f6..5adb6d09d 100644 --- a/data/pc/1.8/protocol.json +++ b/data/pc/1.8/protocol.json @@ -133,8 +133,7 @@ } ] ] - }, - "default": "void" + } } ], "entityMetadata": [ @@ -263,8 +262,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -319,8 +317,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -368,8 +365,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -468,8 +464,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -536,8 +531,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2868,8 +2862,7 @@ "playerlist_header": "packet_playerlist_header", "resource_pack_send": "packet_resource_pack_send", "update_entity_nbt": "packet_update_entity_nbt" - }, - "default": "void" + } } ] } @@ -3399,8 +3392,7 @@ "custom_payload": "packet_custom_payload", "spectate": "packet_spectate", "resource_pack_receive": "packet_resource_pack_receive" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.9.1-pre2/protocol.json b/data/pc/1.9.1-pre2/protocol.json index 4e3952bfb..843163ca0 100644 --- a/data/pc/1.9.1-pre2/protocol.json +++ b/data/pc/1.9.1-pre2/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2987,8 +2981,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3609,8 +3602,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.9.2/protocol.json b/data/pc/1.9.2/protocol.json index 4e3952bfb..843163ca0 100644 --- a/data/pc/1.9.2/protocol.json +++ b/data/pc/1.9.2/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2987,8 +2981,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3609,8 +3602,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.9.4/protocol.json b/data/pc/1.9.4/protocol.json index 6afca6346..c0ecf4645 100644 --- a/data/pc/1.9.4/protocol.json +++ b/data/pc/1.9.4/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2970,8 +2964,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3592,8 +3585,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/1.9/protocol.json b/data/pc/1.9/protocol.json index a9037a859..1937314e7 100644 --- a/data/pc/1.9/protocol.json +++ b/data/pc/1.9/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2987,8 +2981,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3609,8 +3602,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/15w40b/protocol.json b/data/pc/15w40b/protocol.json index bc3a118b5..0f76cf3de 100644 --- a/data/pc/15w40b/protocol.json +++ b/data/pc/15w40b/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2907,8 +2901,7 @@ "boss_bar": "packet_boss_bar", "set_cooldown": "packet_set_cooldown", "unload_chunk": "packet_unload_chunk" - }, - "default": "void" + } } ] } @@ -3472,8 +3465,7 @@ "spectate": "packet_spectate", "resource_pack_receive": "packet_resource_pack_receive", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/16w20a/protocol.json b/data/pc/16w20a/protocol.json index 2d214a855..5cb75500d 100644 --- a/data/pc/16w20a/protocol.json +++ b/data/pc/16w20a/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2970,8 +2964,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3592,8 +3585,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/16w35a/protocol.json b/data/pc/16w35a/protocol.json index b55dd29e3..beead8daf 100644 --- a/data/pc/16w35a/protocol.json +++ b/data/pc/16w35a/protocol.json @@ -128,8 +128,7 @@ "UUID" ], "12": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -256,8 +255,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -312,8 +310,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -361,8 +358,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -461,8 +457,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -529,8 +524,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -2974,8 +2968,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3592,8 +3585,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/17w15a/protocol.json b/data/pc/17w15a/protocol.json index d90c457b1..783f6bf1f 100644 --- a/data/pc/17w15a/protocol.json +++ b/data/pc/17w15a/protocol.json @@ -129,8 +129,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -257,8 +256,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -313,8 +311,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -362,8 +359,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -462,8 +458,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -530,8 +525,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -3202,8 +3196,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3728,8 +3721,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3932,8 +3924,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/17w18b/protocol.json b/data/pc/17w18b/protocol.json index 15c175ffa..7ace89010 100644 --- a/data/pc/17w18b/protocol.json +++ b/data/pc/17w18b/protocol.json @@ -129,8 +129,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -257,8 +256,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -313,8 +311,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -362,8 +359,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -462,8 +458,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -530,8 +525,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -3196,8 +3190,7 @@ "entity_teleport": "packet_entity_teleport", "entity_head_rotation": "packet_entity_head_rotation", "entity_effect": "packet_entity_effect" - }, - "default": "void" + } } ] } @@ -3722,8 +3715,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3926,8 +3918,7 @@ "spectate": "packet_spectate", "block_place": "packet_block_place", "use_item": "packet_use_item" - }, - "default": "void" + } } ] } diff --git a/data/pc/17w50a/protocol.json b/data/pc/17w50a/protocol.json index e32c0c690..4c4472348 100644 --- a/data/pc/17w50a/protocol.json +++ b/data/pc/17w50a/protocol.json @@ -125,8 +125,7 @@ ], "12": "varint", "13": "nbt" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -253,8 +252,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -309,8 +307,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -358,8 +355,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -458,8 +454,7 @@ "encryption_begin": "packet_encryption_begin", "success": "packet_success", "compress": "packet_compress" - }, - "default": "void" + } } ] } @@ -526,8 +521,7 @@ "fields": { "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin" - }, - "default": "void" + } } ] } @@ -1536,8 +1530,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -3578,8 +3571,7 @@ "crafting_special_banneraddpattern": "void", "crafting_special_shielddecoration": "void", "crafting_special_shulkerboxcoloring": "void" - }, - "default": "void" + } } ] } @@ -3817,8 +3809,7 @@ "select_advancement_tab": "packet_select_advancement_tab", "declare_recipes": "packet_declare_recipes", "tags": "packet_tags" - }, - "default": "void" + } } ] } @@ -4288,8 +4279,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4423,8 +4413,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -4517,8 +4506,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/20w13b/protocol.json b/data/pc/20w13b/protocol.json index c5ab3a18b..3ac225832 100644 --- a/data/pc/20w13b/protocol.json +++ b/data/pc/20w13b/protocol.json @@ -63,8 +63,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -237,8 +236,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -697,8 +695,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -717,8 +714,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -812,8 +808,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -868,8 +863,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -917,8 +911,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1036,8 +1029,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1122,8 +1114,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -2269,8 +2260,7 @@ "type": "i32" } ] - }, - "default": "void" + } } ] }, @@ -4133,8 +4123,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4444,8 +4433,7 @@ "declare_recipes": "packet_declare_recipes", "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging" - }, - "default": "void" + } } ] } @@ -5147,8 +5135,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -5315,8 +5302,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5435,8 +5421,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] } diff --git a/data/pc/21w07a/protocol.json b/data/pc/21w07a/protocol.json index 783d3997c..4b0c78505 100644 --- a/data/pc/21w07a/protocol.json +++ b/data/pc/21w07a/protocol.json @@ -64,8 +64,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -238,8 +237,7 @@ ], "17": "optvarint", "18": "varint" - }, - "default": "void" + } } ], "entityMetadata": [ @@ -698,8 +696,7 @@ ] ], "minecraft:uuid": "void" - }, - "default": "void" + } } ] }, @@ -718,8 +715,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -813,8 +809,7 @@ "fields": { "set_protocol": "packet_set_protocol", "legacy_server_list_ping": "packet_legacy_server_list_ping" - }, - "default": "void" + } } ] } @@ -869,8 +864,7 @@ "fields": { "server_info": "packet_server_info", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -918,8 +912,7 @@ "fields": { "ping_start": "packet_ping_start", "ping": "packet_ping" - }, - "default": "void" + } } ] } @@ -1037,8 +1030,7 @@ "success": "packet_success", "compress": "packet_compress", "login_plugin_request": "packet_login_plugin_request" - }, - "default": "void" + } } ] } @@ -1123,8 +1115,7 @@ "login_start": "packet_login_start", "encryption_begin": "packet_encryption_begin", "login_plugin_response": "packet_login_plugin_response" - }, - "default": "void" + } } ] } @@ -4236,8 +4227,7 @@ } ] ] - }, - "default": "void" + } } ] } @@ -4584,8 +4574,7 @@ "tags": "packet_tags", "acknowledge_player_digging": "packet_acknowledge_player_digging", "sculk_vibration_signal": "packet_sculk_vibration_signal" - }, - "default": "void" + } } ] } @@ -5431,8 +5420,7 @@ "fields": { "0": "string", "1": "void" - }, - "default": "void" + } } ] } @@ -5555,8 +5543,7 @@ "block_place": "packet_block_place", "use_item": "packet_use_item", "advancement_tab": "packet_advancement_tab" - }, - "default": "void" + } } ] }