Skip to content

Instantly share code, notes, and snippets.

@rom1504
Created June 5, 2016 22:09
Show Gist options
  • Save rom1504/7303d8de115af0db8caee728f3d37f6f to your computer and use it in GitHub Desktop.
Save rom1504/7303d8de115af0db8caee728f3d37f6f to your computer and use it in GitHub Desktop.
diff example between 1.8 and 1.9.4
{
"play": {
"toClient": {
"oldTypes": {
"packet_login": [
"container",
[
{
"name": "entityId",
"type": "i32"
},
{
"name": "gameMode",
"type": "u8"
},
{
"name": "dimension",
"type": "i8"
},
{
"name": "difficulty",
"type": "u8"
},
{
"name": "maxPlayers",
"type": "u8"
},
{
"name": "levelType",
"type": "string"
},
{
"name": "reducedDebugInfo",
"type": "bool"
}
]
],
"packet_entity_equipment": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "slot",
"type": "i16"
},
{
"name": "item",
"type": "slot"
}
]
],
"packet_position": [
"container",
[
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "pitch",
"type": "f32"
},
{
"name": "flags",
"type": "i8"
}
]
],
"packet_named_entity_spawn": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "playerUUID",
"type": "UUID"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "currentItem",
"type": "i16"
},
{
"name": "metadata",
"type": "entityMetadata"
}
]
],
"packet_spawn_entity": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "type",
"type": "i8"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "objectData",
"type": [
"container",
[
{
"name": "intField",
"type": "i32"
},
{
"name": "velocityX",
"type": [
"switch",
{
"compareTo": "intField",
"fields": {
"0": "void"
},
"default": "i16"
}
]
},
{
"name": "velocityY",
"type": [
"switch",
{
"compareTo": "intField",
"fields": {
"0": "void"
},
"default": "i16"
}
]
},
{
"name": "velocityZ",
"type": [
"switch",
{
"compareTo": "intField",
"fields": {
"0": "void"
},
"default": "i16"
}
]
}
]
]
}
]
],
"packet_spawn_entity_living": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "type",
"type": "u8"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "headPitch",
"type": "i8"
},
{
"name": "velocityX",
"type": "i16"
},
{
"name": "velocityY",
"type": "i16"
},
{
"name": "velocityZ",
"type": "i16"
},
{
"name": "metadata",
"type": "entityMetadata"
}
]
],
"packet_spawn_entity_painting": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "title",
"type": "string"
},
{
"name": "location",
"type": "position"
},
{
"name": "direction",
"type": "u8"
}
]
],
"packet_spawn_entity_experience_orb": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "count",
"type": "i16"
}
]
],
"packet_rel_entity_move": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "dX",
"type": "i8"
},
{
"name": "dY",
"type": "i8"
},
{
"name": "dZ",
"type": "i8"
},
{
"name": "onGround",
"type": "bool"
}
]
],
"packet_entity_move_look": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "dX",
"type": "i8"
},
{
"name": "dY",
"type": "i8"
},
{
"name": "dZ",
"type": "i8"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "onGround",
"type": "bool"
}
]
],
"packet_entity_teleport": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "onGround",
"type": "bool"
}
]
],
"packet_attach_entity": [
"container",
[
{
"name": "entityId",
"type": "i32"
},
{
"name": "vehicleId",
"type": "i32"
},
{
"name": "leash",
"type": "bool"
}
]
],
"packet_entity_effect": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "effectId",
"type": "i8"
},
{
"name": "amplifier",
"type": "i8"
},
{
"name": "duration",
"type": "varint"
},
{
"name": "hideParticles",
"type": "bool"
}
]
],
"packet_update_attributes": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "properties",
"type": [
"array",
{
"countType": "i32",
"type": [
"container",
[
{
"name": "key",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "modifiers",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "UUID",
"type": "UUID"
},
{
"name": "amount",
"type": "f64"
},
{
"name": "operation",
"type": "i8"
}
]
]
}
]
}
]
]
}
]
}
]
],
"packet_map_chunk": [
"container",
[
{
"name": "x",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "groundUp",
"type": "bool"
},
{
"name": "bitMap",
"type": "u16"
},
{
"name": "chunkData",
"type": [
"buffer",
{
"countType": "varint"
}
]
}
]
],
"packet_map_chunk_bulk": [
"container",
[
{
"name": "skyLightSent",
"type": "bool"
},
{
"name": "meta",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "x",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "bitMap",
"type": "u16"
}
]
]
}
]
},
{
"name": "data",
"type": "restBuffer"
}
]
],
"packet_named_sound_effect": [
"container",
[
{
"name": "soundName",
"type": "string"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "volume",
"type": "f32"
},
{
"name": "pitch",
"type": "u8"
}
]
],
"packet_spawn_entity_weather": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "type",
"type": "i8"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
}
]
],
"packet_update_sign": [
"container",
[
{
"name": "location",
"type": "position"
},
{
"name": "text1",
"type": "string"
},
{
"name": "text2",
"type": "string"
},
{
"name": "text3",
"type": "string"
},
{
"name": "text4",
"type": "string"
}
]
],
"packet_map": [
"container",
[
{
"name": "itemDamage",
"type": "varint"
},
{
"name": "scale",
"type": "i8"
},
{
"name": "icons",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "directionAndType",
"type": "i8"
},
{
"name": "x",
"type": "i8"
},
{
"name": "y",
"type": "i8"
}
]
]
}
]
},
{
"name": "columns",
"type": "i8"
},
{
"name": "rows",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": "i8"
}
]
},
{
"name": "x",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": "i8"
}
]
},
{
"name": "y",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": "i8"
}
]
},
{
"name": "data",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": [
"buffer",
{
"countType": "varint"
}
]
}
]
}
]
],
"packet_scoreboard_team": [
"container",
[
{
"name": "team",
"type": "string"
},
{
"name": "mode",
"type": "i8"
},
{
"name": "name",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "prefix",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "suffix",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "friendlyFire",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "i8",
"2": "i8"
},
"default": "void"
}
]
},
{
"name": "nameTagVisibility",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "color",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "i8",
"2": "i8"
},
"default": "void"
}
]
},
{
"name": "players",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": [
"array",
{
"countType": "varint",
"type": "string"
}
],
"3": [
"array",
{
"countType": "varint",
"type": "string"
}
],
"4": [
"array",
{
"countType": "varint",
"type": "string"
}
]
},
"default": "void"
}
]
}
]
],
"packet_set_compression": [
"container",
[
{
"name": "threshold",
"type": "varint"
}
]
],
"packet_update_entity_nbt": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "tag",
"type": "nbt"
}
]
],
"packet": [
"container",
[
{
"name": "name",
"type": [
"mapper",
{
"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"
}
}
]
},
{
"name": "params",
"type": [
"switch",
{
"compareTo": "name",
"fields": {
"keep_alive": "packet_keep_alive",
"login": "packet_login",
"chat": "packet_chat",
"update_time": "packet_update_time",
"entity_equipment": "packet_entity_equipment",
"spawn_position": "packet_spawn_position",
"update_health": "packet_update_health",
"respawn": "packet_respawn",
"position": "packet_position",
"held_item_slot": "packet_held_item_slot",
"bed": "packet_bed",
"animation": "packet_animation",
"named_entity_spawn": "packet_named_entity_spawn",
"collect": "packet_collect",
"spawn_entity": "packet_spawn_entity",
"spawn_entity_living": "packet_spawn_entity_living",
"spawn_entity_painting": "packet_spawn_entity_painting",
"spawn_entity_experience_orb": "packet_spawn_entity_experience_orb",
"entity_velocity": "packet_entity_velocity",
"entity_destroy": "packet_entity_destroy",
"entity": "packet_entity",
"rel_entity_move": "packet_rel_entity_move",
"entity_look": "packet_entity_look",
"entity_move_look": "packet_entity_move_look",
"entity_teleport": "packet_entity_teleport",
"entity_head_rotation": "packet_entity_head_rotation",
"entity_status": "packet_entity_status",
"attach_entity": "packet_attach_entity",
"entity_metadata": "packet_entity_metadata",
"entity_effect": "packet_entity_effect",
"remove_entity_effect": "packet_remove_entity_effect",
"experience": "packet_experience",
"update_attributes": "packet_update_attributes",
"map_chunk": "packet_map_chunk",
"multi_block_change": "packet_multi_block_change",
"block_change": "packet_block_change",
"block_action": "packet_block_action",
"block_break_animation": "packet_block_break_animation",
"map_chunk_bulk": "packet_map_chunk_bulk",
"explosion": "packet_explosion",
"world_event": "packet_world_event",
"named_sound_effect": "packet_named_sound_effect",
"world_particles": "packet_world_particles",
"game_state_change": "packet_game_state_change",
"spawn_entity_weather": "packet_spawn_entity_weather",
"open_window": "packet_open_window",
"close_window": "packet_close_window",
"set_slot": "packet_set_slot",
"window_items": "packet_window_items",
"craft_progress_bar": "packet_craft_progress_bar",
"transaction": "packet_transaction",
"update_sign": "packet_update_sign",
"map": "packet_map",
"tile_entity_data": "packet_tile_entity_data",
"open_sign_entity": "packet_open_sign_entity",
"statistics": "packet_statistics",
"player_info": "packet_player_info",
"abilities": "packet_abilities",
"tab_complete": "packet_tab_complete",
"scoreboard_objective": "packet_scoreboard_objective",
"scoreboard_score": "packet_scoreboard_score",
"scoreboard_display_objective": "packet_scoreboard_display_objective",
"scoreboard_team": "packet_scoreboard_team",
"custom_payload": "packet_custom_payload",
"kick_disconnect": "packet_kick_disconnect",
"difficulty": "packet_difficulty",
"combat_event": "packet_combat_event",
"camera": "packet_camera",
"world_border": "packet_world_border",
"title": "packet_title",
"set_compression": "packet_set_compression",
"playerlist_header": "packet_playerlist_header",
"resource_pack_send": "packet_resource_pack_send",
"update_entity_nbt": "packet_update_entity_nbt"
}
}
]
}
]
]
},
"newTypes": {
"packet_spawn_entity": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "objectUUID",
"type": "UUID"
},
{
"name": "type",
"type": "i8"
},
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "intField",
"type": "i32"
},
{
"name": "velocityX",
"type": "i16"
},
{
"name": "velocityY",
"type": "i16"
},
{
"name": "velocityZ",
"type": "i16"
}
]
],
"packet_spawn_entity_experience_orb": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "count",
"type": "i16"
}
]
],
"packet_spawn_entity_weather": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "type",
"type": "i8"
},
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
}
]
],
"packet_spawn_entity_living": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "entityUUID",
"type": "UUID"
},
{
"name": "type",
"type": "u8"
},
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "headPitch",
"type": "i8"
},
{
"name": "velocityX",
"type": "i16"
},
{
"name": "velocityY",
"type": "i16"
},
{
"name": "velocityZ",
"type": "i16"
},
{
"name": "metadata",
"type": "entityMetadata"
}
]
],
"packet_spawn_entity_painting": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "entityUUID",
"type": "UUID"
},
{
"name": "title",
"type": "string"
},
{
"name": "location",
"type": "position"
},
{
"name": "direction",
"type": "u8"
}
]
],
"packet_named_entity_spawn": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "playerUUID",
"type": "UUID"
},
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "metadata",
"type": "entityMetadata"
}
]
],
"packet_boss_bar": [
"container",
[
{
"name": "entityUUID",
"type": "UUID"
},
{
"name": "action",
"type": "varint"
},
{
"name": "title",
"type": [
"switch",
{
"compareTo": "action",
"fields": {
"0": "string",
"3": "string"
},
"default": "void"
}
]
},
{
"name": "health",
"type": [
"switch",
{
"compareTo": "action",
"fields": {
"0": "f32",
"2": "f32"
},
"default": "void"
}
]
},
{
"name": "color",
"type": [
"switch",
{
"compareTo": "action",
"fields": {
"0": "varint",
"4": "varint"
},
"default": "void"
}
]
},
{
"name": "dividers",
"type": [
"switch",
{
"compareTo": "action",
"fields": {
"0": "varint",
"4": "varint"
},
"default": "void"
}
]
},
{
"name": "flags",
"type": [
"switch",
{
"compareTo": "action",
"fields": {
"0": "u8",
"5": "u8"
},
"default": "void"
}
]
}
]
],
"packet_set_cooldown": [
"container",
[
{
"name": "itemID",
"type": "varint"
},
{
"name": "cooldownTicks",
"type": "varint"
}
]
],
"packet_named_sound_effect": [
"container",
[
{
"name": "soundName",
"type": "string"
},
{
"name": "soundCategory",
"type": "varint"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "volume",
"type": "f32"
},
{
"name": "pitch",
"type": "u8"
}
]
],
"packet_unload_chunk": [
"container",
[
{
"name": "chunkX",
"type": "i32"
},
{
"name": "chunkZ",
"type": "i32"
}
]
],
"packet_map_chunk": [
"container",
[
{
"name": "x",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "groundUp",
"type": "bool"
},
{
"name": "bitMap",
"type": "varint"
},
{
"name": "chunkData",
"type": [
"buffer",
{
"countType": "varint"
}
]
},
{
"name": "blockEntities",
"type": [
"array",
{
"countType": "varint",
"type": "nbt"
}
]
}
]
],
"packet_login": [
"container",
[
{
"name": "entityId",
"type": "i32"
},
{
"name": "gameMode",
"type": "u8"
},
{
"name": "dimension",
"type": "i32"
},
{
"name": "difficulty",
"type": "u8"
},
{
"name": "maxPlayers",
"type": "u8"
},
{
"name": "levelType",
"type": "string"
},
{
"name": "reducedDebugInfo",
"type": "bool"
}
]
],
"packet_map": [
"container",
[
{
"name": "itemDamage",
"type": "varint"
},
{
"name": "scale",
"type": "i8"
},
{
"name": "trackingPosition",
"type": "bool"
},
{
"name": "icons",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "directionAndType",
"type": "i8"
},
{
"name": "x",
"type": "i8"
},
{
"name": "y",
"type": "i8"
}
]
]
}
]
},
{
"name": "columns",
"type": "i8"
},
{
"name": "rows",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": "i8"
}
]
},
{
"name": "x",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": "i8"
}
]
},
{
"name": "y",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": "i8"
}
]
},
{
"name": "data",
"type": [
"switch",
{
"compareTo": "columns",
"fields": {
"0": "void"
},
"default": [
"buffer",
{
"countType": "varint"
}
]
}
]
}
]
],
"packet_rel_entity_move": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "dX",
"type": "i16"
},
{
"name": "dY",
"type": "i16"
},
{
"name": "dZ",
"type": "i16"
},
{
"name": "onGround",
"type": "bool"
}
]
],
"packet_entity_move_look": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "dX",
"type": "i16"
},
{
"name": "dY",
"type": "i16"
},
{
"name": "dZ",
"type": "i16"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "onGround",
"type": "bool"
}
]
],
"packet_vehicle_move": [
"container",
[
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "pitch",
"type": "f32"
}
]
],
"packet_position": [
"container",
[
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "pitch",
"type": "f32"
},
{
"name": "flags",
"type": "i8"
},
{
"name": "teleportId",
"type": "varint"
}
]
],
"packet_attach_entity": [
"container",
[
{
"name": "entityId",
"type": "i32"
},
{
"name": "vehicleId",
"type": "i32"
}
]
],
"packet_entity_equipment": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "slot",
"type": "varint"
},
{
"name": "item",
"type": "slot"
}
]
],
"packet_set_passengers": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "passengers",
"type": [
"array",
{
"countType": "varint",
"type": "varint"
}
]
}
]
],
"packet_teams": [
"container",
[
{
"name": "team",
"type": "string"
},
{
"name": "mode",
"type": "i8"
},
{
"name": "name",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "prefix",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "suffix",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "friendlyFire",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "i8",
"2": "i8"
},
"default": "void"
}
]
},
{
"name": "nameTagVisibility",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "collisionRule",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "string",
"2": "string"
},
"default": "void"
}
]
},
{
"name": "color",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": "i8",
"2": "i8"
},
"default": "void"
}
]
},
{
"name": "players",
"type": [
"switch",
{
"compareTo": "mode",
"fields": {
"0": [
"array",
{
"countType": "varint",
"type": "string"
}
],
"3": [
"array",
{
"countType": "varint",
"type": "string"
}
],
"4": [
"array",
{
"countType": "varint",
"type": "string"
}
]
},
"default": "void"
}
]
}
]
],
"packet_sound_effect": [
"container",
[
{
"name": "soundId",
"type": "varint"
},
{
"name": "soundCatagory",
"type": "varint"
},
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
},
{
"name": "volume",
"type": "f32"
},
{
"name": "pitch",
"type": "u8"
}
]
],
"packet_entity_teleport": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "i8"
},
{
"name": "pitch",
"type": "i8"
},
{
"name": "onGround",
"type": "bool"
}
]
],
"packet_entity_update_attributes": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "properties",
"type": [
"array",
{
"countType": "i32",
"type": [
"container",
[
{
"name": "key",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "modifiers",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "uuid",
"type": "UUID"
},
{
"name": "amount",
"type": "f64"
},
{
"name": "operation",
"type": "i8"
}
]
]
}
]
}
]
]
}
]
}
]
],
"packet_entity_effect": [
"container",
[
{
"name": "entityId",
"type": "varint"
},
{
"name": "effectId",
"type": "i8"
},
{
"name": "amplifier",
"type": "i8"
},
{
"name": "duration",
"type": "varint"
},
{
"name": "hideParticles",
"type": "i8"
}
]
],
"packet": [
"container",
[
{
"name": "name",
"type": [
"mapper",
{
"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"
}
}
]
},
{
"name": "params",
"type": [
"switch",
{
"compareTo": "name",
"fields": {
"spawn_entity": "packet_spawn_entity",
"spawn_entity_experience_orb": "packet_spawn_entity_experience_orb",
"spawn_entity_weather": "packet_spawn_entity_weather",
"spawn_entity_living": "packet_spawn_entity_living",
"spawn_entity_painting": "packet_spawn_entity_painting",
"named_entity_spawn": "packet_named_entity_spawn",
"animation": "packet_animation",
"statistics": "packet_statistics",
"block_break_animation": "packet_block_break_animation",
"tile_entity_data": "packet_tile_entity_data",
"block_action": "packet_block_action",
"block_change": "packet_block_change",
"boss_bar": "packet_boss_bar",
"difficulty": "packet_difficulty",
"tab_complete": "packet_tab_complete",
"chat": "packet_chat",
"multi_block_change": "packet_multi_block_change",
"transaction": "packet_transaction",
"close_window": "packet_close_window",
"open_window": "packet_open_window",
"window_items": "packet_window_items",
"craft_progress_bar": "packet_craft_progress_bar",
"set_slot": "packet_set_slot",
"set_cooldown": "packet_set_cooldown",
"custom_payload": "packet_custom_payload",
"named_sound_effect": "packet_named_sound_effect",
"kick_disconnect": "packet_kick_disconnect",
"entity_status": "packet_entity_status",
"explosion": "packet_explosion",
"unload_chunk": "packet_unload_chunk",
"game_state_change": "packet_game_state_change",
"keep_alive": "packet_keep_alive",
"map_chunk": "packet_map_chunk",
"world_event": "packet_world_event",
"world_particles": "packet_world_particles",
"login": "packet_login",
"map": "packet_map",
"rel_entity_move": "packet_rel_entity_move",
"entity_move_look": "packet_entity_move_look",
"entity_look": "packet_entity_look",
"entity": "packet_entity",
"vehicle_move": "packet_vehicle_move",
"open_sign_entity": "packet_open_sign_entity",
"abilities": "packet_abilities",
"combat_event": "packet_combat_event",
"player_info": "packet_player_info",
"position": "packet_position",
"bed": "packet_bed",
"entity_destroy": "packet_entity_destroy",
"remove_entity_effect": "packet_remove_entity_effect",
"resource_pack_send": "packet_resource_pack_send",
"respawn": "packet_respawn",
"entity_update_attributes": "packet_entity_update_attributes",
"world_border": "packet_world_border",
"camera": "packet_camera",
"held_item_slot": "packet_held_item_slot",
"scoreboard_display_objective": "packet_scoreboard_display_objective",
"entity_metadata": "packet_entity_metadata",
"attach_entity": "packet_attach_entity",
"entity_velocity": "packet_entity_velocity",
"entity_equipment": "packet_entity_equipment",
"experience": "packet_experience",
"update_health": "packet_update_health",
"scoreboard_objective": "packet_scoreboard_objective",
"set_passengers": "packet_set_passengers",
"teams": "packet_teams",
"scoreboard_score": "packet_scoreboard_score",
"spawn_position": "packet_spawn_position",
"update_time": "packet_update_time",
"title": "packet_title",
"sound_effect": "packet_sound_effect",
"playerlist_header": "packet_playerlist_header",
"collect": "packet_collect",
"entity_teleport": "packet_entity_teleport",
"entity_head_rotation": "packet_entity_head_rotation",
"entity_effect": "packet_entity_effect"
}
}
]
}
]
]
}
},
"toServer": {
"oldTypes": {
"packet_use_entity": [
"container",
[
{
"name": "target",
"type": "varint"
},
{
"name": "mouse",
"type": "varint"
},
{
"name": "x",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"2": "f32"
},
"default": "void"
}
]
},
{
"name": "y",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"2": "f32"
},
"default": "void"
}
]
},
{
"name": "z",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"2": "f32"
},
"default": "void"
}
]
}
]
],
"packet_block_place": [
"container",
[
{
"name": "location",
"type": "position"
},
{
"name": "direction",
"type": "i8"
},
{
"name": "heldItem",
"type": "slot"
},
{
"name": "cursorX",
"type": "i8"
},
{
"name": "cursorY",
"type": "i8"
},
{
"name": "cursorZ",
"type": "i8"
}
]
],
"packet_arm_animation": [
"container",
[]
],
"packet_tab_complete": [
"container",
[
{
"name": "text",
"type": "string"
},
{
"name": "block",
"type": [
"option",
"position"
]
}
]
],
"packet_settings": [
"container",
[
{
"name": "locale",
"type": "string"
},
{
"name": "viewDistance",
"type": "i8"
},
{
"name": "chatFlags",
"type": "i8"
},
{
"name": "chatColors",
"type": "bool"
},
{
"name": "skinParts",
"type": "u8"
}
]
],
"packet_client_command": [
"container",
[
{
"name": "payload",
"type": "varint"
}
]
],
"packet": [
"container",
[
{
"name": "name",
"type": [
"mapper",
{
"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"
}
}
]
},
{
"name": "params",
"type": [
"switch",
{
"compareTo": "name",
"fields": {
"keep_alive": "packet_keep_alive",
"chat": "packet_chat",
"use_entity": "packet_use_entity",
"flying": "packet_flying",
"position": "packet_position",
"look": "packet_look",
"position_look": "packet_position_look",
"block_dig": "packet_block_dig",
"block_place": "packet_block_place",
"held_item_slot": "packet_held_item_slot",
"arm_animation": "packet_arm_animation",
"entity_action": "packet_entity_action",
"steer_vehicle": "packet_steer_vehicle",
"close_window": "packet_close_window",
"window_click": "packet_window_click",
"transaction": "packet_transaction",
"set_creative_slot": "packet_set_creative_slot",
"enchant_item": "packet_enchant_item",
"update_sign": "packet_update_sign",
"abilities": "packet_abilities",
"tab_complete": "packet_tab_complete",
"settings": "packet_settings",
"client_command": "packet_client_command",
"custom_payload": "packet_custom_payload",
"spectate": "packet_spectate",
"resource_pack_receive": "packet_resource_pack_receive"
}
}
]
}
]
]
},
"newTypes": {
"packet_teleport_confirm": [
"container",
[
{
"name": "teleportId",
"type": "varint"
}
]
],
"packet_tab_complete": [
"container",
[
{
"name": "text",
"type": "string"
},
{
"name": "assumeCommand",
"type": "bool"
},
{
"name": "lookedAtBlock",
"type": [
"option",
"position"
]
}
]
],
"packet_client_command": [
"container",
[
{
"name": "actionId",
"type": "varint"
}
]
],
"packet_settings": [
"container",
[
{
"name": "locale",
"type": "string"
},
{
"name": "viewDistance",
"type": "i8"
},
{
"name": "chatFlags",
"type": "varint"
},
{
"name": "chatColors",
"type": "bool"
},
{
"name": "skinParts",
"type": "u8"
},
{
"name": "mainHand",
"type": "varint"
}
]
],
"packet_use_entity": [
"container",
[
{
"name": "target",
"type": "varint"
},
{
"name": "mouse",
"type": "varint"
},
{
"name": "x",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"2": "f32"
},
"default": "void"
}
]
},
{
"name": "y",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"2": "f32"
},
"default": "void"
}
]
},
{
"name": "z",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"2": "f32"
},
"default": "void"
}
]
},
{
"name": "hand",
"type": [
"switch",
{
"compareTo": "mouse",
"fields": {
"0": "varint",
"2": "varint"
},
"default": "void"
}
]
}
]
],
"packet_vehicle_move": [
"container",
[
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "pitch",
"type": "f32"
}
]
],
"packet_steer_boat": [
"container",
[
{
"name": "unknown1",
"type": "bool"
},
{
"name": "unknown2",
"type": "bool"
}
]
],
"packet_arm_animation": [
"container",
[
{
"name": "hand",
"type": "varint"
}
]
],
"packet_block_place": [
"container",
[
{
"name": "location",
"type": "position"
},
{
"name": "direction",
"type": "varint"
},
{
"name": "hand",
"type": "varint"
},
{
"name": "cursorX",
"type": "i8"
},
{
"name": "cursorY",
"type": "i8"
},
{
"name": "cursorZ",
"type": "i8"
}
]
],
"packet_use_item": [
"container",
[
{
"name": "hand",
"type": "varint"
}
]
],
"packet": [
"container",
[
{
"name": "name",
"type": [
"mapper",
{
"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"
}
}
]
},
{
"name": "params",
"type": [
"switch",
{
"compareTo": "name",
"fields": {
"teleport_confirm": "packet_teleport_confirm",
"tab_complete": "packet_tab_complete",
"chat": "packet_chat",
"client_command": "packet_client_command",
"settings": "packet_settings",
"transaction": "packet_transaction",
"enchant_item": "packet_enchant_item",
"window_click": "packet_window_click",
"close_window": "packet_close_window",
"custom_payload": "packet_custom_payload",
"use_entity": "packet_use_entity",
"keep_alive": "packet_keep_alive",
"position": "packet_position",
"position_look": "packet_position_look",
"look": "packet_look",
"flying": "packet_flying",
"vehicle_move": "packet_vehicle_move",
"steer_boat": "packet_steer_boat",
"abilities": "packet_abilities",
"block_dig": "packet_block_dig",
"entity_action": "packet_entity_action",
"steer_vehicle": "packet_steer_vehicle",
"resource_pack_receive": "packet_resource_pack_receive",
"held_item_slot": "packet_held_item_slot",
"set_creative_slot": "packet_set_creative_slot",
"update_sign": "packet_update_sign",
"arm_animation": "packet_arm_animation",
"spectate": "packet_spectate",
"block_place": "packet_block_place",
"use_item": "packet_use_item"
}
}
]
}
]
]
}
}
},
"oldTypes": {
"entityMetadataItem": [
"switch",
{
"compareTo": "$compareTo",
"fields": {
"0": "i8",
"1": "i16",
"2": "i32",
"3": "f32",
"4": "string",
"5": "slot",
"6": [
"container",
[
{
"name": "x",
"type": "i32"
},
{
"name": "y",
"type": "i32"
},
{
"name": "z",
"type": "i32"
}
]
],
"7": [
"container",
[
{
"name": "pitch",
"type": "f32"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "roll",
"type": "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"
}
]
}
]
]
}
]
},
"newTypes": {
"entityMetadataItem": [
"switch",
{
"compareTo": "$compareTo",
"fields": {
"0": "i8",
"1": "varint",
"2": "f32",
"3": "string",
"4": "string",
"5": "slot",
"6": "bool",
"7": [
"container",
[
{
"name": "pitch",
"type": "f32"
},
{
"name": "yaw",
"type": "f32"
},
{
"name": "roll",
"type": "f32"
}
]
],
"8": "position",
"9": [
"option",
"position"
],
"10": "varint",
"11": [
"option",
"UUID"
],
"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"
}
]
}
]
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment