clone only needed minecraft-data
This commit is contained in:
@@ -0,0 +1,652 @@
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"displayName": "Air",
|
||||
"name": "air",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": false,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": true,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"displayName": "Stone",
|
||||
"name": "stone",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"displayName": "Grass Block",
|
||||
"name": "grass block",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"displayName": "Dirt",
|
||||
"name": "dirt",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"displayName": "Cobblestone",
|
||||
"name": "cobblestone",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"displayName": "Wood Planks",
|
||||
"name": "wood planks",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"displayName": "Sapling",
|
||||
"name": "sapling",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"displayName": "Bedrock",
|
||||
"name": "bedrock",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": false,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"displayName": "Flowing Water",
|
||||
"name": "flowing water",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": false,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": true,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"displayName": "Stationary Water",
|
||||
"name": "stationary water",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": false,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": true,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"displayName": "Flowing Lava",
|
||||
"name": "flowing lava",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": false,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"displayName": "Stationary Lava",
|
||||
"name": "stationary lava",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": false,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"displayName": "Sand",
|
||||
"name": "sand",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"displayName": "Gravel",
|
||||
"name": "gravel",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"displayName": "Gold Ore",
|
||||
"name": "gold ore",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"displayName": "Iron Ore",
|
||||
"name": "iron ore",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"displayName": "Coal Ore",
|
||||
"name": "coal ore",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"displayName": "Wood",
|
||||
"name": "wood",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"displayName": "Leaves",
|
||||
"name": "leaves",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"displayName": "Sponge",
|
||||
"name": "sponge",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"displayName": "Glass",
|
||||
"name": "glass",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": true,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"displayName": "Red Cloth",
|
||||
"name": "red cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"displayName": "Orange Cloth",
|
||||
"name": "orange cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"displayName": "Yellow Cloth",
|
||||
"name": "yellow cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"displayName": "Lime Cloth",
|
||||
"name": "lime cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"displayName": "Green Cloth",
|
||||
"name": "green cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"displayName": "Aqua Green Cloth",
|
||||
"name": "aqua green cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"displayName": "Cyan Cloth",
|
||||
"name": "cyan cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"displayName": "Blue Cloth",
|
||||
"name": "blue cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"displayName": "Purple Cloth",
|
||||
"name": "purple cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
"displayName": "Indigo Cloth",
|
||||
"name": "indigo cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"displayName": "Violet Cloth",
|
||||
"name": "violet cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 32,
|
||||
"displayName": "Magenta Cloth",
|
||||
"name": "magenta cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 33,
|
||||
"displayName": "Pink Cloth",
|
||||
"name": "pink cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 34,
|
||||
"displayName": "Black Cloth",
|
||||
"name": "black cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 35,
|
||||
"displayName": "Gray Cloth",
|
||||
"name": "gray cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 36,
|
||||
"displayName": "White Cloth",
|
||||
"name": "white cloth",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 37,
|
||||
"displayName": "Dandelion",
|
||||
"name": "dandelion",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 38,
|
||||
"displayName": "Rose",
|
||||
"name": "rose",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 39,
|
||||
"displayName": "Brown Mushroom",
|
||||
"name": "brown mushroom",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 40,
|
||||
"displayName": "Red Mushroom",
|
||||
"name": "red mushroom",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 41,
|
||||
"displayName": "Block of Gold",
|
||||
"name": "block of gold",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 42,
|
||||
"displayName": "Block of Iron",
|
||||
"name": "block of iron",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 43,
|
||||
"displayName": "Double Slab",
|
||||
"name": "double slab",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 44,
|
||||
"displayName": "Slab",
|
||||
"name": "slab",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 45,
|
||||
"displayName": "Brick",
|
||||
"name": "brick",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 46,
|
||||
"displayName": "TNT",
|
||||
"name": "tnt",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 47,
|
||||
"displayName": "Bookshelf",
|
||||
"name": "bookshelf",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 48,
|
||||
"displayName": "Moss Stone",
|
||||
"name": "moss stone",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
},
|
||||
{
|
||||
"id": 49,
|
||||
"displayName": "Obsidian",
|
||||
"name": "obsidian",
|
||||
"hardness": 0,
|
||||
"stackSize": 0,
|
||||
"diggable": true,
|
||||
"boundingBox": "empty",
|
||||
"drops": [],
|
||||
"transparent": false,
|
||||
"emitLight": 0,
|
||||
"filterLight": 0
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
@@ -0,0 +1,446 @@
|
||||
{
|
||||
"types": {
|
||||
"u8": "native",
|
||||
"string": "native",
|
||||
"i8": "native",
|
||||
"i16": "native",
|
||||
"byte_array": "native"
|
||||
},
|
||||
"toServer": {
|
||||
"types": {
|
||||
"packet_player_identification": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "protocol_version",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "verification_key",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "unused",
|
||||
"type": "i8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_set_block": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "x",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "mode",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "block_type",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_position": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "x",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "yaw",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "pitch",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_message": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "unused",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "name",
|
||||
"type": [
|
||||
"mapper",
|
||||
{
|
||||
"type": "u8",
|
||||
"mappings": {
|
||||
"0x00": "player_identification",
|
||||
"0x05": "set_block",
|
||||
"0x08": "position",
|
||||
"0x0d": "message"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "params",
|
||||
"type": [
|
||||
"switch",
|
||||
{
|
||||
"compareTo": "name",
|
||||
"fields": {
|
||||
"player_identification": "packet_player_identification",
|
||||
"set_block": "packet_set_block",
|
||||
"position": "packet_position",
|
||||
"message": "packet_message"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"toClient": {
|
||||
"types": {
|
||||
"packet_server_identification": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "protocol_version",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "server_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "server_motd",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "user_type",
|
||||
"type": "i8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_ping": [
|
||||
"container",
|
||||
[]
|
||||
],
|
||||
"packet_level_initialize": [
|
||||
"container",
|
||||
[]
|
||||
],
|
||||
"packet_level_data_chunk": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "chunk_data",
|
||||
"type": "byte_array"
|
||||
},
|
||||
{
|
||||
"name": "percent_complete",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_level_finalize": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "x_size",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "y_size",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "z_size",
|
||||
"type": "i16"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_set_block": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "x",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "block_type",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_spawn_player": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "player_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "x",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "yaw",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "pitch",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_player_teleport": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "x",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "i16"
|
||||
},
|
||||
{
|
||||
"name": "yaw",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "pitch",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_position_and_orientation_update": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "change_in_x",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "change_in_y",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "change_in_z",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "yaw",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "pitch",
|
||||
"type": "i8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_position_update": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "change_in_x",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "change_in_y",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "change_in_z",
|
||||
"type": "i8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_orientation_update": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "yaw",
|
||||
"type": "u8"
|
||||
},
|
||||
{
|
||||
"name": "pitch",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_despawn_player": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_message": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "player_id",
|
||||
"type": "i8"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_disconnect_player": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "disconnect_reason",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet_update_user_type": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "user_type",
|
||||
"type": "u8"
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "name",
|
||||
"type": [
|
||||
"mapper",
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "params",
|
||||
"type": [
|
||||
"switch",
|
||||
{
|
||||
"compareTo": "name",
|
||||
"fields": {
|
||||
"server_identification": "packet_server_identification",
|
||||
"ping": "packet_ping",
|
||||
"level_initialize": "packet_level_initialize",
|
||||
"level_data_chunk": "packet_level_data_chunk",
|
||||
"level_finalize": "packet_level_finalize",
|
||||
"set_block": "packet_set_block",
|
||||
"spawn_player": "packet_spawn_player",
|
||||
"player_teleport": "packet_player_teleport",
|
||||
"position_and_orientation_update": "packet_position_and_orientation_update",
|
||||
"position_update": "packet_position_update",
|
||||
"orientation_update": "packet_orientation_update",
|
||||
"despawn_player": "packet_despawn_player",
|
||||
"message": "packet_message",
|
||||
"disconnect_player": "packet_disconnect_player",
|
||||
"update_user_type": "packet_update_user_type"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version":7,
|
||||
"minecraftVersion":"0.30c",
|
||||
"majorVersion":"0.30c"
|
||||
}
|
||||
Reference in New Issue
Block a user