bedrock-portal-nethernet 2.0.4 → 2.0.6
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/dist/options.d.ts +1 -1
- package/dist/options.js +2 -2
- package/dist/protocol.d.ts +40 -55
- package/dist/protocol.js +103 -88
- package/package.json +2 -2
package/dist/options.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type Options = {
|
|
|
9
9
|
compressionThreshold: number;
|
|
10
10
|
protocolVersion: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const CURRENT_VERSION = "1.21.
|
|
12
|
+
export declare const CURRENT_VERSION = "1.21.110";
|
|
13
13
|
export declare const defaultOptions: {
|
|
14
14
|
version: string;
|
|
15
15
|
autoInitPlayer: boolean;
|
package/dist/options.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultOptions = exports.CURRENT_VERSION = void 0;
|
|
4
4
|
const framer_1 = require("./transforms/framer");
|
|
5
5
|
// Currently supported verson. Note, clients with newer versions can still connect as long as data is in minecraft-data
|
|
6
|
-
exports.CURRENT_VERSION = '1.21.
|
|
6
|
+
exports.CURRENT_VERSION = '1.21.110';
|
|
7
7
|
exports.defaultOptions = {
|
|
8
8
|
// https://minecraft.wiki/w/Protocol_version#Bedrock_Edition_2
|
|
9
9
|
version: exports.CURRENT_VERSION,
|
|
@@ -22,5 +22,5 @@ exports.defaultOptions = {
|
|
|
22
22
|
// server: If true, only compress if a payload is larger than compressionThreshold
|
|
23
23
|
compressionThreshold: 512,
|
|
24
24
|
// server and client: The protocol version to use
|
|
25
|
-
protocolVersion:
|
|
25
|
+
protocolVersion: 844,
|
|
26
26
|
};
|
package/dist/protocol.d.ts
CHANGED
|
@@ -2184,6 +2184,7 @@ declare const _default: {
|
|
|
2184
2184
|
556: string;
|
|
2185
2185
|
557: string;
|
|
2186
2186
|
558: string;
|
|
2187
|
+
559: string;
|
|
2187
2188
|
};
|
|
2188
2189
|
})[];
|
|
2189
2190
|
LegacyEntityType: (string | {
|
|
@@ -2623,6 +2624,43 @@ declare const _default: {
|
|
|
2623
2624
|
name: string;
|
|
2624
2625
|
type: string;
|
|
2625
2626
|
})[])[];
|
|
2627
|
+
EaseType: (string | {
|
|
2628
|
+
type: string;
|
|
2629
|
+
mappings: {
|
|
2630
|
+
0: string;
|
|
2631
|
+
1: string;
|
|
2632
|
+
2: string;
|
|
2633
|
+
3: string;
|
|
2634
|
+
4: string;
|
|
2635
|
+
5: string;
|
|
2636
|
+
6: string;
|
|
2637
|
+
7: string;
|
|
2638
|
+
8: string;
|
|
2639
|
+
9: string;
|
|
2640
|
+
10: string;
|
|
2641
|
+
11: string;
|
|
2642
|
+
12: string;
|
|
2643
|
+
13: string;
|
|
2644
|
+
14: string;
|
|
2645
|
+
15: string;
|
|
2646
|
+
16: string;
|
|
2647
|
+
17: string;
|
|
2648
|
+
18: string;
|
|
2649
|
+
19: string;
|
|
2650
|
+
20: string;
|
|
2651
|
+
21: string;
|
|
2652
|
+
22: string;
|
|
2653
|
+
23: string;
|
|
2654
|
+
24: string;
|
|
2655
|
+
25: string;
|
|
2656
|
+
26: string;
|
|
2657
|
+
27: string;
|
|
2658
|
+
28: string;
|
|
2659
|
+
29: string;
|
|
2660
|
+
30: string;
|
|
2661
|
+
31: string;
|
|
2662
|
+
};
|
|
2663
|
+
})[];
|
|
2626
2664
|
mcpe_packet: (string | ({
|
|
2627
2665
|
name: string;
|
|
2628
2666
|
type: (string | {
|
|
@@ -5323,20 +5361,6 @@ declare const _default: {
|
|
|
5323
5361
|
} | {
|
|
5324
5362
|
name: string;
|
|
5325
5363
|
type: string;
|
|
5326
|
-
} | {
|
|
5327
|
-
name: string;
|
|
5328
|
-
type: (string | {
|
|
5329
|
-
compareTo: string;
|
|
5330
|
-
fields: {
|
|
5331
|
-
vehicle: (string | ({
|
|
5332
|
-
name: string;
|
|
5333
|
-
type: string;
|
|
5334
|
-
} | {
|
|
5335
|
-
name: string;
|
|
5336
|
-
type: string[];
|
|
5337
|
-
})[])[];
|
|
5338
|
-
};
|
|
5339
|
-
})[];
|
|
5340
5364
|
})[])[];
|
|
5341
5365
|
packet_item_registry: (string | {
|
|
5342
5366
|
name: string;
|
|
@@ -5834,49 +5858,10 @@ declare const _default: {
|
|
|
5834
5858
|
type: string;
|
|
5835
5859
|
} | {
|
|
5836
5860
|
name: string;
|
|
5837
|
-
type: (string | (string |
|
|
5838
|
-
name: string;
|
|
5839
|
-
type: (string | {
|
|
5840
|
-
type: string;
|
|
5841
|
-
mappings: {
|
|
5842
|
-
0: string;
|
|
5843
|
-
1: string;
|
|
5844
|
-
2: string;
|
|
5845
|
-
3: string;
|
|
5846
|
-
4: string;
|
|
5847
|
-
5: string;
|
|
5848
|
-
6: string;
|
|
5849
|
-
7: string;
|
|
5850
|
-
8: string;
|
|
5851
|
-
9: string;
|
|
5852
|
-
10: string;
|
|
5853
|
-
11: string;
|
|
5854
|
-
12: string;
|
|
5855
|
-
13: string;
|
|
5856
|
-
14: string;
|
|
5857
|
-
15: string;
|
|
5858
|
-
16: string;
|
|
5859
|
-
17: string;
|
|
5860
|
-
18: string;
|
|
5861
|
-
19: string;
|
|
5862
|
-
20: string;
|
|
5863
|
-
21: string;
|
|
5864
|
-
22: string;
|
|
5865
|
-
23: string;
|
|
5866
|
-
24: string;
|
|
5867
|
-
25: string;
|
|
5868
|
-
26: string;
|
|
5869
|
-
27: string;
|
|
5870
|
-
28: string;
|
|
5871
|
-
29: string;
|
|
5872
|
-
30: string;
|
|
5873
|
-
31: string;
|
|
5874
|
-
};
|
|
5875
|
-
})[];
|
|
5876
|
-
} | {
|
|
5861
|
+
type: (string | (string | {
|
|
5877
5862
|
name: string;
|
|
5878
5863
|
type: string;
|
|
5879
|
-
}
|
|
5864
|
+
}[])[])[];
|
|
5880
5865
|
})[])[])[];
|
|
5881
5866
|
}[])[];
|
|
5882
5867
|
packet_compressed_biome_definitions: (string | {
|
package/dist/protocol.js
CHANGED
|
@@ -4295,25 +4295,26 @@ exports.default = {
|
|
|
4295
4295
|
537: 'lead_unleash',
|
|
4296
4296
|
538: 'lead_break',
|
|
4297
4297
|
539: 'unsaddle',
|
|
4298
|
-
540: '
|
|
4299
|
-
541: '
|
|
4300
|
-
542: '
|
|
4301
|
-
543: '
|
|
4302
|
-
544: '
|
|
4303
|
-
545: '
|
|
4304
|
-
546: '
|
|
4305
|
-
547: '
|
|
4306
|
-
548: '
|
|
4307
|
-
549: '
|
|
4308
|
-
550: '
|
|
4309
|
-
551: '
|
|
4310
|
-
552: '
|
|
4311
|
-
553: '
|
|
4312
|
-
554: '
|
|
4313
|
-
555: '
|
|
4314
|
-
556: '
|
|
4315
|
-
557: '
|
|
4316
|
-
558: '
|
|
4298
|
+
540: 'equip_copper',
|
|
4299
|
+
541: 'armor_crack_wolf',
|
|
4300
|
+
542: 'armor_break_wolf',
|
|
4301
|
+
543: 'armor_repair_wolf',
|
|
4302
|
+
544: 'mace_smash_air',
|
|
4303
|
+
545: 'mace_smash_ground',
|
|
4304
|
+
546: 'trail_spawner_charge_activate',
|
|
4305
|
+
547: 'trail_spawner_ambient_ominous',
|
|
4306
|
+
548: 'ominous_item_spawner_spawn_item',
|
|
4307
|
+
549: 'ominous_bottle_end_use',
|
|
4308
|
+
550: 'mace_smash_heavy_ground',
|
|
4309
|
+
551: 'ominous_item_spawner_spawn_item_begin',
|
|
4310
|
+
552: '_',
|
|
4311
|
+
553: 'apply_effect_bad_omen',
|
|
4312
|
+
554: 'apply_effect_raid_omen',
|
|
4313
|
+
555: 'apply_effect_trial_omen',
|
|
4314
|
+
556: 'ominous_item_spawner_about_to_spawn_item',
|
|
4315
|
+
557: 'record_creator',
|
|
4316
|
+
558: 'record_creator_music_box',
|
|
4317
|
+
559: 'record_precipice',
|
|
4317
4318
|
},
|
|
4318
4319
|
},
|
|
4319
4320
|
],
|
|
@@ -4864,10 +4865,7 @@ exports.default = {
|
|
|
4864
4865
|
},
|
|
4865
4866
|
{
|
|
4866
4867
|
name: 'biome_id',
|
|
4867
|
-
type:
|
|
4868
|
-
'option',
|
|
4869
|
-
'lu16',
|
|
4870
|
-
],
|
|
4868
|
+
type: 'lu16',
|
|
4871
4869
|
},
|
|
4872
4870
|
{
|
|
4873
4871
|
name: 'temperature',
|
|
@@ -5512,6 +5510,46 @@ exports.default = {
|
|
|
5512
5510
|
},
|
|
5513
5511
|
],
|
|
5514
5512
|
],
|
|
5513
|
+
EaseType: [
|
|
5514
|
+
'mapper',
|
|
5515
|
+
{
|
|
5516
|
+
type: 'u8',
|
|
5517
|
+
mappings: {
|
|
5518
|
+
0: 'Linear',
|
|
5519
|
+
1: 'Spring',
|
|
5520
|
+
2: 'InQuad',
|
|
5521
|
+
3: 'OutQuad',
|
|
5522
|
+
4: 'InOutQuad',
|
|
5523
|
+
5: 'InCubic',
|
|
5524
|
+
6: 'OutCubic',
|
|
5525
|
+
7: 'InOutCubic',
|
|
5526
|
+
8: 'InQuart',
|
|
5527
|
+
9: 'OutQuart',
|
|
5528
|
+
10: 'InOutQuart',
|
|
5529
|
+
11: 'InQuint',
|
|
5530
|
+
12: 'OutQuint',
|
|
5531
|
+
13: 'InOutQuint',
|
|
5532
|
+
14: 'InSine',
|
|
5533
|
+
15: 'OutSine',
|
|
5534
|
+
16: 'InOutSine',
|
|
5535
|
+
17: 'InExpo',
|
|
5536
|
+
18: 'OutExpo',
|
|
5537
|
+
19: 'InOutExpo',
|
|
5538
|
+
20: 'InCirc',
|
|
5539
|
+
21: 'OutCirc',
|
|
5540
|
+
22: 'InOutCirc',
|
|
5541
|
+
23: 'InBounce',
|
|
5542
|
+
24: 'OutBounce',
|
|
5543
|
+
25: 'InOutBounce',
|
|
5544
|
+
26: 'InBack',
|
|
5545
|
+
27: 'OutBack',
|
|
5546
|
+
28: 'InOutBack',
|
|
5547
|
+
29: 'InElastic',
|
|
5548
|
+
30: 'OutElastic',
|
|
5549
|
+
31: 'InOutElastic',
|
|
5550
|
+
},
|
|
5551
|
+
},
|
|
5552
|
+
],
|
|
5515
5553
|
mcpe_packet: [
|
|
5516
5554
|
'container',
|
|
5517
5555
|
[
|
|
@@ -6747,6 +6785,10 @@ exports.default = {
|
|
|
6747
6785
|
name: 'block_network_ids_are_hashes',
|
|
6748
6786
|
type: 'bool',
|
|
6749
6787
|
},
|
|
6788
|
+
{
|
|
6789
|
+
name: 'tick_death_systems',
|
|
6790
|
+
type: 'bool',
|
|
6791
|
+
},
|
|
6750
6792
|
{
|
|
6751
6793
|
name: 'server_controlled_sound',
|
|
6752
6794
|
type: 'bool',
|
|
@@ -11952,31 +11994,12 @@ exports.default = {
|
|
|
11952
11994
|
type: 'vec3f',
|
|
11953
11995
|
},
|
|
11954
11996
|
{
|
|
11955
|
-
name: '
|
|
11956
|
-
type:
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
vehicle: [
|
|
11962
|
-
'container',
|
|
11963
|
-
[
|
|
11964
|
-
{
|
|
11965
|
-
name: 'rotation',
|
|
11966
|
-
type: 'vec2f',
|
|
11967
|
-
},
|
|
11968
|
-
{
|
|
11969
|
-
name: 'angular_velocity',
|
|
11970
|
-
type: [
|
|
11971
|
-
'option',
|
|
11972
|
-
'lf32',
|
|
11973
|
-
],
|
|
11974
|
-
},
|
|
11975
|
-
],
|
|
11976
|
-
],
|
|
11977
|
-
},
|
|
11978
|
-
},
|
|
11979
|
-
],
|
|
11997
|
+
name: 'rotation',
|
|
11998
|
+
type: 'vec2f',
|
|
11999
|
+
},
|
|
12000
|
+
{
|
|
12001
|
+
name: 'angular_velocity',
|
|
12002
|
+
type: 'lf32',
|
|
11980
12003
|
},
|
|
11981
12004
|
{
|
|
11982
12005
|
name: 'on_ground',
|
|
@@ -13178,46 +13201,7 @@ exports.default = {
|
|
|
13178
13201
|
[
|
|
13179
13202
|
{
|
|
13180
13203
|
name: 'type',
|
|
13181
|
-
type:
|
|
13182
|
-
'mapper',
|
|
13183
|
-
{
|
|
13184
|
-
type: 'u8',
|
|
13185
|
-
mappings: {
|
|
13186
|
-
0: 'Linear',
|
|
13187
|
-
1: 'Spring',
|
|
13188
|
-
2: 'InQuad',
|
|
13189
|
-
3: 'OutQuad',
|
|
13190
|
-
4: 'InOutQuad',
|
|
13191
|
-
5: 'InCubic',
|
|
13192
|
-
6: 'OutCubic',
|
|
13193
|
-
7: 'InOutCubic',
|
|
13194
|
-
8: 'InQuart',
|
|
13195
|
-
9: 'OutQuart',
|
|
13196
|
-
10: 'InOutQuart',
|
|
13197
|
-
11: 'InQuint',
|
|
13198
|
-
12: 'OutQuint',
|
|
13199
|
-
13: 'InOutQuint',
|
|
13200
|
-
14: 'InSine',
|
|
13201
|
-
15: 'OutSine',
|
|
13202
|
-
16: 'InOutSine',
|
|
13203
|
-
17: 'InExpo',
|
|
13204
|
-
18: 'OutExpo',
|
|
13205
|
-
19: 'InOutExpo',
|
|
13206
|
-
20: 'InCirc',
|
|
13207
|
-
21: 'OutCirc',
|
|
13208
|
-
22: 'InOutCirc',
|
|
13209
|
-
23: 'InBounce',
|
|
13210
|
-
24: 'OutBounce',
|
|
13211
|
-
25: 'InOutBounce',
|
|
13212
|
-
26: 'InBack',
|
|
13213
|
-
27: 'OutBack',
|
|
13214
|
-
28: 'InOutBack',
|
|
13215
|
-
29: 'InElastic',
|
|
13216
|
-
30: 'OutElastic',
|
|
13217
|
-
31: 'InOutElastic',
|
|
13218
|
-
},
|
|
13219
|
-
},
|
|
13220
|
-
],
|
|
13204
|
+
type: 'EaseType',
|
|
13221
13205
|
},
|
|
13222
13206
|
{
|
|
13223
13207
|
name: 'duration',
|
|
@@ -13340,6 +13324,33 @@ exports.default = {
|
|
|
13340
13324
|
'bool',
|
|
13341
13325
|
],
|
|
13342
13326
|
},
|
|
13327
|
+
{
|
|
13328
|
+
name: 'fov',
|
|
13329
|
+
type: [
|
|
13330
|
+
'option',
|
|
13331
|
+
[
|
|
13332
|
+
'container',
|
|
13333
|
+
[
|
|
13334
|
+
{
|
|
13335
|
+
name: 'field_of_view',
|
|
13336
|
+
type: 'lf32',
|
|
13337
|
+
},
|
|
13338
|
+
{
|
|
13339
|
+
name: 'ease_time',
|
|
13340
|
+
type: 'lf32',
|
|
13341
|
+
},
|
|
13342
|
+
{
|
|
13343
|
+
name: 'ease_type',
|
|
13344
|
+
type: 'EaseType',
|
|
13345
|
+
},
|
|
13346
|
+
{
|
|
13347
|
+
name: 'clear',
|
|
13348
|
+
type: 'bool',
|
|
13349
|
+
},
|
|
13350
|
+
],
|
|
13351
|
+
],
|
|
13352
|
+
],
|
|
13353
|
+
},
|
|
13343
13354
|
],
|
|
13344
13355
|
],
|
|
13345
13356
|
packet_compressed_biome_definitions: [
|
|
@@ -13719,6 +13730,10 @@ exports.default = {
|
|
|
13719
13730
|
},
|
|
13720
13731
|
],
|
|
13721
13732
|
},
|
|
13733
|
+
{
|
|
13734
|
+
name: 'show_debug_render',
|
|
13735
|
+
type: 'bool',
|
|
13736
|
+
},
|
|
13722
13737
|
],
|
|
13723
13738
|
],
|
|
13724
13739
|
packet_container_registry_cleanup: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bedrock-portal-nethernet",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "A simple server implementation for the Bedrock Edition Nethernet protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
"eslint": "^8.33.0",
|
|
37
37
|
"typescript": "^5.3.3"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|