minecraft-data 2.93.1 → 2.97.0
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 +59 -0
- package/doc/api.md +4 -0
- package/doc/history.md +12 -0
- package/index.d.ts +1 -1
- package/lib/loader.js +2 -0
- package/minecraft-data/README.md +2 -2
- 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 +3171 -0
- package/minecraft-data/data/bedrock/1.17.10/protocol.json +5 -5
- package/minecraft-data/data/bedrock/1.17.10/types.yml +1703 -0
- package/minecraft-data/data/bedrock/1.17.30/proto.yml +3234 -0
- package/minecraft-data/data/bedrock/1.17.30/protocol.json +9366 -0
- 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 +18 -0
- package/minecraft-data/data/bedrock/common/versions.json +4 -1
- package/minecraft-data/data/bedrock/latest/proto.yml +124 -22
- package/minecraft-data/data/bedrock/latest/types.yml +80 -19
- package/minecraft-data/data/dataPaths.json +59 -0
- package/minecraft-data/data/pc/1.16.2/protocol.json +2 -2
- package/minecraft-data/data/pc/1.17/protocol.json +2 -2
- package/minecraft-data/data/pc/1.17.1/protocol.json +2 -2
- package/minecraft-data/data/pc/common/protocolVersions.json +154 -0
- package/minecraft-data/doc/add-data-new-version.md +2 -0
- package/minecraft-data/doc/history.md +12 -0
- package/minecraft-data/tools/js/compileProtocol.js +2 -2
- package/package.json +1 -1
- package/test/load.js +0 -6
- package/typings/index-template.d.ts +1 -1
package/data.js
CHANGED
|
@@ -1012,11 +1012,13 @@ module.exports =
|
|
|
1012
1012
|
},
|
|
1013
1013
|
'1.16.201': {
|
|
1014
1014
|
get protocol () { return require("./minecraft-data/data/bedrock/1.16.201/protocol.json") },
|
|
1015
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1015
1016
|
proto: __dirname + '/minecraft-data/data/bedrock/1.17.0/proto.yml',
|
|
1016
1017
|
types: __dirname + '/minecraft-data/data/bedrock/1.17.0/types.yml'
|
|
1017
1018
|
},
|
|
1018
1019
|
'1.16.210': {
|
|
1019
1020
|
get protocol () { return require("./minecraft-data/data/bedrock/1.16.210/protocol.json") },
|
|
1021
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1020
1022
|
proto: __dirname + '/minecraft-data/data/bedrock/1.17.0/proto.yml',
|
|
1021
1023
|
types: __dirname + '/minecraft-data/data/bedrock/1.17.0/types.yml'
|
|
1022
1024
|
},
|
|
@@ -1059,6 +1061,63 @@ module.exports =
|
|
|
1059
1061
|
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1060
1062
|
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.17.10/blocksB2J.json") },
|
|
1061
1063
|
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.17.10/blocksJ2B.json") },
|
|
1064
|
+
proto: __dirname + '/minecraft-data/data/bedrock/1.17.10/proto.yml',
|
|
1065
|
+
types: __dirname + '/minecraft-data/data/bedrock/1.17.10/types.yml'
|
|
1066
|
+
},
|
|
1067
|
+
'1.17.30': {
|
|
1068
|
+
get blocks () { return require("./minecraft-data/data/bedrock/1.17.10/blocks.json") },
|
|
1069
|
+
get blockStates () { return require("./minecraft-data/data/bedrock/1.17.10/blockStates.json") },
|
|
1070
|
+
get blockCollisionShapes () { return require("./minecraft-data/data/bedrock/1.17.10/blockCollisionShapes.json") },
|
|
1071
|
+
get biomes () { return require("./minecraft-data/data/bedrock/1.17.0/biomes.json") },
|
|
1072
|
+
get items () { return require("./minecraft-data/data/bedrock/1.17.10/items.json") },
|
|
1073
|
+
get recipes () { return require("./minecraft-data/data/bedrock/1.17.10/recipes.json") },
|
|
1074
|
+
get instruments () { return require("./minecraft-data/data/bedrock/1.17.0/instruments.json") },
|
|
1075
|
+
get materials () { return require("./minecraft-data/data/pc/1.17/materials.json") },
|
|
1076
|
+
get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
|
|
1077
|
+
get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
|
|
1078
|
+
get protocol () { return require("./minecraft-data/data/bedrock/1.17.30/protocol.json") },
|
|
1079
|
+
get windows () { return require("./minecraft-data/data/bedrock/1.16.201/windows.json") },
|
|
1080
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1081
|
+
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.17.10/blocksB2J.json") },
|
|
1082
|
+
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.17.10/blocksJ2B.json") },
|
|
1083
|
+
proto: __dirname + '/minecraft-data/data/bedrock/1.17.30/proto.yml',
|
|
1084
|
+
types: __dirname + '/minecraft-data/data/bedrock/1.17.30/types.yml'
|
|
1085
|
+
},
|
|
1086
|
+
'1.17.40': {
|
|
1087
|
+
get blocks () { return require("./minecraft-data/data/bedrock/1.17.10/blocks.json") },
|
|
1088
|
+
get blockStates () { return require("./minecraft-data/data/bedrock/1.17.10/blockStates.json") },
|
|
1089
|
+
get blockCollisionShapes () { return require("./minecraft-data/data/bedrock/1.17.10/blockCollisionShapes.json") },
|
|
1090
|
+
get biomes () { return require("./minecraft-data/data/bedrock/1.17.0/biomes.json") },
|
|
1091
|
+
get items () { return require("./minecraft-data/data/bedrock/1.17.10/items.json") },
|
|
1092
|
+
get recipes () { return require("./minecraft-data/data/bedrock/1.17.10/recipes.json") },
|
|
1093
|
+
get instruments () { return require("./minecraft-data/data/bedrock/1.17.0/instruments.json") },
|
|
1094
|
+
get materials () { return require("./minecraft-data/data/pc/1.17/materials.json") },
|
|
1095
|
+
get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
|
|
1096
|
+
get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
|
|
1097
|
+
get protocol () { return require("./minecraft-data/data/bedrock/1.17.40/protocol.json") },
|
|
1098
|
+
get windows () { return require("./minecraft-data/data/bedrock/1.16.201/windows.json") },
|
|
1099
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1100
|
+
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.17.10/blocksB2J.json") },
|
|
1101
|
+
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.17.10/blocksJ2B.json") },
|
|
1102
|
+
proto: __dirname + '/minecraft-data/data/bedrock/1.17.40/proto.yml',
|
|
1103
|
+
types: __dirname + '/minecraft-data/data/bedrock/1.17.40/types.yml'
|
|
1104
|
+
},
|
|
1105
|
+
'1.18.0': {
|
|
1106
|
+
get blocks () { return require("./minecraft-data/data/bedrock/1.18.0/blocks.json") },
|
|
1107
|
+
get blockStates () { return require("./minecraft-data/data/bedrock/1.18.0/blockStates.json") },
|
|
1108
|
+
get blockCollisionShapes () { return require("./minecraft-data/data/bedrock/1.18.0/blockCollisionShapes.json") },
|
|
1109
|
+
get biomes () { return require("./minecraft-data/data/bedrock/1.18.0/biomes.json") },
|
|
1110
|
+
get items () { return require("./minecraft-data/data/bedrock/1.18.0/items.json") },
|
|
1111
|
+
get recipes () { return require("./minecraft-data/data/bedrock/1.18.0/recipes.json") },
|
|
1112
|
+
get instruments () { return require("./minecraft-data/data/bedrock/1.17.0/instruments.json") },
|
|
1113
|
+
get materials () { return require("./minecraft-data/data/pc/1.17/materials.json") },
|
|
1114
|
+
get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
|
|
1115
|
+
get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
|
|
1116
|
+
get protocol () { return require("./minecraft-data/data/bedrock/1.18.0/protocol.json") },
|
|
1117
|
+
get windows () { return require("./minecraft-data/data/bedrock/1.16.201/windows.json") },
|
|
1118
|
+
get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
|
|
1119
|
+
get blocksB2J () { return require("./minecraft-data/data/bedrock/1.18.0/blocksB2J.json") },
|
|
1120
|
+
get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.18.0/blocksJ2B.json") },
|
|
1062
1121
|
proto: __dirname + '/minecraft-data/data/bedrock/latest/proto.yml',
|
|
1063
1122
|
types: __dirname + '/minecraft-data/data/bedrock/latest/types.yml'
|
|
1064
1123
|
}
|
package/doc/api.md
CHANGED
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/lib/loader.js
CHANGED
package/minecraft-data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Language independent module providing minecraft data for minecraft clients, serv
|
|
|
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
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), and 1.17
|
|
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
|
|
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
|
|
|
@@ -53,7 +53,7 @@ Data provided:
|
|
|
53
53
|
| Foods | list of foods each with there id, saturation, foodpoints and more |
|
|
54
54
|
| Commands | a tree structure for vanilla minecraft server commands, and some info needed to implement sub-parsers.
|
|
55
55
|
| Legacy | mappings between legacy (1.12) and post-flattening (1.13+) blocks and items ids
|
|
56
|
-
|
|
56
|
+
| Skin data | (bedrock edition) Skin geometry and texture data for steve skin
|
|
57
57
|
|
|
58
58
|
See more information about this data in the [documentation](http://prismarinejs.github.io/minecraft-data/)
|
|
59
59
|
|
|
@@ -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
|
{
|