minecraft-data 2.113.1 → 2.113.2

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/doc/history.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.113.2
2
+ * update mcdata
3
+
4
+ ## 2.113.1
5
+ * update mcdata
6
+
1
7
  ## 2.113.1
2
8
  * Add block state IDs to all versions with block data
3
9
 
@@ -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,179 @@
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
+ "name": "blob_id",
9317
+ "type": "lu64"
9318
+ }
9319
+ ]
9320
+ ]
9321
+ }
9322
+ ],
9323
+ "SubChunkEntryWithCaching": [
9324
+ "array",
9325
+ {
9326
+ "countType": "lu32",
9327
+ "type": [
9328
+ "container",
9329
+ [
9330
+ {
9331
+ "name": "dx",
9332
+ "type": "u8"
9333
+ },
9334
+ {
9335
+ "name": "dy",
9336
+ "type": "u8"
9337
+ },
9338
+ {
9339
+ "name": "dz",
9340
+ "type": "u8"
9341
+ },
9342
+ {
9343
+ "name": "result",
9344
+ "type": [
9345
+ "mapper",
9346
+ {
9347
+ "type": "u8",
9348
+ "mappings": {
9349
+ "0": "undefined",
9350
+ "1": "success",
9351
+ "2": "chunk_not_found",
9352
+ "3": "invalid_dimension",
9353
+ "4": "player_not_found",
9354
+ "5": "y_index_out_of_bounds",
9355
+ "6": "success_all_air"
9356
+ }
9357
+ }
9358
+ ]
9359
+ },
9360
+ {
9361
+ "name": "payload",
9362
+ "type": [
9363
+ "switch",
9364
+ {
9365
+ "compareTo": "result",
9366
+ "fields": {
9367
+ "success_all_air": "void"
9368
+ },
9369
+ "default": "ByteArray"
9370
+ }
9371
+ ]
9372
+ },
9373
+ {
9374
+ "name": "heightmap_type",
9375
+ "type": [
9376
+ "mapper",
9377
+ {
9378
+ "type": "u8",
9379
+ "mappings": {
9380
+ "0": "no_data",
9381
+ "1": "has_data",
9382
+ "2": "too_high",
9383
+ "3": "too_low"
9384
+ }
9385
+ }
9386
+ ]
9387
+ },
9388
+ {
9389
+ "name": "heightmap",
9390
+ "type": [
9391
+ "switch",
9392
+ {
9393
+ "compareTo": "heightmap_type",
9394
+ "fields": {
9395
+ "has_data": [
9396
+ "buffer",
9397
+ {
9398
+ "count": 256
9399
+ }
9400
+ ]
9401
+ },
9402
+ "default": "void"
9403
+ }
9404
+ ]
9405
+ },
9406
+ {
9407
+ "name": "blob_id",
9408
+ "type": "lu64"
9409
+ }
9410
+ ]
9411
+ ]
9412
+ }
9413
+ ],
9241
9414
  "packet_subchunk": [
9242
9415
  "container",
9243
9416
  [
@@ -9250,126 +9423,20 @@
9250
9423
  "type": "zigzag32"
9251
9424
  },
9252
9425
  {
9253
- "name": "x",
9254
- "type": "zigzag32"
9255
- },
9256
- {
9257
- "name": "y",
9258
- "type": "zigzag32"
9259
- },
9260
- {
9261
- "name": "z",
9262
- "type": "zigzag32"
9426
+ "name": "origin",
9427
+ "type": "vec3i"
9263
9428
  },
9264
9429
  {
9265
9430
  "name": "entries",
9266
9431
  "type": [
9267
- "array",
9432
+ "switch",
9268
9433
  {
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
- ]
9434
+ "compareTo": "cache_enabled",
9435
+ "fields": {
9436
+ "true": "SubChunkEntryWithCaching",
9437
+ "false": "SubChunkEntryWithoutCaching"
9438
+ },
9439
+ "default": "void"
9373
9440
  }
9374
9441
  ]
9375
9442
  }
@@ -9382,6 +9449,10 @@
9382
9449
  "name": "dimension",
9383
9450
  "type": "zigzag32"
9384
9451
  },
9452
+ {
9453
+ "name": "origin",
9454
+ "type": "vec3i"
9455
+ },
9385
9456
  {
9386
9457
  "name": "requests",
9387
9458
  "type": [
@@ -9392,16 +9463,16 @@
9392
9463
  "container",
9393
9464
  [
9394
9465
  {
9395
- "name": "x",
9396
- "type": "zigzag32"
9466
+ "name": "dx",
9467
+ "type": "u8"
9397
9468
  },
9398
9469
  {
9399
- "name": "y",
9400
- "type": "zigzag32"
9470
+ "name": "dy",
9471
+ "type": "u8"
9401
9472
  },
9402
9473
  {
9403
- "name": "z",
9404
- "type": "zigzag32"
9474
+ "name": "dz",
9475
+ "type": "u8"
9405
9476
  }
9406
9477
  ]
9407
9478
  ]
@@ -3283,49 +3283,74 @@ 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
+ blob_id: lu64
3308
+
3309
+ SubChunkEntryWithCaching: []lu32
3310
+ dx: u8
3311
+ dy: u8
3312
+ dz: u8
3313
+ result: u8 =>
3314
+ 0: undefined
3315
+ 1: success
3316
+ 2: chunk_not_found
3317
+ 3: invalid_dimension
3318
+ 4: player_not_found
3319
+ 5: y_index_out_of_bounds
3320
+ 6: success_all_air
3321
+ # Payload has the terrain data, if the chunk isn't empty and caching is disabled
3322
+ payload: result ?
3323
+ if success_all_air: void
3324
+ default: ByteArray
3325
+ heightmap_type: u8 =>
3326
+ 0: no_data
3327
+ 1: has_data
3328
+ 2: too_high
3329
+ 3: too_low
3330
+ heightmap: heightmap_type ?
3331
+ if has_data: '["buffer", { "count": 256 }]'
3332
+ blob_id: lu64
3333
+
3286
3334
  # SubChunk sends data about multiple sub-chunks around a center point.
3287
3335
  packet_subchunk:
3288
3336
  !id: 0xae
3289
3337
  cache_enabled: bool
3290
3338
  dimension: zigzag32
3291
3339
  # 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
3340
+ origin: vec3i
3341
+ entries: cache_enabled ?
3342
+ if true: SubChunkEntryWithCaching
3343
+ if false: SubChunkEntryWithoutCaching
3321
3344
 
3322
3345
  packet_subchunk_request:
3323
3346
  !id: 0xaf
3324
3347
  dimension: zigzag32
3348
+ # Origin point
3349
+ origin: vec3i
3325
3350
  requests: []lu32
3326
- x: zigzag32
3327
- y: zigzag32
3328
- z: zigzag32
3351
+ dx: u8
3352
+ dy: u8
3353
+ dz: u8
3329
3354
 
3330
3355
  packet_client_start_item_cooldown:
3331
3356
  !id: 0xb0
@@ -1,4 +1,46 @@
1
1
  [
2
+ {
3
+ "minecraftVersion": "1.18.2-rc1",
4
+ "version": 1073741897,
5
+ "dataVersion": 2974,
6
+ "usesNetty": true,
7
+ "majorVersion": "1.18"
8
+ },
9
+ {
10
+ "minecraftVersion": "1.18.2-pre3",
11
+ "version": 1073741896,
12
+ "dataVersion": 2973,
13
+ "usesNetty": true,
14
+ "majorVersion": "1.18"
15
+ },
16
+ {
17
+ "minecraftVersion": "1.18.2-pre2",
18
+ "version": 1073741895,
19
+ "dataVersion": 2972,
20
+ "usesNetty": true,
21
+ "majorVersion": "1.18"
22
+ },
23
+ {
24
+ "minecraftVersion": "1.18.2-pre1",
25
+ "version": 1073741894,
26
+ "dataVersion": 2971,
27
+ "usesNetty": true,
28
+ "majorVersion": "1.18"
29
+ },
30
+ {
31
+ "minecraftVersion": "22w07a",
32
+ "version": 1073741892,
33
+ "dataVersion": 2969,
34
+ "usesNetty": true,
35
+ "majorVersion": "1.18"
36
+ },
37
+ {
38
+ "minecraftVersion": "22w06a",
39
+ "version": 1073741891,
40
+ "dataVersion": 2968,
41
+ "usesNetty": true,
42
+ "majorVersion": "1.18"
43
+ },
2
44
  {
3
45
  "minecraftVersion": "22w05a",
4
46
  "version": 1073741890,
@@ -1,3 +1,9 @@
1
+ ## 2.113.2
2
+ * new release because 2.113.1 of nmd already exists
3
+
4
+ ## 2.113.1
5
+ * bedrock: Corrections to protocol data for subchunk packets
6
+
1
7
  ## 2.113.0
2
8
  * bedrock: add 1.18.11 protocol data
3
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "2.113.1",
3
+ "version": "2.113.2",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",