minecraft-data 2.113.1 → 2.114.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 CHANGED
@@ -1081,6 +1081,30 @@ module.exports =
1081
1081
  get loginPacket () { return require("./minecraft-data/data/pc/1.18/loginPacket.json") },
1082
1082
  get tints () { return require("./minecraft-data/data/pc/1.17/tints.json") },
1083
1083
  get mapIcons () { return require("./minecraft-data/data/pc/1.16/mapIcons.json") }
1084
+ },
1085
+ '1.18.2': {
1086
+ get attributes () { return require("./minecraft-data/data/pc/1.17/attributes.json") },
1087
+ get blocks () { return require("./minecraft-data/data/pc/1.18/blocks.json") },
1088
+ get blockCollisionShapes () { return require("./minecraft-data/data/pc/1.17/blockCollisionShapes.json") },
1089
+ get biomes () { return require("./minecraft-data/data/pc/1.18/biomes.json") },
1090
+ get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
1091
+ get items () { return require("./minecraft-data/data/pc/1.18/items.json") },
1092
+ get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
1093
+ get recipes () { return require("./minecraft-data/data/pc/1.18/recipes.json") },
1094
+ get instruments () { return require("./minecraft-data/data/pc/1.16.1/instruments.json") },
1095
+ get materials () { return require("./minecraft-data/data/pc/1.18/materials.json") },
1096
+ get language () { return require("./minecraft-data/data/pc/1.18/language.json") },
1097
+ get entities () { return require("./minecraft-data/data/pc/1.18/entities.json") },
1098
+ get protocol () { return require("./minecraft-data/data/pc/1.18.2/protocol.json") },
1099
+ get windows () { return require("./minecraft-data/data/pc/1.16.1/windows.json") },
1100
+ get version () { return require("./minecraft-data/data/pc/1.18.1/version.json") },
1101
+ get foods () { return require("./minecraft-data/data/pc/1.17/foods.json") },
1102
+ get particles () { return require("./minecraft-data/data/pc/1.18/particles.json") },
1103
+ get blockLoot () { return require("./minecraft-data/data/pc/1.18/blockLoot.json") },
1104
+ get entityLoot () { return require("./minecraft-data/data/pc/1.18/entityLoot.json") },
1105
+ get loginPacket () { return require("./minecraft-data/data/pc/1.18/loginPacket.json") },
1106
+ get tints () { return require("./minecraft-data/data/pc/1.17/tints.json") },
1107
+ get mapIcons () { return require("./minecraft-data/data/pc/1.16/mapIcons.json") }
1084
1108
  }
1085
1109
  },
1086
1110
  'bedrock': {
package/doc/history.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 2.114.0
2
+ * update mcdata
3
+
4
+ ## 2.113.3
5
+ * update mcdata
6
+
7
+ ## 2.113.2
8
+ * update mcdata
9
+
10
+ ## 2.113.1
11
+ * update mcdata
12
+
1
13
  ## 2.113.1
2
14
  * Add block state IDs to all versions with block data
3
15
 
@@ -9,7 +9,7 @@ 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), 1.17, 1.17.1, 1.18 (1.18 and 1.18.1)
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 (1.18, 1.18.1, 1.18.2)
13
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
@@ -23,6 +23,7 @@ Minecraft-data is language independent, you can use it with these language speci
23
23
  | [McData](https://github.com/McEx/McData) | Elixir | protocol |
24
24
  | [ProtocolGen](https://github.com/Johni0702/ProtocolGen) | java | generated java files from protocol.json to read and write minecraft packets |
25
25
  | [mcdata](https://github.com/wlwanpan/mcdata) | Go | everything |
26
+ | [minecraft-data-rs](https://github.com/Trivernis/minecraft-data-rs) | Rust | everything |
26
27
 
27
28
  If you want to use minecraft-data in a new language, we advise you to [create a new wrapper](doc/make-a-new-wrapper.md)
28
29
 
@@ -9238,6 +9238,175 @@
9238
9238
  }
9239
9239
  ]
9240
9240
  ],
9241
+ "SubChunkEntryWithoutCaching": [
9242
+ "array",
9243
+ {
9244
+ "countType": "lu32",
9245
+ "type": [
9246
+ "container",
9247
+ [
9248
+ {
9249
+ "name": "dx",
9250
+ "type": "u8"
9251
+ },
9252
+ {
9253
+ "name": "dy",
9254
+ "type": "u8"
9255
+ },
9256
+ {
9257
+ "name": "dz",
9258
+ "type": "u8"
9259
+ },
9260
+ {
9261
+ "name": "result",
9262
+ "type": [
9263
+ "mapper",
9264
+ {
9265
+ "type": "u8",
9266
+ "mappings": {
9267
+ "0": "undefined",
9268
+ "1": "success",
9269
+ "2": "chunk_not_found",
9270
+ "3": "invalid_dimension",
9271
+ "4": "player_not_found",
9272
+ "5": "y_index_out_of_bounds",
9273
+ "6": "success_all_air"
9274
+ }
9275
+ }
9276
+ ]
9277
+ },
9278
+ {
9279
+ "name": "payload",
9280
+ "type": "ByteArray"
9281
+ },
9282
+ {
9283
+ "name": "heightmap_type",
9284
+ "type": [
9285
+ "mapper",
9286
+ {
9287
+ "type": "u8",
9288
+ "mappings": {
9289
+ "0": "no_data",
9290
+ "1": "has_data",
9291
+ "2": "too_high",
9292
+ "3": "too_low"
9293
+ }
9294
+ }
9295
+ ]
9296
+ },
9297
+ {
9298
+ "name": "heightmap",
9299
+ "type": [
9300
+ "switch",
9301
+ {
9302
+ "compareTo": "heightmap_type",
9303
+ "fields": {
9304
+ "has_data": [
9305
+ "buffer",
9306
+ {
9307
+ "count": 256
9308
+ }
9309
+ ]
9310
+ },
9311
+ "default": "void"
9312
+ }
9313
+ ]
9314
+ }
9315
+ ]
9316
+ ]
9317
+ }
9318
+ ],
9319
+ "SubChunkEntryWithCaching": [
9320
+ "array",
9321
+ {
9322
+ "countType": "lu32",
9323
+ "type": [
9324
+ "container",
9325
+ [
9326
+ {
9327
+ "name": "dx",
9328
+ "type": "u8"
9329
+ },
9330
+ {
9331
+ "name": "dy",
9332
+ "type": "u8"
9333
+ },
9334
+ {
9335
+ "name": "dz",
9336
+ "type": "u8"
9337
+ },
9338
+ {
9339
+ "name": "result",
9340
+ "type": [
9341
+ "mapper",
9342
+ {
9343
+ "type": "u8",
9344
+ "mappings": {
9345
+ "0": "undefined",
9346
+ "1": "success",
9347
+ "2": "chunk_not_found",
9348
+ "3": "invalid_dimension",
9349
+ "4": "player_not_found",
9350
+ "5": "y_index_out_of_bounds",
9351
+ "6": "success_all_air"
9352
+ }
9353
+ }
9354
+ ]
9355
+ },
9356
+ {
9357
+ "name": "payload",
9358
+ "type": [
9359
+ "switch",
9360
+ {
9361
+ "compareTo": "result",
9362
+ "fields": {
9363
+ "success_all_air": "void"
9364
+ },
9365
+ "default": "ByteArray"
9366
+ }
9367
+ ]
9368
+ },
9369
+ {
9370
+ "name": "heightmap_type",
9371
+ "type": [
9372
+ "mapper",
9373
+ {
9374
+ "type": "u8",
9375
+ "mappings": {
9376
+ "0": "no_data",
9377
+ "1": "has_data",
9378
+ "2": "too_high",
9379
+ "3": "too_low"
9380
+ }
9381
+ }
9382
+ ]
9383
+ },
9384
+ {
9385
+ "name": "heightmap",
9386
+ "type": [
9387
+ "switch",
9388
+ {
9389
+ "compareTo": "heightmap_type",
9390
+ "fields": {
9391
+ "has_data": [
9392
+ "buffer",
9393
+ {
9394
+ "count": 256
9395
+ }
9396
+ ]
9397
+ },
9398
+ "default": "void"
9399
+ }
9400
+ ]
9401
+ },
9402
+ {
9403
+ "name": "blob_id",
9404
+ "type": "lu64"
9405
+ }
9406
+ ]
9407
+ ]
9408
+ }
9409
+ ],
9241
9410
  "packet_subchunk": [
9242
9411
  "container",
9243
9412
  [
@@ -9250,126 +9419,20 @@
9250
9419
  "type": "zigzag32"
9251
9420
  },
9252
9421
  {
9253
- "name": "x",
9254
- "type": "zigzag32"
9255
- },
9256
- {
9257
- "name": "y",
9258
- "type": "zigzag32"
9259
- },
9260
- {
9261
- "name": "z",
9262
- "type": "zigzag32"
9422
+ "name": "origin",
9423
+ "type": "vec3i"
9263
9424
  },
9264
9425
  {
9265
9426
  "name": "entries",
9266
9427
  "type": [
9267
- "array",
9428
+ "switch",
9268
9429
  {
9269
- "countType": "lu32",
9270
- "type": [
9271
- "container",
9272
- [
9273
- {
9274
- "name": "dx",
9275
- "type": "u8"
9276
- },
9277
- {
9278
- "name": "dy",
9279
- "type": "u8"
9280
- },
9281
- {
9282
- "name": "dz",
9283
- "type": "u8"
9284
- },
9285
- {
9286
- "name": "result",
9287
- "type": [
9288
- "mapper",
9289
- {
9290
- "type": "u8",
9291
- "mappings": {
9292
- "0": "undefined",
9293
- "1": "success",
9294
- "2": "chunk_not_found",
9295
- "3": "invalid_dimension",
9296
- "4": "player_not_found",
9297
- "5": "y_index_out_of_bounds",
9298
- "6": "success_all_air"
9299
- }
9300
- }
9301
- ]
9302
- },
9303
- {
9304
- "name": "payload",
9305
- "type": [
9306
- "switch",
9307
- {
9308
- "compareTo": "result",
9309
- "fields": {
9310
- "success_all_air": "void"
9311
- },
9312
- "default": [
9313
- "switch",
9314
- {
9315
- "compareTo": "../cache_enabled",
9316
- "fields": {
9317
- "false": "ByteArray"
9318
- },
9319
- "default": "void"
9320
- }
9321
- ]
9322
- }
9323
- ]
9324
- },
9325
- {
9326
- "name": "heightmap_type",
9327
- "type": [
9328
- "mapper",
9329
- {
9330
- "type": "u8",
9331
- "mappings": {
9332
- "0": "no_data",
9333
- "1": "has_data",
9334
- "2": "too_high",
9335
- "3": "too_low"
9336
- }
9337
- }
9338
- ]
9339
- },
9340
- {
9341
- "name": "heightmap",
9342
- "type": [
9343
- "switch",
9344
- {
9345
- "compareTo": "heightmap_type",
9346
- "fields": {
9347
- "has_data": [
9348
- "buffer",
9349
- {
9350
- "count": 256
9351
- }
9352
- ]
9353
- },
9354
- "default": "void"
9355
- }
9356
- ]
9357
- },
9358
- {
9359
- "name": "blob_id",
9360
- "type": [
9361
- "switch",
9362
- {
9363
- "compareTo": "../cache_enabled",
9364
- "fields": {
9365
- "true": "lu64"
9366
- },
9367
- "default": "void"
9368
- }
9369
- ]
9370
- }
9371
- ]
9372
- ]
9430
+ "compareTo": "cache_enabled",
9431
+ "fields": {
9432
+ "true": "SubChunkEntryWithCaching",
9433
+ "false": "SubChunkEntryWithoutCaching"
9434
+ },
9435
+ "default": "void"
9373
9436
  }
9374
9437
  ]
9375
9438
  }
@@ -9382,6 +9445,10 @@
9382
9445
  "name": "dimension",
9383
9446
  "type": "zigzag32"
9384
9447
  },
9448
+ {
9449
+ "name": "origin",
9450
+ "type": "vec3i"
9451
+ },
9385
9452
  {
9386
9453
  "name": "requests",
9387
9454
  "type": [
@@ -9392,16 +9459,16 @@
9392
9459
  "container",
9393
9460
  [
9394
9461
  {
9395
- "name": "x",
9396
- "type": "zigzag32"
9462
+ "name": "dx",
9463
+ "type": "u8"
9397
9464
  },
9398
9465
  {
9399
- "name": "y",
9400
- "type": "zigzag32"
9466
+ "name": "dy",
9467
+ "type": "u8"
9401
9468
  },
9402
9469
  {
9403
- "name": "z",
9404
- "type": "zigzag32"
9470
+ "name": "dz",
9471
+ "type": "u8"
9405
9472
  }
9406
9473
  ]
9407
9474
  ]
@@ -3283,49 +3283,73 @@ packet_photo_info_request:
3283
3283
  !id: 0xad
3284
3284
  photo_id: zigzag64
3285
3285
 
3286
+ SubChunkEntryWithoutCaching: []lu32
3287
+ dx: u8
3288
+ dy: u8
3289
+ dz: u8
3290
+ result: u8 =>
3291
+ 0: undefined
3292
+ 1: success
3293
+ 2: chunk_not_found
3294
+ 3: invalid_dimension
3295
+ 4: player_not_found
3296
+ 5: y_index_out_of_bounds
3297
+ 6: success_all_air
3298
+ # Payload has the terrain data, if the chunk isn't empty and caching is disabled
3299
+ payload: ByteArray
3300
+ heightmap_type: u8 =>
3301
+ 0: no_data
3302
+ 1: has_data
3303
+ 2: too_high
3304
+ 3: too_low
3305
+ heightmap: heightmap_type ?
3306
+ if has_data: '["buffer", { "count": 256 }]'
3307
+
3308
+ SubChunkEntryWithCaching: []lu32
3309
+ dx: u8
3310
+ dy: u8
3311
+ dz: u8
3312
+ result: u8 =>
3313
+ 0: undefined
3314
+ 1: success
3315
+ 2: chunk_not_found
3316
+ 3: invalid_dimension
3317
+ 4: player_not_found
3318
+ 5: y_index_out_of_bounds
3319
+ 6: success_all_air
3320
+ # Payload has the terrain data, if the chunk isn't empty and caching is disabled
3321
+ payload: result ?
3322
+ if success_all_air: void
3323
+ default: ByteArray
3324
+ heightmap_type: u8 =>
3325
+ 0: no_data
3326
+ 1: has_data
3327
+ 2: too_high
3328
+ 3: too_low
3329
+ heightmap: heightmap_type ?
3330
+ if has_data: '["buffer", { "count": 256 }]'
3331
+ blob_id: lu64
3332
+
3286
3333
  # SubChunk sends data about multiple sub-chunks around a center point.
3287
3334
  packet_subchunk:
3288
3335
  !id: 0xae
3289
3336
  cache_enabled: bool
3290
3337
  dimension: zigzag32
3291
3338
  # Origin point
3292
- x: zigzag32
3293
- y: zigzag32
3294
- z: zigzag32
3295
- entries: []lu32
3296
- dx: u8
3297
- dy: u8
3298
- dz: u8
3299
- result: u8 =>
3300
- 0: undefined
3301
- 1: success
3302
- 2: chunk_not_found
3303
- 3: invalid_dimension
3304
- 4: player_not_found
3305
- 5: y_index_out_of_bounds
3306
- 6: success_all_air
3307
- # Payload has the terrain data, if the chunk isn't empty and caching is disabled
3308
- payload: result ?
3309
- if success_all_air: void
3310
- default: ../cache_enabled ?
3311
- if false: ByteArray
3312
- heightmap_type: u8 =>
3313
- 0: no_data
3314
- 1: has_data
3315
- 2: too_high
3316
- 3: too_low
3317
- heightmap: heightmap_type ?
3318
- if has_data: '["buffer", { "count": 256 }]'
3319
- blob_id: ../cache_enabled ?
3320
- if true: lu64
3339
+ origin: vec3i
3340
+ entries: cache_enabled ?
3341
+ if true: SubChunkEntryWithCaching
3342
+ if false: SubChunkEntryWithoutCaching
3321
3343
 
3322
3344
  packet_subchunk_request:
3323
3345
  !id: 0xaf
3324
3346
  dimension: zigzag32
3347
+ # Origin point
3348
+ origin: vec3i
3325
3349
  requests: []lu32
3326
- x: zigzag32
3327
- y: zigzag32
3328
- z: zigzag32
3350
+ dx: u8
3351
+ dy: u8
3352
+ dz: u8
3329
3353
 
3330
3354
  packet_client_start_item_cooldown:
3331
3355
  !id: 0xb0
@@ -1080,6 +1080,30 @@
1080
1080
  "loginPacket": "pc/1.18",
1081
1081
  "tints": "pc/1.17",
1082
1082
  "mapIcons": "pc/1.16"
1083
+ },
1084
+ "1.18.2": {
1085
+ "attributes": "pc/1.17",
1086
+ "blocks": "pc/1.18",
1087
+ "blockCollisionShapes": "pc/1.17",
1088
+ "biomes": "pc/1.18",
1089
+ "effects": "pc/1.17",
1090
+ "items": "pc/1.18",
1091
+ "enchantments": "pc/1.17",
1092
+ "recipes": "pc/1.18",
1093
+ "instruments": "pc/1.16.1",
1094
+ "materials": "pc/1.18",
1095
+ "language": "pc/1.18",
1096
+ "entities": "pc/1.18",
1097
+ "protocol": "pc/1.18.2",
1098
+ "windows": "pc/1.16.1",
1099
+ "version": "pc/1.18.1",
1100
+ "foods": "pc/1.17",
1101
+ "particles": "pc/1.18",
1102
+ "blockLoot": "pc/1.18",
1103
+ "entityLoot": "pc/1.18",
1104
+ "loginPacket": "pc/1.18",
1105
+ "tints": "pc/1.17",
1106
+ "mapIcons": "pc/1.16"
1083
1107
  }
1084
1108
  },
1085
1109
  "bedrock": {