minecraft-data 2.113.0 → 2.113.3
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 +12 -0
- package/lib/indexes.js +10 -0
- package/minecraft-data/README.md +1 -0
- package/minecraft-data/data/bedrock/1.18.11/protocol.json +188 -121
- package/minecraft-data/data/bedrock/latest/proto.yml +56 -32
- package/minecraft-data/data/pc/common/protocolVersions.json +42 -0
- package/minecraft-data/doc/history.md +9 -0
- package/package.json +1 -1
- package/test/load.js +23 -0
package/doc/history.md
CHANGED
package/lib/indexes.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
const indexer = require('./indexer.js')
|
|
2
2
|
|
|
3
3
|
module.exports = function (mcData) {
|
|
4
|
+
if (mcData.blocks?.length) {
|
|
5
|
+
if (!('minStateId' in mcData.blocks[0]) || !('defaultState' in mcData.blocks[0])) {
|
|
6
|
+
for (const block of mcData.blocks) {
|
|
7
|
+
block.minStateId = block.id << 4
|
|
8
|
+
block.maxStateId = block.minStateId + 15
|
|
9
|
+
block.defaultState = block.minStateId
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
4
14
|
return {
|
|
5
15
|
biomesById: indexer.buildIndexFromArray(mcData.biomes, 'id'),
|
|
6
16
|
biomesByName: indexer.buildIndexFromArray(mcData.biomes, 'name'),
|
package/minecraft-data/README.md
CHANGED
|
@@ -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": "
|
|
9254
|
-
"type": "
|
|
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
|
-
"
|
|
9428
|
+
"switch",
|
|
9268
9429
|
{
|
|
9269
|
-
"
|
|
9270
|
-
"
|
|
9271
|
-
"
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
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": "
|
|
9396
|
-
"type": "
|
|
9462
|
+
"name": "dx",
|
|
9463
|
+
"type": "u8"
|
|
9397
9464
|
},
|
|
9398
9465
|
{
|
|
9399
|
-
"name": "
|
|
9400
|
-
"type": "
|
|
9466
|
+
"name": "dy",
|
|
9467
|
+
"type": "u8"
|
|
9401
9468
|
},
|
|
9402
9469
|
{
|
|
9403
|
-
"name": "
|
|
9404
|
-
"type": "
|
|
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
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
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
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3350
|
+
dx: u8
|
|
3351
|
+
dy: u8
|
|
3352
|
+
dz: u8
|
|
3329
3353
|
|
|
3330
3354
|
packet_client_start_item_cooldown:
|
|
3331
3355
|
!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,12 @@
|
|
|
1
|
+
## 2.113.3
|
|
2
|
+
* bedrock: correction to protocol data for subchunk packets without caching for 1.18.11
|
|
3
|
+
|
|
4
|
+
## 2.113.2
|
|
5
|
+
* new release because 2.113.1 of nmd already exists
|
|
6
|
+
|
|
7
|
+
## 2.113.1
|
|
8
|
+
* bedrock: Corrections to protocol data for subchunk packets for 1.18.11
|
|
9
|
+
|
|
1
10
|
## 2.113.0
|
|
2
11
|
* bedrock: add 1.18.11 protocol data
|
|
3
12
|
|
package/package.json
CHANGED
package/test/load.js
CHANGED
|
@@ -21,3 +21,26 @@ describe('load', () => {
|
|
|
21
21
|
assert.strictEqual(firstDataVersion.isNewerOrEqualTo('15w31c'), true) // no dataVersion
|
|
22
22
|
})
|
|
23
23
|
})
|
|
24
|
+
|
|
25
|
+
describe('versions with block data have block state IDs', () => {
|
|
26
|
+
const mcData = require('minecraft-data')
|
|
27
|
+
const versions = require('minecraft-data').versions
|
|
28
|
+
let oks = 0
|
|
29
|
+
for (const type in versions) {
|
|
30
|
+
for (const version of versions[type]) {
|
|
31
|
+
it(type + ' ' + version.minecraftVersion, () => {
|
|
32
|
+
const data = mcData(type + '_' + version.minecraftVersion)
|
|
33
|
+
if (data?.blocks) {
|
|
34
|
+
for (const block of data.blocksArray) {
|
|
35
|
+
assert.ok(block.defaultState > -1)
|
|
36
|
+
oks++
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
after(() => {
|
|
43
|
+
console.log(oks, 'OKs')
|
|
44
|
+
assert(oks > 0)
|
|
45
|
+
})
|
|
46
|
+
})
|