bedrock-portal-nethernet 2.0.0 → 2.0.1

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 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.60";
12
+ export declare const CURRENT_VERSION = "1.21.70";
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.60';
6
+ exports.CURRENT_VERSION = '1.21.70';
7
7
  exports.defaultOptions = {
8
8
  // https://minecraft.wiki/w/Protocol_version#Bedrock_Edition_2
9
9
  version: exports.CURRENT_VERSION,
@@ -2608,6 +2608,7 @@ declare const _default: {
2608
2608
  152: string;
2609
2609
  153: string;
2610
2610
  154: string;
2611
+ 155: string;
2611
2612
  156: string;
2612
2613
  157: string;
2613
2614
  158: string;
@@ -2674,6 +2675,9 @@ declare const _default: {
2674
2675
  320: string;
2675
2676
  321: string;
2676
2677
  322: string;
2678
+ 323: string;
2679
+ 324: string;
2680
+ 325: string;
2677
2681
  };
2678
2682
  })[];
2679
2683
  } | {
@@ -2828,6 +2832,7 @@ declare const _default: {
2828
2832
  emote_list: string;
2829
2833
  position_tracking_db_request: string;
2830
2834
  position_tracking_db_broadcast: string;
2835
+ debug_info: string;
2831
2836
  packet_violation_warning: string;
2832
2837
  motion_prediction_hints: string;
2833
2838
  animate_entity: string;
@@ -2895,6 +2900,9 @@ declare const _default: {
2895
2900
  camera_aim_assist_presets: string;
2896
2901
  client_camera_aim_assist: string;
2897
2902
  client_movement_prediction_sync: string;
2903
+ update_client_options: string;
2904
+ player_video_capture: string;
2905
+ player_update_entity_overrides: string;
2898
2906
  };
2899
2907
  })[];
2900
2908
  })[])[];
@@ -5049,6 +5057,10 @@ declare const _default: {
5049
5057
  name: string;
5050
5058
  type: string;
5051
5059
  })[])[];
5060
+ packet_debug_info: (string | {
5061
+ name: string;
5062
+ type: string;
5063
+ }[])[];
5052
5064
  packet_packet_violation_warning: (string | ({
5053
5065
  name: string;
5054
5066
  type: (string | {
@@ -5848,36 +5860,6 @@ declare const _default: {
5848
5860
  })[];
5849
5861
  }[])[];
5850
5862
  packet_camera_aim_assist_presets: (string | ({
5851
- name: string;
5852
- type: (string | {
5853
- countType: string;
5854
- type: (string | ({
5855
- name: string;
5856
- type: string;
5857
- } | {
5858
- name: string;
5859
- type: (string | {
5860
- countType: string;
5861
- type: (string | ({
5862
- name: string;
5863
- type: string;
5864
- } | {
5865
- name: string;
5866
- type: (string | {
5867
- name: string;
5868
- type: (string | {
5869
- countType: string;
5870
- type: (string | {
5871
- name: string;
5872
- type: string;
5873
- }[])[];
5874
- })[];
5875
- }[])[];
5876
- })[])[];
5877
- })[];
5878
- })[])[];
5879
- })[];
5880
- } | {
5881
5863
  name: string;
5882
5864
  type: (string | {
5883
5865
  countType: string;
@@ -5934,6 +5916,65 @@ declare const _default: {
5934
5916
  type: string;
5935
5917
  }[])[];
5936
5918
  })[])[];
5919
+ packet_update_client_options: (string | {
5920
+ name: string;
5921
+ type: (string | (string | {
5922
+ type: string;
5923
+ mappings: {
5924
+ 0: string;
5925
+ 1: string;
5926
+ 2: string;
5927
+ 3: string;
5928
+ };
5929
+ })[])[];
5930
+ }[])[];
5931
+ packet_player_video_capture: (string | ({
5932
+ name: string;
5933
+ type: (string | {
5934
+ type: string;
5935
+ mappings: {
5936
+ 0: string;
5937
+ 1: string;
5938
+ };
5939
+ })[];
5940
+ anon?: undefined;
5941
+ } | {
5942
+ anon: boolean;
5943
+ type: (string | {
5944
+ compareTo: string;
5945
+ fields: {
5946
+ start: (string | {
5947
+ name: string;
5948
+ type: string;
5949
+ }[])[];
5950
+ };
5951
+ })[];
5952
+ name?: undefined;
5953
+ })[])[];
5954
+ packet_player_update_entity_overrides: (string | ({
5955
+ name: string;
5956
+ type: string;
5957
+ } | {
5958
+ name: string;
5959
+ type: (string | {
5960
+ type: string;
5961
+ mappings: {
5962
+ 0: string;
5963
+ 1: string;
5964
+ 2: string;
5965
+ 3: string;
5966
+ };
5967
+ })[];
5968
+ } | {
5969
+ name: string;
5970
+ type: (string | {
5971
+ compareTo: string;
5972
+ fields: {
5973
+ set_int: string;
5974
+ set_float: string;
5975
+ };
5976
+ })[];
5977
+ })[])[];
5937
5978
  };
5938
5979
  };
5939
5980
  export default _default;
package/dist/protocol.js CHANGED
@@ -1034,6 +1034,9 @@ exports.default = {
1034
1034
  'timer_flag_3',
1035
1035
  'body_rotation_blocked',
1036
1036
  'render_when_invisible',
1037
+ 'body_rotation_axis_aligned',
1038
+ 'collidable',
1039
+ 'wasd_air_controlled',
1037
1040
  ],
1038
1041
  },
1039
1042
  ],
@@ -2940,6 +2943,10 @@ exports.default = {
2940
2943
  name: 'recipe_network_id',
2941
2944
  type: 'varint',
2942
2945
  },
2946
+ {
2947
+ name: 'times_crafted',
2948
+ type: 'u8',
2949
+ },
2943
2950
  {
2944
2951
  name: 'cost',
2945
2952
  type: 'varint',
@@ -2953,6 +2960,10 @@ exports.default = {
2953
2960
  name: 'pattern',
2954
2961
  type: 'string',
2955
2962
  },
2963
+ {
2964
+ name: 'times_crafted',
2965
+ type: 'u8',
2966
+ },
2956
2967
  ],
2957
2968
  ],
2958
2969
  non_implemented: 'void',
@@ -4949,6 +4960,7 @@ exports.default = {
4949
4960
  152: 'emote_list',
4950
4961
  153: 'position_tracking_db_broadcast',
4951
4962
  154: 'position_tracking_db_request',
4963
+ 155: 'debug_info',
4952
4964
  156: 'packet_violation_warning',
4953
4965
  157: 'motion_prediction_hints',
4954
4966
  158: 'animate_entity',
@@ -5015,6 +5027,9 @@ exports.default = {
5015
5027
  320: 'camera_aim_assist_presets',
5016
5028
  321: 'client_camera_aim_assist',
5017
5029
  322: 'client_movement_prediction_sync',
5030
+ 323: 'update_client_options',
5031
+ 324: 'player_video_capture',
5032
+ 325: 'player_update_entity_overrides',
5018
5033
  },
5019
5034
  },
5020
5035
  ],
@@ -5173,6 +5188,7 @@ exports.default = {
5173
5188
  emote_list: 'packet_emote_list',
5174
5189
  position_tracking_db_request: 'packet_position_tracking_db_request',
5175
5190
  position_tracking_db_broadcast: 'packet_position_tracking_db_broadcast',
5191
+ debug_info: 'packet_debug_info',
5176
5192
  packet_violation_warning: 'packet_packet_violation_warning',
5177
5193
  motion_prediction_hints: 'packet_motion_prediction_hints',
5178
5194
  animate_entity: 'packet_animate_entity',
@@ -5240,6 +5256,9 @@ exports.default = {
5240
5256
  camera_aim_assist_presets: 'packet_camera_aim_assist_presets',
5241
5257
  client_camera_aim_assist: 'packet_client_camera_aim_assist',
5242
5258
  client_movement_prediction_sync: 'packet_client_movement_prediction_sync',
5259
+ update_client_options: 'packet_update_client_options',
5260
+ player_video_capture: 'packet_player_video_capture',
5261
+ player_update_entity_overrides: 'packet_player_update_entity_overrides',
5243
5262
  },
5244
5263
  },
5245
5264
  ],
@@ -9902,6 +9921,10 @@ exports.default = {
9902
9921
  name: 'is_global',
9903
9922
  type: 'bool',
9904
9923
  },
9924
+ {
9925
+ name: 'entity_unique_id',
9926
+ type: 'li64',
9927
+ },
9905
9928
  ],
9906
9929
  ],
9907
9930
  packet_level_event_generic: [
@@ -11009,6 +11032,19 @@ exports.default = {
11009
11032
  },
11010
11033
  ],
11011
11034
  ],
11035
+ packet_debug_info: [
11036
+ 'container',
11037
+ [
11038
+ {
11039
+ name: 'player_unique_id',
11040
+ type: 'zigzag64',
11041
+ },
11042
+ {
11043
+ name: 'data',
11044
+ type: 'ByteArray',
11045
+ },
11046
+ ],
11047
+ ],
11012
11048
  packet_packet_violation_warning: [
11013
11049
  'container',
11014
11050
  [
@@ -12735,7 +12771,7 @@ exports.default = {
12735
12771
  type: [
12736
12772
  'mapper',
12737
12773
  {
12738
- type: 'u8',
12774
+ type: 'varint',
12739
12775
  mappings: {
12740
12776
  0: 'hide',
12741
12777
  1: 'reset',
@@ -12748,7 +12784,7 @@ exports.default = {
12748
12784
  Element: [
12749
12785
  'mapper',
12750
12786
  {
12751
- type: 'u8',
12787
+ type: 'varint',
12752
12788
  mappings: {
12753
12789
  0: 'PaperDoll',
12754
12790
  1: 'Armour',
@@ -12965,7 +13001,7 @@ exports.default = {
12965
13001
  'container',
12966
13002
  [
12967
13003
  {
12968
- name: 'category_groups',
13004
+ name: 'categories',
12969
13005
  type: [
12970
13006
  'array',
12971
13007
  {
@@ -12974,11 +13010,11 @@ exports.default = {
12974
13010
  'container',
12975
13011
  [
12976
13012
  {
12977
- name: 'id',
13013
+ name: 'name',
12978
13014
  type: 'string',
12979
13015
  },
12980
13016
  {
12981
- name: 'categories',
13017
+ name: 'entity_priorities',
12982
13018
  type: [
12983
13019
  'array',
12984
13020
  {
@@ -12987,80 +13023,54 @@ exports.default = {
12987
13023
  'container',
12988
13024
  [
12989
13025
  {
12990
- name: 'name',
13026
+ name: 'id',
12991
13027
  type: 'string',
12992
13028
  },
12993
13029
  {
12994
- name: 'priorities',
12995
- type: [
12996
- 'container',
12997
- [
12998
- {
12999
- name: 'entities',
13000
- type: [
13001
- 'array',
13002
- {
13003
- countType: 'varint',
13004
- type: [
13005
- 'container',
13006
- [
13007
- {
13008
- name: 'id',
13009
- type: 'string',
13010
- },
13011
- {
13012
- name: 'priority',
13013
- type: 'li32',
13014
- },
13015
- ],
13016
- ],
13017
- },
13018
- ],
13019
- },
13020
- {
13021
- name: 'blocks',
13022
- type: [
13023
- 'array',
13024
- {
13025
- countType: 'varint',
13026
- type: [
13027
- 'container',
13028
- [
13029
- {
13030
- name: 'id',
13031
- type: 'string',
13032
- },
13033
- {
13034
- name: 'priority',
13035
- type: 'li32',
13036
- },
13037
- ],
13038
- ],
13039
- },
13040
- ],
13041
- },
13042
- {
13043
- name: 'entity_default',
13044
- type: [
13045
- 'option',
13046
- 'li32',
13047
- ],
13048
- },
13049
- {
13050
- name: 'block_default',
13051
- type: [
13052
- 'option',
13053
- 'li32',
13054
- ],
13055
- },
13056
- ],
13057
- ],
13030
+ name: 'priority',
13031
+ type: 'li32',
13032
+ },
13033
+ ],
13034
+ ],
13035
+ },
13036
+ ],
13037
+ },
13038
+ {
13039
+ name: 'block_priorities',
13040
+ type: [
13041
+ 'array',
13042
+ {
13043
+ countType: 'varint',
13044
+ type: [
13045
+ 'container',
13046
+ [
13047
+ {
13048
+ name: 'id',
13049
+ type: 'string',
13050
+ },
13051
+ {
13052
+ name: 'priority',
13053
+ type: 'li32',
13058
13054
  },
13059
13055
  ],
13060
13056
  ],
13061
13057
  },
13062
13058
  ],
13063
13059
  },
13060
+ {
13061
+ name: 'entity_default',
13062
+ type: [
13063
+ 'option',
13064
+ 'li32',
13065
+ ],
13066
+ },
13067
+ {
13068
+ name: 'block_default',
13069
+ type: [
13070
+ 'option',
13071
+ 'li32',
13072
+ ],
13073
+ },
13064
13074
  ],
13065
13075
  ],
13066
13076
  },
@@ -13079,10 +13089,6 @@ exports.default = {
13079
13089
  name: 'id',
13080
13090
  type: 'string',
13081
13091
  },
13082
- {
13083
- name: 'categories',
13084
- type: 'string',
13085
- },
13086
13092
  {
13087
13093
  name: 'exclude_blocks',
13088
13094
  type: [
@@ -13240,6 +13246,116 @@ exports.default = {
13240
13246
  name: 'entity_runtime_id',
13241
13247
  type: 'varint64',
13242
13248
  },
13249
+ {
13250
+ name: 'is_flying',
13251
+ type: 'bool',
13252
+ },
13253
+ ],
13254
+ ],
13255
+ packet_update_client_options: [
13256
+ 'container',
13257
+ [
13258
+ {
13259
+ name: 'graphics_mode',
13260
+ type: [
13261
+ 'option',
13262
+ [
13263
+ 'mapper',
13264
+ {
13265
+ type: 'u8',
13266
+ mappings: {
13267
+ 0: 'simple',
13268
+ 1: 'fancy',
13269
+ 2: 'advanced',
13270
+ 3: 'ray_traced',
13271
+ },
13272
+ },
13273
+ ],
13274
+ ],
13275
+ },
13276
+ ],
13277
+ ],
13278
+ packet_player_video_capture: [
13279
+ 'container',
13280
+ [
13281
+ {
13282
+ name: 'action',
13283
+ type: [
13284
+ 'mapper',
13285
+ {
13286
+ type: 'u8',
13287
+ mappings: {
13288
+ 0: 'stop',
13289
+ 1: 'start',
13290
+ },
13291
+ },
13292
+ ],
13293
+ },
13294
+ {
13295
+ anon: true,
13296
+ type: [
13297
+ 'switch',
13298
+ {
13299
+ compareTo: 'action',
13300
+ fields: {
13301
+ start: [
13302
+ 'container',
13303
+ [
13304
+ {
13305
+ name: 'frame_rate',
13306
+ type: 'li32',
13307
+ },
13308
+ {
13309
+ name: 'file_prefix',
13310
+ type: 'string',
13311
+ },
13312
+ ],
13313
+ ],
13314
+ },
13315
+ },
13316
+ ],
13317
+ },
13318
+ ],
13319
+ ],
13320
+ packet_player_update_entity_overrides: [
13321
+ 'container',
13322
+ [
13323
+ {
13324
+ name: 'runtime_id',
13325
+ type: 'varint64',
13326
+ },
13327
+ {
13328
+ name: 'property_index',
13329
+ type: 'varint',
13330
+ },
13331
+ {
13332
+ name: 'type',
13333
+ type: [
13334
+ 'mapper',
13335
+ {
13336
+ type: 'u8',
13337
+ mappings: {
13338
+ 0: 'clear_all',
13339
+ 1: 'remove',
13340
+ 2: 'set_int',
13341
+ 3: 'set_float',
13342
+ },
13343
+ },
13344
+ ],
13345
+ },
13346
+ {
13347
+ name: 'value',
13348
+ type: [
13349
+ 'switch',
13350
+ {
13351
+ compareTo: 'type',
13352
+ fields: {
13353
+ set_int: 'li32',
13354
+ set_float: 'lf32',
13355
+ },
13356
+ },
13357
+ ],
13358
+ },
13243
13359
  ],
13244
13360
  ],
13245
13361
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal-nethernet",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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",