minecraft-data 2.95.0 → 2.98.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data.js +41 -0
- package/doc/history.md +12 -0
- package/index.d.ts +1 -1
- package/minecraft-data/README.md +3 -3
- package/minecraft-data/data/bedrock/1.16.201/proto.yml +9 -9
- package/minecraft-data/data/bedrock/1.16.201/protocol.json +5 -5
- package/minecraft-data/data/bedrock/1.16.210/proto.yml +9 -9
- package/minecraft-data/data/bedrock/1.16.210/protocol.json +5 -5
- package/minecraft-data/data/bedrock/1.16.220/proto.yml +9 -9
- package/minecraft-data/data/bedrock/1.16.220/protocol.json +5 -5
- package/minecraft-data/data/bedrock/1.17.0/proto.yml +9 -9
- package/minecraft-data/data/bedrock/1.17.0/protocol.json +5 -5
- package/minecraft-data/data/bedrock/1.17.10/proto.yml +9 -9
- package/minecraft-data/data/bedrock/1.17.10/protocol.json +5 -5
- package/minecraft-data/data/bedrock/1.17.30/proto.yml +3234 -0
- package/minecraft-data/data/bedrock/1.17.30/protocol.json +8 -8
- package/minecraft-data/data/bedrock/1.17.30/types.yml +1749 -0
- package/minecraft-data/data/bedrock/1.17.40/proto.yml +3267 -0
- package/minecraft-data/data/bedrock/1.17.40/protocol.json +9493 -0
- package/minecraft-data/data/bedrock/1.17.40/types.yml +1764 -0
- package/minecraft-data/data/bedrock/1.18.0/biomes.json +968 -0
- package/minecraft-data/data/bedrock/1.18.0/blockCollisionShapes.json +862 -0
- package/minecraft-data/data/bedrock/1.18.0/blockStates.json +157214 -0
- package/minecraft-data/data/bedrock/1.18.0/blocks.json +12506 -0
- package/minecraft-data/data/bedrock/1.18.0/blocksB2J.json +6845 -0
- package/minecraft-data/data/bedrock/1.18.0/blocksJ2B.json +20344 -0
- package/minecraft-data/data/bedrock/1.18.0/items.json +9565 -0
- package/minecraft-data/data/bedrock/1.18.0/protocol.json +9515 -0
- package/minecraft-data/data/bedrock/1.18.0/recipes.json +16648 -0
- package/minecraft-data/data/bedrock/common/protocolVersions.json +12 -0
- package/minecraft-data/data/bedrock/common/versions.json +3 -1
- package/minecraft-data/data/bedrock/latest/proto.yml +52 -13
- package/minecraft-data/data/bedrock/latest/types.yml +31 -16
- package/minecraft-data/data/dataPaths.json +41 -0
- package/minecraft-data/data/pc/1.16.2/protocol.json +2 -2
- package/minecraft-data/data/pc/1.17/protocol.json +18 -21
- package/minecraft-data/data/pc/1.17.1/protocol.json +18 -21
- package/minecraft-data/data/pc/1.18/protocol.json +5622 -0
- package/minecraft-data/data/pc/1.18/version.json +5 -0
- package/minecraft-data/data/pc/common/protocolVersions.json +161 -0
- package/minecraft-data/doc/add-data-new-version.md +2 -0
- package/minecraft-data/doc/history.md +12 -0
- package/package.json +1 -1
- package/typings/index-template.d.ts +1 -1
package/data.js
CHANGED
|
@@ -987,6 +987,9 @@ module.exports =
|
|
|
987
987
|
get loginPacket () { return require("./minecraft-data/data/pc/1.17/loginPacket.json") },
|
|
988
988
|
get tints () { return require("./minecraft-data/data/pc/1.17/tints.json") },
|
|
989
989
|
get mapIcons () { return require("./minecraft-data/data/pc/1.16/mapIcons.json") }
|
|
990
|
+
},
|
|
991
|
+
'1.18': {
|
|
992
|
+
get protocol () { return require("./minecraft-data/data/pc/1.18/protocol.json") }
|
|
990
993
|
}
|
|
991
994
|
},
|
|
992
995
|
'bedrock': {
|
|
@@ -1080,6 +1083,44 @@ module.exports =
|
|
|
1080
1083
|
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1081
1084
|
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.17.10/blocksB2J.json") },
|
|
1082
1085
|
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.17.10/blocksJ2B.json") },
|
|
1086
|
+
proto: __dirname + '/minecraft-data/data/bedrock/1.17.30/proto.yml',
|
|
1087
|
+
types: __dirname + '/minecraft-data/data/bedrock/1.17.30/types.yml'
|
|
1088
|
+
},
|
|
1089
|
+
'1.17.40': {
|
|
1090
|
+
get blocks () { return require("./minecraft-data/data/bedrock/1.17.10/blocks.json") },
|
|
1091
|
+
get blockStates () { return require("./minecraft-data/data/bedrock/1.17.10/blockStates.json") },
|
|
1092
|
+
get blockCollisionShapes () { return require("./minecraft-data/data/bedrock/1.17.10/blockCollisionShapes.json") },
|
|
1093
|
+
get biomes () { return require("./minecraft-data/data/bedrock/1.17.0/biomes.json") },
|
|
1094
|
+
get items () { return require("./minecraft-data/data/bedrock/1.17.10/items.json") },
|
|
1095
|
+
get recipes () { return require("./minecraft-data/data/bedrock/1.17.10/recipes.json") },
|
|
1096
|
+
get instruments () { return require("./minecraft-data/data/bedrock/1.17.0/instruments.json") },
|
|
1097
|
+
get materials () { return require("./minecraft-data/data/pc/1.17/materials.json") },
|
|
1098
|
+
get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
|
|
1099
|
+
get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
|
|
1100
|
+
get protocol () { return require("./minecraft-data/data/bedrock/1.17.40/protocol.json") },
|
|
1101
|
+
get windows () { return require("./minecraft-data/data/bedrock/1.16.201/windows.json") },
|
|
1102
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1103
|
+
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.17.10/blocksB2J.json") },
|
|
1104
|
+
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.17.10/blocksJ2B.json") },
|
|
1105
|
+
proto: __dirname + '/minecraft-data/data/bedrock/1.17.40/proto.yml',
|
|
1106
|
+
types: __dirname + '/minecraft-data/data/bedrock/1.17.40/types.yml'
|
|
1107
|
+
},
|
|
1108
|
+
'1.18.0': {
|
|
1109
|
+
get blocks () { return require("./minecraft-data/data/bedrock/1.18.0/blocks.json") },
|
|
1110
|
+
get blockStates () { return require("./minecraft-data/data/bedrock/1.18.0/blockStates.json") },
|
|
1111
|
+
get blockCollisionShapes () { return require("./minecraft-data/data/bedrock/1.18.0/blockCollisionShapes.json") },
|
|
1112
|
+
get biomes () { return require("./minecraft-data/data/bedrock/1.18.0/biomes.json") },
|
|
1113
|
+
get items () { return require("./minecraft-data/data/bedrock/1.18.0/items.json") },
|
|
1114
|
+
get recipes () { return require("./minecraft-data/data/bedrock/1.18.0/recipes.json") },
|
|
1115
|
+
get instruments () { return require("./minecraft-data/data/bedrock/1.17.0/instruments.json") },
|
|
1116
|
+
get materials () { return require("./minecraft-data/data/pc/1.17/materials.json") },
|
|
1117
|
+
get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
|
|
1118
|
+
get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
|
|
1119
|
+
get protocol () { return require("./minecraft-data/data/bedrock/1.18.0/protocol.json") },
|
|
1120
|
+
get windows () { return require("./minecraft-data/data/bedrock/1.16.201/windows.json") },
|
|
1121
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1122
|
+
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.18.0/blocksB2J.json") },
|
|
1123
|
+
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.18.0/blocksJ2B.json") },
|
|
1083
1124
|
proto: __dirname + '/minecraft-data/data/bedrock/latest/proto.yml',
|
|
1084
1125
|
types: __dirname + '/minecraft-data/data/bedrock/latest/types.yml'
|
|
1085
1126
|
}
|
package/doc/history.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -862,7 +862,7 @@ declare namespace MinecraftData {
|
|
|
862
862
|
biomes: { [id: number]: Biome; };
|
|
863
863
|
biomesArray: Biome[];
|
|
864
864
|
|
|
865
|
-
recipes: { [id: number]: Recipe; };
|
|
865
|
+
recipes: { [id: number]: Recipe[]; };
|
|
866
866
|
|
|
867
867
|
instruments: { [id: number]: Instrument; };
|
|
868
868
|
instrumentsArray: Instrument[];
|
package/minecraft-data/README.md
CHANGED
|
@@ -9,8 +9,8 @@ Language independent module providing minecraft data for minecraft clients, serv
|
|
|
9
9
|
|
|
10
10
|
Supports
|
|
11
11
|
* Minecraft PC version 0.30c (classic), 1.7.10, 1.8.8, 1.9 (15w40b, 1.9, 1.9.1-pre2, 1.9.2, 1.9.4),
|
|
12
|
-
1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5),
|
|
13
|
-
* Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30
|
|
12
|
+
1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), 1.17, 1.17.1, 1.18
|
|
13
|
+
* Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0
|
|
14
14
|
|
|
15
15
|
## Wrappers
|
|
16
16
|
|
|
@@ -43,7 +43,7 @@ Data provided:
|
|
|
43
43
|
| Map icons | Provides all available map icons as used by (crafted) maps |
|
|
44
44
|
| Materials | to be used with blocks data. Provides tool speed multipliers against material types. |
|
|
45
45
|
| Particles | Id and names of minecraft particles |
|
|
46
|
-
| Protocol | a complete description of the protocol, can be used to automatically implement the protocol |
|
|
46
|
+
| Protocol | a complete description of the protocol, can be used to automatically implement the protocol, see [protodef doc](https://github.com/ProtoDef-io/ProtoDef) |
|
|
47
47
|
| Protocol Versions | the whole list of minecraft protocol versions |
|
|
48
48
|
| Recipes | to be used with blocks and items data |
|
|
49
49
|
| Windows | the different kind of windows and their characteristics |
|
|
@@ -184,7 +184,7 @@ packet_text:
|
|
|
184
184
|
message: string
|
|
185
185
|
if translation or popup or jukebox_popup:
|
|
186
186
|
message: string
|
|
187
|
-
|
|
187
|
+
parameters: string[]varint
|
|
188
188
|
# The XUID of the player who sent this message.
|
|
189
189
|
xuid: string
|
|
190
190
|
# PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for
|
|
@@ -1279,7 +1279,7 @@ packet_show_credits:
|
|
|
1279
1279
|
packet_available_commands:
|
|
1280
1280
|
!id: 0x4c
|
|
1281
1281
|
!bound: client
|
|
1282
|
-
# The length of the enums for all the command
|
|
1282
|
+
# The length of the enums for all the command parameters in this packet
|
|
1283
1283
|
values_len: varint
|
|
1284
1284
|
# Not read from stream: instead calculated from the `values_len` field
|
|
1285
1285
|
# If the values_len < 0xff => byte
|
|
@@ -1288,7 +1288,7 @@ packet_available_commands:
|
|
|
1288
1288
|
_enum_type: '["enum_size_based_on_values_len"]'
|
|
1289
1289
|
# Here all the enum values for all of the possible commands are stored to one array palette
|
|
1290
1290
|
enum_values: string[]$values_len
|
|
1291
|
-
# Integer
|
|
1291
|
+
# Integer parameters may sometimes have a prefix, such as the XP command:
|
|
1292
1292
|
# /xp <amount: int> [player: target] <- here, the xp command gives experience points
|
|
1293
1293
|
# /xp <amount: int>L [player: target] <- here, the xp command gives experience levels
|
|
1294
1294
|
# This is the palette of suffixes
|
|
@@ -1310,12 +1310,12 @@ packet_available_commands:
|
|
|
1310
1310
|
flags: u8
|
|
1311
1311
|
permission_level: u8
|
|
1312
1312
|
alias: li32
|
|
1313
|
-
# The list of overload
|
|
1313
|
+
# The list of overload parameters for this command
|
|
1314
1314
|
overloads: []varint
|
|
1315
|
-
# Each of the
|
|
1315
|
+
# Each of the parameters gets an array of posible overloads
|
|
1316
1316
|
_: []varint
|
|
1317
|
-
# The name of the
|
|
1318
|
-
|
|
1317
|
+
# The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
|
|
1318
|
+
parameter_name: string
|
|
1319
1319
|
value_type: lu16 =>
|
|
1320
1320
|
1: int
|
|
1321
1321
|
2: float
|
|
@@ -1336,7 +1336,7 @@ packet_available_commands:
|
|
|
1336
1336
|
0x20: enum
|
|
1337
1337
|
0x100: suffixed
|
|
1338
1338
|
0x400: soft_enum
|
|
1339
|
-
# Is this
|
|
1339
|
+
# Is this parameter required?
|
|
1340
1340
|
optional: bool
|
|
1341
1341
|
# Additinal options for this command (thanks macroshaft...)
|
|
1342
1342
|
options: CommandFlags
|
|
@@ -1415,7 +1415,7 @@ packet_command_output:
|
|
|
1415
1415
|
# Parameters is a list of parameters that serve to supply the message sent with additional information,
|
|
1416
1416
|
# such as the position that a player was teleported to or the effect that was applied to an entity.
|
|
1417
1417
|
# These parameters only apply for the Minecraft built-in command output.
|
|
1418
|
-
|
|
1418
|
+
parameters: string[]varint
|
|
1419
1419
|
|
|
1420
1420
|
|
|
1421
1421
|
# UpdateTrade is sent by the server to update the trades offered by a villager to a player. It is sent at the
|
|
@@ -3265,7 +3265,7 @@
|
|
|
3265
3265
|
"type": "string"
|
|
3266
3266
|
},
|
|
3267
3267
|
{
|
|
3268
|
-
"name": "
|
|
3268
|
+
"name": "parameters",
|
|
3269
3269
|
"type": [
|
|
3270
3270
|
"array",
|
|
3271
3271
|
{
|
|
@@ -3284,7 +3284,7 @@
|
|
|
3284
3284
|
"type": "string"
|
|
3285
3285
|
},
|
|
3286
3286
|
{
|
|
3287
|
-
"name": "
|
|
3287
|
+
"name": "parameters",
|
|
3288
3288
|
"type": [
|
|
3289
3289
|
"array",
|
|
3290
3290
|
{
|
|
@@ -3303,7 +3303,7 @@
|
|
|
3303
3303
|
"type": "string"
|
|
3304
3304
|
},
|
|
3305
3305
|
{
|
|
3306
|
-
"name": "
|
|
3306
|
+
"name": "parameters",
|
|
3307
3307
|
"type": [
|
|
3308
3308
|
"array",
|
|
3309
3309
|
{
|
|
@@ -5312,7 +5312,7 @@
|
|
|
5312
5312
|
"container",
|
|
5313
5313
|
[
|
|
5314
5314
|
{
|
|
5315
|
-
"name": "
|
|
5315
|
+
"name": "parameter_name",
|
|
5316
5316
|
"type": "string"
|
|
5317
5317
|
},
|
|
5318
5318
|
{
|
|
@@ -5511,7 +5511,7 @@
|
|
|
5511
5511
|
"type": "string"
|
|
5512
5512
|
},
|
|
5513
5513
|
{
|
|
5514
|
-
"name": "
|
|
5514
|
+
"name": "parameters",
|
|
5515
5515
|
"type": [
|
|
5516
5516
|
"array",
|
|
5517
5517
|
{
|
|
@@ -184,7 +184,7 @@ packet_text:
|
|
|
184
184
|
message: string
|
|
185
185
|
if translation or popup or jukebox_popup:
|
|
186
186
|
message: string
|
|
187
|
-
|
|
187
|
+
parameters: string[]varint
|
|
188
188
|
# The XUID of the player who sent this message.
|
|
189
189
|
xuid: string
|
|
190
190
|
# PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for
|
|
@@ -1318,7 +1318,7 @@ packet_show_credits:
|
|
|
1318
1318
|
packet_available_commands:
|
|
1319
1319
|
!id: 0x4c
|
|
1320
1320
|
!bound: client
|
|
1321
|
-
# The length of the enums for all the command
|
|
1321
|
+
# The length of the enums for all the command parameters in this packet
|
|
1322
1322
|
values_len: varint
|
|
1323
1323
|
# Not read from stream: instead calculated from the `values_len` field
|
|
1324
1324
|
# If the values_len < 0xff => byte
|
|
@@ -1327,7 +1327,7 @@ packet_available_commands:
|
|
|
1327
1327
|
_enum_type: '["enum_size_based_on_values_len"]'
|
|
1328
1328
|
# Here all the enum values for all of the possible commands are stored to one array palette
|
|
1329
1329
|
enum_values: string[]$values_len
|
|
1330
|
-
# Integer
|
|
1330
|
+
# Integer parameters may sometimes have a prefix, such as the XP command:
|
|
1331
1331
|
# /xp <amount: int> [player: target] <- here, the xp command gives experience points
|
|
1332
1332
|
# /xp <amount: int>L [player: target] <- here, the xp command gives experience levels
|
|
1333
1333
|
# This is the palette of suffixes
|
|
@@ -1349,12 +1349,12 @@ packet_available_commands:
|
|
|
1349
1349
|
flags: u8
|
|
1350
1350
|
permission_level: u8
|
|
1351
1351
|
alias: li32
|
|
1352
|
-
# The list of overload
|
|
1352
|
+
# The list of overload parameters for this command
|
|
1353
1353
|
overloads: []varint
|
|
1354
|
-
# Each of the
|
|
1354
|
+
# Each of the parameters gets an array of posible overloads
|
|
1355
1355
|
_: []varint
|
|
1356
|
-
# The name of the
|
|
1357
|
-
|
|
1356
|
+
# The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
|
|
1357
|
+
parameter_name: string
|
|
1358
1358
|
value_type: lu16 =>
|
|
1359
1359
|
1: int
|
|
1360
1360
|
2: float
|
|
@@ -1375,7 +1375,7 @@ packet_available_commands:
|
|
|
1375
1375
|
0x20: enum
|
|
1376
1376
|
0x100: suffixed
|
|
1377
1377
|
0x400: soft_enum
|
|
1378
|
-
# Is this
|
|
1378
|
+
# Is this parameter required?
|
|
1379
1379
|
optional: bool
|
|
1380
1380
|
# Additinal options for this command (thanks macroshaft...)
|
|
1381
1381
|
options: CommandFlags
|
|
@@ -1457,7 +1457,7 @@ packet_command_output:
|
|
|
1457
1457
|
# Parameters is a list of parameters that serve to supply the message sent with additional information,
|
|
1458
1458
|
# such as the position that a player was teleported to or the effect that was applied to an entity.
|
|
1459
1459
|
# These parameters only apply for the Minecraft built-in command output.
|
|
1460
|
-
|
|
1460
|
+
parameters: string[]varint
|
|
1461
1461
|
data_set: output_type ?
|
|
1462
1462
|
if data_set: string
|
|
1463
1463
|
default: void
|
|
@@ -3441,7 +3441,7 @@
|
|
|
3441
3441
|
"type": "string"
|
|
3442
3442
|
},
|
|
3443
3443
|
{
|
|
3444
|
-
"name": "
|
|
3444
|
+
"name": "parameters",
|
|
3445
3445
|
"type": [
|
|
3446
3446
|
"array",
|
|
3447
3447
|
{
|
|
@@ -3460,7 +3460,7 @@
|
|
|
3460
3460
|
"type": "string"
|
|
3461
3461
|
},
|
|
3462
3462
|
{
|
|
3463
|
-
"name": "
|
|
3463
|
+
"name": "parameters",
|
|
3464
3464
|
"type": [
|
|
3465
3465
|
"array",
|
|
3466
3466
|
{
|
|
@@ -3479,7 +3479,7 @@
|
|
|
3479
3479
|
"type": "string"
|
|
3480
3480
|
},
|
|
3481
3481
|
{
|
|
3482
|
-
"name": "
|
|
3482
|
+
"name": "parameters",
|
|
3483
3483
|
"type": [
|
|
3484
3484
|
"array",
|
|
3485
3485
|
{
|
|
@@ -5483,7 +5483,7 @@
|
|
|
5483
5483
|
"container",
|
|
5484
5484
|
[
|
|
5485
5485
|
{
|
|
5486
|
-
"name": "
|
|
5486
|
+
"name": "parameter_name",
|
|
5487
5487
|
"type": "string"
|
|
5488
5488
|
},
|
|
5489
5489
|
{
|
|
@@ -5693,7 +5693,7 @@
|
|
|
5693
5693
|
"type": "string"
|
|
5694
5694
|
},
|
|
5695
5695
|
{
|
|
5696
|
-
"name": "
|
|
5696
|
+
"name": "parameters",
|
|
5697
5697
|
"type": [
|
|
5698
5698
|
"array",
|
|
5699
5699
|
{
|
|
@@ -185,7 +185,7 @@ packet_text:
|
|
|
185
185
|
message: string
|
|
186
186
|
if translation or popup or jukebox_popup:
|
|
187
187
|
message: string
|
|
188
|
-
|
|
188
|
+
parameters: string[]varint
|
|
189
189
|
# The XUID of the player who sent this message.
|
|
190
190
|
xuid: string
|
|
191
191
|
# PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for
|
|
@@ -1457,7 +1457,7 @@ packet_show_credits:
|
|
|
1457
1457
|
packet_available_commands:
|
|
1458
1458
|
!id: 0x4c
|
|
1459
1459
|
!bound: client
|
|
1460
|
-
# The length of the enums for all the command
|
|
1460
|
+
# The length of the enums for all the command parameters in this packet
|
|
1461
1461
|
values_len: varint
|
|
1462
1462
|
# Not read from stream: instead calculated from the `values_len` field
|
|
1463
1463
|
#
|
|
@@ -1467,7 +1467,7 @@ packet_available_commands:
|
|
|
1467
1467
|
_enum_type: '["enum_size_based_on_values_len"]'
|
|
1468
1468
|
# Here all the enum values for all of the possible commands are stored to one array palette
|
|
1469
1469
|
enum_values: string[]$values_len
|
|
1470
|
-
# Integer
|
|
1470
|
+
# Integer parameters may sometimes have a prefix, such as the XP command:
|
|
1471
1471
|
# /xp <amount: int> [player: target] <- here, the xp command gives experience points
|
|
1472
1472
|
# /xp <amount: int>L [player: target] <- here, the xp command gives experience levels
|
|
1473
1473
|
# This is the palette of suffixes
|
|
@@ -1489,12 +1489,12 @@ packet_available_commands:
|
|
|
1489
1489
|
flags: u8
|
|
1490
1490
|
permission_level: u8
|
|
1491
1491
|
alias: li32
|
|
1492
|
-
# The list of overload
|
|
1492
|
+
# The list of overload parameters for this command
|
|
1493
1493
|
overloads: []varint
|
|
1494
|
-
# Each of the
|
|
1494
|
+
# Each of the parameters gets an array of posible overloads
|
|
1495
1495
|
_: []varint
|
|
1496
|
-
# The name of the
|
|
1497
|
-
|
|
1496
|
+
# The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
|
|
1497
|
+
parameter_name: string
|
|
1498
1498
|
value_type: lu16 =>
|
|
1499
1499
|
1: int
|
|
1500
1500
|
2: float
|
|
@@ -1515,7 +1515,7 @@ packet_available_commands:
|
|
|
1515
1515
|
0x20: enum
|
|
1516
1516
|
0x100: suffixed
|
|
1517
1517
|
0x400: soft_enum
|
|
1518
|
-
# Is this
|
|
1518
|
+
# Is this parameter required?
|
|
1519
1519
|
optional: bool
|
|
1520
1520
|
# Additinal options for this command (thanks macroshaft...)
|
|
1521
1521
|
options: CommandFlags
|
|
@@ -1644,7 +1644,7 @@ packet_command_output:
|
|
|
1644
1644
|
# Parameters is a list of parameters that serve to supply the message sent with additional information,
|
|
1645
1645
|
# such as the position that a player was teleported to or the effect that was applied to an entity.
|
|
1646
1646
|
# These parameters only apply for the Minecraft built-in command output.
|
|
1647
|
-
|
|
1647
|
+
parameters: string[]varint
|
|
1648
1648
|
data_set: output_type ?
|
|
1649
1649
|
if data_set: string
|
|
1650
1650
|
default: void
|
|
@@ -3892,7 +3892,7 @@
|
|
|
3892
3892
|
"type": "string"
|
|
3893
3893
|
},
|
|
3894
3894
|
{
|
|
3895
|
-
"name": "
|
|
3895
|
+
"name": "parameters",
|
|
3896
3896
|
"type": [
|
|
3897
3897
|
"array",
|
|
3898
3898
|
{
|
|
@@ -3911,7 +3911,7 @@
|
|
|
3911
3911
|
"type": "string"
|
|
3912
3912
|
},
|
|
3913
3913
|
{
|
|
3914
|
-
"name": "
|
|
3914
|
+
"name": "parameters",
|
|
3915
3915
|
"type": [
|
|
3916
3916
|
"array",
|
|
3917
3917
|
{
|
|
@@ -3930,7 +3930,7 @@
|
|
|
3930
3930
|
"type": "string"
|
|
3931
3931
|
},
|
|
3932
3932
|
{
|
|
3933
|
-
"name": "
|
|
3933
|
+
"name": "parameters",
|
|
3934
3934
|
"type": [
|
|
3935
3935
|
"array",
|
|
3936
3936
|
{
|
|
@@ -6064,7 +6064,7 @@
|
|
|
6064
6064
|
"container",
|
|
6065
6065
|
[
|
|
6066
6066
|
{
|
|
6067
|
-
"name": "
|
|
6067
|
+
"name": "parameter_name",
|
|
6068
6068
|
"type": "string"
|
|
6069
6069
|
},
|
|
6070
6070
|
{
|
|
@@ -6351,7 +6351,7 @@
|
|
|
6351
6351
|
"type": "string"
|
|
6352
6352
|
},
|
|
6353
6353
|
{
|
|
6354
|
-
"name": "
|
|
6354
|
+
"name": "parameters",
|
|
6355
6355
|
"type": [
|
|
6356
6356
|
"array",
|
|
6357
6357
|
{
|
|
@@ -185,7 +185,7 @@ packet_text:
|
|
|
185
185
|
message: string
|
|
186
186
|
if translation or popup or jukebox_popup:
|
|
187
187
|
message: string
|
|
188
|
-
|
|
188
|
+
parameters: string[]varint
|
|
189
189
|
# The XUID of the player who sent this message.
|
|
190
190
|
xuid: string
|
|
191
191
|
# PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for
|
|
@@ -1459,7 +1459,7 @@ packet_show_credits:
|
|
|
1459
1459
|
packet_available_commands:
|
|
1460
1460
|
!id: 0x4c
|
|
1461
1461
|
!bound: client
|
|
1462
|
-
# The length of the enums for all the command
|
|
1462
|
+
# The length of the enums for all the command parameters in this packet
|
|
1463
1463
|
values_len: varint
|
|
1464
1464
|
# Not read from stream: instead calculated from the `values_len` field
|
|
1465
1465
|
#
|
|
@@ -1469,7 +1469,7 @@ packet_available_commands:
|
|
|
1469
1469
|
_enum_type: '["enum_size_based_on_values_len"]'
|
|
1470
1470
|
# Here all the enum values for all of the possible commands are stored to one array palette
|
|
1471
1471
|
enum_values: string[]$values_len
|
|
1472
|
-
# Integer
|
|
1472
|
+
# Integer parameters may sometimes have a prefix, such as the XP command:
|
|
1473
1473
|
# /xp <amount: int> [player: target] <- here, the xp command gives experience points
|
|
1474
1474
|
# /xp <amount: int>L [player: target] <- here, the xp command gives experience levels
|
|
1475
1475
|
# This is the palette of suffixes
|
|
@@ -1491,12 +1491,12 @@ packet_available_commands:
|
|
|
1491
1491
|
flags: u8
|
|
1492
1492
|
permission_level: u8
|
|
1493
1493
|
alias: li32
|
|
1494
|
-
# The list of overload
|
|
1494
|
+
# The list of overload parameters for this command
|
|
1495
1495
|
overloads: []varint
|
|
1496
|
-
# Each of the
|
|
1496
|
+
# Each of the parameters gets an array of posible overloads
|
|
1497
1497
|
_: []varint
|
|
1498
|
-
# The name of the
|
|
1499
|
-
|
|
1498
|
+
# The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
|
|
1499
|
+
parameter_name: string
|
|
1500
1500
|
value_type: lu16 =>
|
|
1501
1501
|
1: int
|
|
1502
1502
|
2: float
|
|
@@ -1517,7 +1517,7 @@ packet_available_commands:
|
|
|
1517
1517
|
0x20: enum
|
|
1518
1518
|
0x100: suffixed
|
|
1519
1519
|
0x400: soft_enum
|
|
1520
|
-
# Is this
|
|
1520
|
+
# Is this parameter required?
|
|
1521
1521
|
optional: bool
|
|
1522
1522
|
# Additinal options for this command (thanks macroshaft...)
|
|
1523
1523
|
options: CommandFlags
|
|
@@ -1646,7 +1646,7 @@ packet_command_output:
|
|
|
1646
1646
|
# Parameters is a list of parameters that serve to supply the message sent with additional information,
|
|
1647
1647
|
# such as the position that a player was teleported to or the effect that was applied to an entity.
|
|
1648
1648
|
# These parameters only apply for the Minecraft built-in command output.
|
|
1649
|
-
|
|
1649
|
+
parameters: string[]varint
|
|
1650
1650
|
data_set: output_type ?
|
|
1651
1651
|
if data_set: string
|
|
1652
1652
|
default: void
|
|
@@ -3966,7 +3966,7 @@
|
|
|
3966
3966
|
"type": "string"
|
|
3967
3967
|
},
|
|
3968
3968
|
{
|
|
3969
|
-
"name": "
|
|
3969
|
+
"name": "parameters",
|
|
3970
3970
|
"type": [
|
|
3971
3971
|
"array",
|
|
3972
3972
|
{
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
"type": "string"
|
|
3986
3986
|
},
|
|
3987
3987
|
{
|
|
3988
|
-
"name": "
|
|
3988
|
+
"name": "parameters",
|
|
3989
3989
|
"type": [
|
|
3990
3990
|
"array",
|
|
3991
3991
|
{
|
|
@@ -4004,7 +4004,7 @@
|
|
|
4004
4004
|
"type": "string"
|
|
4005
4005
|
},
|
|
4006
4006
|
{
|
|
4007
|
-
"name": "
|
|
4007
|
+
"name": "parameters",
|
|
4008
4008
|
"type": [
|
|
4009
4009
|
"array",
|
|
4010
4010
|
{
|
|
@@ -6143,7 +6143,7 @@
|
|
|
6143
6143
|
"container",
|
|
6144
6144
|
[
|
|
6145
6145
|
{
|
|
6146
|
-
"name": "
|
|
6146
|
+
"name": "parameter_name",
|
|
6147
6147
|
"type": "string"
|
|
6148
6148
|
},
|
|
6149
6149
|
{
|
|
@@ -6430,7 +6430,7 @@
|
|
|
6430
6430
|
"type": "string"
|
|
6431
6431
|
},
|
|
6432
6432
|
{
|
|
6433
|
-
"name": "
|
|
6433
|
+
"name": "parameters",
|
|
6434
6434
|
"type": [
|
|
6435
6435
|
"array",
|
|
6436
6436
|
{
|
|
@@ -187,7 +187,7 @@ packet_text:
|
|
|
187
187
|
message: string
|
|
188
188
|
if translation or popup or jukebox_popup:
|
|
189
189
|
message: string
|
|
190
|
-
|
|
190
|
+
parameters: string[]varint
|
|
191
191
|
# The XUID of the player who sent this message.
|
|
192
192
|
xuid: string
|
|
193
193
|
# PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for
|
|
@@ -1542,7 +1542,7 @@ packet_show_credits:
|
|
|
1542
1542
|
packet_available_commands:
|
|
1543
1543
|
!id: 0x4c
|
|
1544
1544
|
!bound: client
|
|
1545
|
-
# The length of the enums for all the command
|
|
1545
|
+
# The length of the enums for all the command parameters in this packet
|
|
1546
1546
|
values_len: varint
|
|
1547
1547
|
# Not read from stream: instead calculated from the `values_len` field
|
|
1548
1548
|
#
|
|
@@ -1552,7 +1552,7 @@ packet_available_commands:
|
|
|
1552
1552
|
_enum_type: '["enum_size_based_on_values_len"]'
|
|
1553
1553
|
# Here all the enum values for all of the possible commands are stored to one array palette
|
|
1554
1554
|
enum_values: string[]$values_len
|
|
1555
|
-
# Integer
|
|
1555
|
+
# Integer parameters may sometimes have a prefix, such as the XP command:
|
|
1556
1556
|
# /xp <amount: int> [player: target] <- here, the xp command gives experience points
|
|
1557
1557
|
# /xp <amount: int>L [player: target] <- here, the xp command gives experience levels
|
|
1558
1558
|
# This is the palette of suffixes
|
|
@@ -1574,12 +1574,12 @@ packet_available_commands:
|
|
|
1574
1574
|
flags: lu16
|
|
1575
1575
|
permission_level: u8
|
|
1576
1576
|
alias: li32
|
|
1577
|
-
# The list of overload
|
|
1577
|
+
# The list of overload parameters for this command
|
|
1578
1578
|
overloads: []varint
|
|
1579
|
-
# Each of the
|
|
1579
|
+
# Each of the parameters gets an array of posible overloads
|
|
1580
1580
|
_: []varint
|
|
1581
|
-
# The name of the
|
|
1582
|
-
|
|
1581
|
+
# The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
|
|
1582
|
+
parameter_name: string
|
|
1583
1583
|
value_type: lu16 =>
|
|
1584
1584
|
1: int
|
|
1585
1585
|
2: float
|
|
@@ -1600,7 +1600,7 @@ packet_available_commands:
|
|
|
1600
1600
|
0x20: enum
|
|
1601
1601
|
0x100: suffixed
|
|
1602
1602
|
0x400: soft_enum
|
|
1603
|
-
# Is this
|
|
1603
|
+
# Is this parameter required?
|
|
1604
1604
|
optional: bool
|
|
1605
1605
|
# Additinal options for this command (thanks macroshaft...)
|
|
1606
1606
|
options: CommandFlags
|
|
@@ -1729,7 +1729,7 @@ packet_command_output:
|
|
|
1729
1729
|
# Parameters is a list of parameters that serve to supply the message sent with additional information,
|
|
1730
1730
|
# such as the position that a player was teleported to or the effect that was applied to an entity.
|
|
1731
1731
|
# These parameters only apply for the Minecraft built-in command output.
|
|
1732
|
-
|
|
1732
|
+
parameters: string[]varint
|
|
1733
1733
|
data_set: output_type ?
|
|
1734
1734
|
if data_set: string
|
|
1735
1735
|
default: void
|
|
@@ -3976,7 +3976,7 @@
|
|
|
3976
3976
|
"type": "string"
|
|
3977
3977
|
},
|
|
3978
3978
|
{
|
|
3979
|
-
"name": "
|
|
3979
|
+
"name": "parameters",
|
|
3980
3980
|
"type": [
|
|
3981
3981
|
"array",
|
|
3982
3982
|
{
|
|
@@ -3995,7 +3995,7 @@
|
|
|
3995
3995
|
"type": "string"
|
|
3996
3996
|
},
|
|
3997
3997
|
{
|
|
3998
|
-
"name": "
|
|
3998
|
+
"name": "parameters",
|
|
3999
3999
|
"type": [
|
|
4000
4000
|
"array",
|
|
4001
4001
|
{
|
|
@@ -4014,7 +4014,7 @@
|
|
|
4014
4014
|
"type": "string"
|
|
4015
4015
|
},
|
|
4016
4016
|
{
|
|
4017
|
-
"name": "
|
|
4017
|
+
"name": "parameters",
|
|
4018
4018
|
"type": [
|
|
4019
4019
|
"array",
|
|
4020
4020
|
{
|
|
@@ -6233,7 +6233,7 @@
|
|
|
6233
6233
|
"container",
|
|
6234
6234
|
[
|
|
6235
6235
|
{
|
|
6236
|
-
"name": "
|
|
6236
|
+
"name": "parameter_name",
|
|
6237
6237
|
"type": "string"
|
|
6238
6238
|
},
|
|
6239
6239
|
{
|
|
@@ -6520,7 +6520,7 @@
|
|
|
6520
6520
|
"type": "string"
|
|
6521
6521
|
},
|
|
6522
6522
|
{
|
|
6523
|
-
"name": "
|
|
6523
|
+
"name": "parameters",
|
|
6524
6524
|
"type": [
|
|
6525
6525
|
"array",
|
|
6526
6526
|
{
|