bedrock-portal-nethernet 2.0.1 → 2.0.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/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.70";
12
+ export declare const CURRENT_VERSION = "1.21.80";
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.70';
6
+ exports.CURRENT_VERSION = '1.21.80';
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: 776,
25
+ protocolVersion: 800,
26
26
  };
@@ -431,6 +431,8 @@ declare const _default: {
431
431
  131: string;
432
432
  132: string;
433
433
  133: string;
434
+ 134: string;
435
+ 135: string;
434
436
  };
435
437
  })[];
436
438
  } | {
@@ -456,6 +458,8 @@ declare const _default: {
456
458
  fields: {
457
459
  flags: string;
458
460
  flags_extended: string;
461
+ seat_third_person_camera_radius: string;
462
+ seat_camera_relax_distance_smoothing: string;
459
463
  };
460
464
  default: (string | {
461
465
  compareTo: string;
@@ -2317,6 +2321,18 @@ declare const _default: {
2317
2321
  };
2318
2322
  })[])[];
2319
2323
  }[])[])[];
2324
+ } | {
2325
+ name: string;
2326
+ type: (string | (string | {
2327
+ type: string;
2328
+ mappings: {
2329
+ 0: string;
2330
+ 1: string;
2331
+ 2: string;
2332
+ 3: string;
2333
+ 4: string;
2334
+ };
2335
+ })[])[];
2320
2336
  })[])[];
2321
2337
  DisconnectFailReason: (string | {
2322
2338
  type: string;
@@ -2455,6 +2471,127 @@ declare const _default: {
2455
2471
  '-1': string;
2456
2472
  };
2457
2473
  })[];
2474
+ BiomeDefinition: (string | ({
2475
+ name: string;
2476
+ type: string;
2477
+ } | {
2478
+ name: string;
2479
+ type: (string | (string | {
2480
+ countType: string;
2481
+ type: string;
2482
+ })[])[];
2483
+ })[])[];
2484
+ BiomeChunkGeneration: (string | ({
2485
+ name: string;
2486
+ type: (string | (string | {
2487
+ countType: string;
2488
+ type: string;
2489
+ })[])[];
2490
+ } | {
2491
+ name: string;
2492
+ type: string;
2493
+ })[])[];
2494
+ BiomeClimate: (string | {
2495
+ name: string;
2496
+ type: string;
2497
+ }[])[];
2498
+ BiomeMountainParameters: (string | {
2499
+ name: string;
2500
+ type: string;
2501
+ }[])[];
2502
+ BiomeSurfaceMaterial: (string | {
2503
+ name: string;
2504
+ type: string;
2505
+ }[])[];
2506
+ BiomeMesaSurface: (string | {
2507
+ name: string;
2508
+ type: string;
2509
+ }[])[];
2510
+ BiomeCappedSurface: (string | {
2511
+ name: string;
2512
+ type: (string | {
2513
+ countType: string;
2514
+ type: string;
2515
+ })[];
2516
+ }[])[];
2517
+ BiomeMultiNoiseRules: (string | {
2518
+ name: string;
2519
+ type: string;
2520
+ }[])[];
2521
+ BiomeWeight: (string | {
2522
+ name: string;
2523
+ type: string;
2524
+ }[])[];
2525
+ BiomeTemperatureWeight: (string | {
2526
+ name: string;
2527
+ type: string;
2528
+ }[])[];
2529
+ BiomeConsolidatedFeature: (string | {
2530
+ name: string;
2531
+ type: string;
2532
+ }[])[];
2533
+ BiomeScatterParameter: (string | ({
2534
+ name: string;
2535
+ type: (string | {
2536
+ countType: string;
2537
+ type: string;
2538
+ })[];
2539
+ } | {
2540
+ name: string;
2541
+ type: (string | {
2542
+ type: string;
2543
+ mappings: {
2544
+ 0: string;
2545
+ 1: string;
2546
+ 2: string;
2547
+ 3: string;
2548
+ 4: string;
2549
+ 5: string;
2550
+ };
2551
+ })[];
2552
+ } | {
2553
+ name: string;
2554
+ type: string;
2555
+ })[])[];
2556
+ BiomeCoordinate: (string | ({
2557
+ name: string;
2558
+ type: string;
2559
+ } | {
2560
+ name: string;
2561
+ type: (string | {
2562
+ type: string;
2563
+ mappings: {
2564
+ 0: string;
2565
+ 1: string;
2566
+ 2: string;
2567
+ 3: string;
2568
+ 4: string;
2569
+ 5: string;
2570
+ 6: string;
2571
+ };
2572
+ })[];
2573
+ })[])[];
2574
+ BiomeElementData: (string | {
2575
+ name: string;
2576
+ type: string;
2577
+ }[])[];
2578
+ BiomeOverworldRules: (string | {
2579
+ name: string;
2580
+ type: (string | {
2581
+ countType: string;
2582
+ type: string;
2583
+ })[];
2584
+ }[])[];
2585
+ BiomeConditionalTransformation: (string | ({
2586
+ name: string;
2587
+ type: (string | {
2588
+ countType: string;
2589
+ type: string;
2590
+ })[];
2591
+ } | {
2592
+ name: string;
2593
+ type: string;
2594
+ })[])[];
2458
2595
  mcpe_packet: (string | ({
2459
2596
  name: string;
2460
2597
  type: (string | {
@@ -2604,6 +2741,7 @@ declare const _default: {
2604
2741
  147: string;
2605
2742
  148: string;
2606
2743
  149: string;
2744
+ 150: string;
2607
2745
  151: string;
2608
2746
  152: string;
2609
2747
  153: string;
@@ -2678,6 +2816,8 @@ declare const _default: {
2678
2816
  323: string;
2679
2817
  324: string;
2680
2818
  325: string;
2819
+ 326: string;
2820
+ 327: string;
2681
2821
  };
2682
2822
  })[];
2683
2823
  } | {
@@ -2828,6 +2968,7 @@ declare const _default: {
2828
2968
  item_stack_request: string;
2829
2969
  item_stack_response: string;
2830
2970
  player_armor_damage: string;
2971
+ code_builder: string;
2831
2972
  update_player_game_type: string;
2832
2973
  emote_list: string;
2833
2974
  position_tracking_db_request: string;
@@ -2903,6 +3044,8 @@ declare const _default: {
2903
3044
  update_client_options: string;
2904
3045
  player_video_capture: string;
2905
3046
  player_update_entity_overrides: string;
3047
+ player_location: string;
3048
+ clientbound_controls_scheme: string;
2906
3049
  };
2907
3050
  })[];
2908
3051
  })[])[];
@@ -3107,6 +3250,17 @@ declare const _default: {
3107
3250
  2: string;
3108
3251
  };
3109
3252
  })[];
3253
+ } | {
3254
+ name: string;
3255
+ type: (string | {
3256
+ type: string;
3257
+ mappings: {
3258
+ 0: string;
3259
+ 1: string;
3260
+ 2: string;
3261
+ 3: string;
3262
+ };
3263
+ })[];
3110
3264
  })[])[];
3111
3265
  packet_add_player: (string | ({
3112
3266
  name: string;
@@ -4632,7 +4786,10 @@ declare const _default: {
4632
4786
  })[])[];
4633
4787
  packet_biome_definition_list: (string | {
4634
4788
  name: string;
4635
- type: string;
4789
+ type: (string | {
4790
+ countType: string;
4791
+ type: string;
4792
+ })[];
4636
4793
  }[])[];
4637
4794
  packet_level_sound_event: (string | {
4638
4795
  name: string;
@@ -5017,6 +5174,10 @@ declare const _default: {
5017
5174
  body: number;
5018
5175
  };
5019
5176
  })[];
5177
+ packet_code_builder: (string | {
5178
+ name: string;
5179
+ type: string;
5180
+ }[])[];
5020
5181
  packet_update_player_game_type: (string | {
5021
5182
  name: string;
5022
5183
  type: string;
@@ -5975,6 +6136,40 @@ declare const _default: {
5975
6136
  };
5976
6137
  })[];
5977
6138
  })[])[];
6139
+ packet_player_location: (string | ({
6140
+ name: string;
6141
+ type: (string | {
6142
+ type: string;
6143
+ mappings: {
6144
+ 0: string;
6145
+ 1: string;
6146
+ };
6147
+ })[];
6148
+ } | {
6149
+ name: string;
6150
+ type: string;
6151
+ } | {
6152
+ name: string;
6153
+ type: (string | {
6154
+ compareTo: string;
6155
+ fields: {
6156
+ coordinates: string;
6157
+ };
6158
+ })[];
6159
+ })[])[];
6160
+ packet_clientbound_controls_scheme: (string | {
6161
+ name: string;
6162
+ type: (string | {
6163
+ type: string;
6164
+ mappings: {
6165
+ 0: string;
6166
+ 1: string;
6167
+ 2: string;
6168
+ 3: string;
6169
+ 4: string;
6170
+ };
6171
+ })[];
6172
+ }[])[];
5978
6173
  };
5979
6174
  };
5980
6175
  export default _default;
package/dist/protocol.js CHANGED
@@ -841,6 +841,8 @@ exports.default = {
841
841
  131: 'visible_mob_effects',
842
842
  132: 'filtered_name',
843
843
  133: 'bed_enter_position',
844
+ 134: 'seat_third_person_camera_radius',
845
+ 135: 'seat_camera_relax_distance_smoothing',
844
846
  },
845
847
  },
846
848
  ],
@@ -874,6 +876,8 @@ exports.default = {
874
876
  fields: {
875
877
  flags: 'MetadataFlags1',
876
878
  flags_extended: 'MetadataFlags2',
879
+ seat_third_person_camera_radius: 'lf32',
880
+ seat_camera_relax_distance_smoothing: 'lf32',
877
881
  },
878
882
  default: [
879
883
  'switch',
@@ -1037,6 +1041,7 @@ exports.default = {
1037
1041
  'body_rotation_axis_aligned',
1038
1042
  'collidable',
1039
1043
  'wasd_air_controlled',
1044
+ 'does_server_auth_only_dismount',
1040
1045
  ],
1041
1046
  },
1042
1047
  ],
@@ -2489,6 +2494,10 @@ exports.default = {
2489
2494
  name: 'is_subclient',
2490
2495
  type: 'bool',
2491
2496
  },
2497
+ {
2498
+ name: 'player_color',
2499
+ type: 'li32',
2500
+ },
2492
2501
  ],
2493
2502
  ],
2494
2503
  remove: [
@@ -4648,6 +4657,25 @@ exports.default = {
4648
4657
  ],
4649
4658
  ],
4650
4659
  },
4660
+ {
4661
+ name: 'control_scheme',
4662
+ type: [
4663
+ 'option',
4664
+ [
4665
+ 'mapper',
4666
+ {
4667
+ type: 'u8',
4668
+ mappings: {
4669
+ 0: 'locked_player_relative_strafe',
4670
+ 1: 'camera_relative',
4671
+ 2: 'camera_relative_strafe',
4672
+ 3: 'player_relative',
4673
+ 4: 'player_relative_strafe',
4674
+ },
4675
+ },
4676
+ ],
4677
+ ],
4678
+ },
4651
4679
  ],
4652
4680
  ],
4653
4681
  DisconnectFailReason: [
@@ -4774,33 +4802,690 @@ exports.default = {
4774
4802
  116: 'sub_client_login_disabled',
4775
4803
  117: 'deep_link_trying_to_open_demo_world_while_signed_in',
4776
4804
  },
4777
- },
4805
+ },
4806
+ ],
4807
+ FullContainerName: [
4808
+ 'container',
4809
+ [
4810
+ {
4811
+ name: 'container_id',
4812
+ type: 'ContainerSlotType',
4813
+ },
4814
+ {
4815
+ name: 'dynamic_container_id',
4816
+ type: [
4817
+ 'option',
4818
+ 'u32',
4819
+ ],
4820
+ },
4821
+ ],
4822
+ ],
4823
+ MovementEffectType: [
4824
+ 'mapper',
4825
+ {
4826
+ type: 'varint',
4827
+ mappings: {
4828
+ '0': 'GLIDE_BOOST',
4829
+ '-1': 'invalid',
4830
+ },
4831
+ },
4832
+ ],
4833
+ BiomeDefinition: [
4834
+ 'container',
4835
+ [
4836
+ {
4837
+ name: 'name_index',
4838
+ type: 'li16',
4839
+ },
4840
+ {
4841
+ name: 'biome_id',
4842
+ type: [
4843
+ 'option',
4844
+ 'lu16',
4845
+ ],
4846
+ },
4847
+ {
4848
+ name: 'temperature',
4849
+ type: 'lf32',
4850
+ },
4851
+ {
4852
+ name: 'downfall',
4853
+ type: 'lf32',
4854
+ },
4855
+ {
4856
+ name: 'red_spore_density',
4857
+ type: 'lf32',
4858
+ },
4859
+ {
4860
+ name: 'blue_spore_density',
4861
+ type: 'lf32',
4862
+ },
4863
+ {
4864
+ name: 'ash_density',
4865
+ type: 'lf32',
4866
+ },
4867
+ {
4868
+ name: 'white_ash_density',
4869
+ type: 'lf32',
4870
+ },
4871
+ {
4872
+ name: 'depth',
4873
+ type: 'lf32',
4874
+ },
4875
+ {
4876
+ name: 'scale',
4877
+ type: 'lf32',
4878
+ },
4879
+ {
4880
+ name: 'map_water_colour',
4881
+ type: 'li32',
4882
+ },
4883
+ {
4884
+ name: 'rain',
4885
+ type: 'bool',
4886
+ },
4887
+ {
4888
+ name: 'tags',
4889
+ type: [
4890
+ 'option',
4891
+ [
4892
+ 'array',
4893
+ {
4894
+ countType: 'varint',
4895
+ type: 'lu16',
4896
+ },
4897
+ ],
4898
+ ],
4899
+ },
4900
+ {
4901
+ name: 'chunk_generation',
4902
+ type: [
4903
+ 'option',
4904
+ 'BiomeChunkGeneration',
4905
+ ],
4906
+ },
4907
+ ],
4908
+ ],
4909
+ BiomeChunkGeneration: [
4910
+ 'container',
4911
+ [
4912
+ {
4913
+ name: 'climate',
4914
+ type: [
4915
+ 'option',
4916
+ 'BiomeClimate',
4917
+ ],
4918
+ },
4919
+ {
4920
+ name: 'consolidated_features',
4921
+ type: [
4922
+ 'option',
4923
+ [
4924
+ 'array',
4925
+ {
4926
+ countType: 'varint',
4927
+ type: 'BiomeConsolidatedFeature',
4928
+ },
4929
+ ],
4930
+ ],
4931
+ },
4932
+ {
4933
+ name: 'mountain_parameters',
4934
+ type: [
4935
+ 'option',
4936
+ 'BiomeMountainParameters',
4937
+ ],
4938
+ },
4939
+ {
4940
+ name: 'surface_material_adjustments',
4941
+ type: [
4942
+ 'option',
4943
+ [
4944
+ 'array',
4945
+ {
4946
+ countType: 'varint',
4947
+ type: 'BiomeElementData',
4948
+ },
4949
+ ],
4950
+ ],
4951
+ },
4952
+ {
4953
+ name: 'surface_materials',
4954
+ type: [
4955
+ 'option',
4956
+ 'BiomeSurfaceMaterial',
4957
+ ],
4958
+ },
4959
+ {
4960
+ name: 'has_swamp_surface',
4961
+ type: 'bool',
4962
+ },
4963
+ {
4964
+ name: 'has_frozen_ocean_surface',
4965
+ type: 'bool',
4966
+ },
4967
+ {
4968
+ name: 'has_end_surface',
4969
+ type: 'bool',
4970
+ },
4971
+ {
4972
+ name: 'mesa_surface',
4973
+ type: [
4974
+ 'option',
4975
+ 'BiomeMesaSurface',
4976
+ ],
4977
+ },
4978
+ {
4979
+ name: 'capped_surface',
4980
+ type: [
4981
+ 'option',
4982
+ 'BiomeCappedSurface',
4983
+ ],
4984
+ },
4985
+ {
4986
+ name: 'overworld_rules',
4987
+ type: [
4988
+ 'option',
4989
+ 'BiomeOverworldRules',
4990
+ ],
4991
+ },
4992
+ {
4993
+ name: 'multi_noise_rules',
4994
+ type: [
4995
+ 'option',
4996
+ 'BiomeMultiNoiseRules',
4997
+ ],
4998
+ },
4999
+ {
5000
+ name: 'legacy_rules',
5001
+ type: [
5002
+ 'option',
5003
+ [
5004
+ 'array',
5005
+ {
5006
+ countType: 'varint',
5007
+ type: 'BiomeConditionalTransformation',
5008
+ },
5009
+ ],
5010
+ ],
5011
+ },
5012
+ ],
5013
+ ],
5014
+ BiomeClimate: [
5015
+ 'container',
5016
+ [
5017
+ {
5018
+ name: 'temperature',
5019
+ type: 'lf32',
5020
+ },
5021
+ {
5022
+ name: 'downfall',
5023
+ type: 'lf32',
5024
+ },
5025
+ {
5026
+ name: 'red_spore_density',
5027
+ type: 'lf32',
5028
+ },
5029
+ {
5030
+ name: 'blue_spore_density',
5031
+ type: 'lf32',
5032
+ },
5033
+ {
5034
+ name: 'ash_density',
5035
+ type: 'lf32',
5036
+ },
5037
+ {
5038
+ name: 'white_ash_density',
5039
+ type: 'lf32',
5040
+ },
5041
+ {
5042
+ name: 'snow_accumulation_min',
5043
+ type: 'lf32',
5044
+ },
5045
+ {
5046
+ name: 'snow_accumulation_max',
5047
+ type: 'lf32',
5048
+ },
5049
+ ],
5050
+ ],
5051
+ BiomeMountainParameters: [
5052
+ 'container',
5053
+ [
5054
+ {
5055
+ name: 'steep_block',
5056
+ type: 'li32',
5057
+ },
5058
+ {
5059
+ name: 'north_slopes',
5060
+ type: 'bool',
5061
+ },
5062
+ {
5063
+ name: 'south_slopes',
5064
+ type: 'bool',
5065
+ },
5066
+ {
5067
+ name: 'west_slopes',
5068
+ type: 'bool',
5069
+ },
5070
+ {
5071
+ name: 'east_slopes',
5072
+ type: 'bool',
5073
+ },
5074
+ {
5075
+ name: 'top_slide_enabled',
5076
+ type: 'bool',
5077
+ },
5078
+ ],
5079
+ ],
5080
+ BiomeSurfaceMaterial: [
5081
+ 'container',
5082
+ [
5083
+ {
5084
+ name: 'top_block',
5085
+ type: 'li32',
5086
+ },
5087
+ {
5088
+ name: 'mid_block',
5089
+ type: 'li32',
5090
+ },
5091
+ {
5092
+ name: 'sea_floor_block',
5093
+ type: 'li32',
5094
+ },
5095
+ {
5096
+ name: 'foundation_block',
5097
+ type: 'li32',
5098
+ },
5099
+ {
5100
+ name: 'sea_block',
5101
+ type: 'li32',
5102
+ },
5103
+ {
5104
+ name: 'sea_floor_depth',
5105
+ type: 'li32',
5106
+ },
5107
+ ],
5108
+ ],
5109
+ BiomeMesaSurface: [
5110
+ 'container',
5111
+ [
5112
+ {
5113
+ name: 'clay_material',
5114
+ type: 'lu32',
5115
+ },
5116
+ {
5117
+ name: 'hard_clay_material',
5118
+ type: 'lu32',
5119
+ },
5120
+ {
5121
+ name: 'bryce_pillars',
5122
+ type: 'bool',
5123
+ },
5124
+ {
5125
+ name: 'has_forest',
5126
+ type: 'bool',
5127
+ },
5128
+ ],
5129
+ ],
5130
+ BiomeCappedSurface: [
5131
+ 'container',
5132
+ [
5133
+ {
5134
+ name: 'floor_blocks',
5135
+ type: [
5136
+ 'array',
5137
+ {
5138
+ countType: 'varint',
5139
+ type: 'li32',
5140
+ },
5141
+ ],
5142
+ },
5143
+ {
5144
+ name: 'ceiling_blocks',
5145
+ type: [
5146
+ 'array',
5147
+ {
5148
+ countType: 'varint',
5149
+ type: 'li32',
5150
+ },
5151
+ ],
5152
+ },
5153
+ {
5154
+ name: 'sea_block',
5155
+ type: [
5156
+ 'option',
5157
+ 'lu32',
5158
+ ],
5159
+ },
5160
+ {
5161
+ name: 'foundation_block',
5162
+ type: [
5163
+ 'option',
5164
+ 'lu32',
5165
+ ],
5166
+ },
5167
+ {
5168
+ name: 'beach_block',
5169
+ type: [
5170
+ 'option',
5171
+ 'lu32',
5172
+ ],
5173
+ },
5174
+ ],
5175
+ ],
5176
+ BiomeMultiNoiseRules: [
5177
+ 'container',
5178
+ [
5179
+ {
5180
+ name: 'temperature',
5181
+ type: 'lf32',
5182
+ },
5183
+ {
5184
+ name: 'humidity',
5185
+ type: 'lf32',
5186
+ },
5187
+ {
5188
+ name: 'altitude',
5189
+ type: 'lf32',
5190
+ },
5191
+ {
5192
+ name: 'weirdness',
5193
+ type: 'lf32',
5194
+ },
5195
+ {
5196
+ name: 'weight',
5197
+ type: 'lf32',
5198
+ },
5199
+ ],
5200
+ ],
5201
+ BiomeWeight: [
5202
+ 'container',
5203
+ [
5204
+ {
5205
+ name: 'biome',
5206
+ type: 'li16',
5207
+ },
5208
+ {
5209
+ name: 'weight',
5210
+ type: 'lu32',
5211
+ },
5212
+ ],
5213
+ ],
5214
+ BiomeTemperatureWeight: [
5215
+ 'container',
5216
+ [
5217
+ {
5218
+ name: 'temperature',
5219
+ type: 'zigzag32',
5220
+ },
5221
+ {
5222
+ name: 'weight',
5223
+ type: 'lu32',
5224
+ },
5225
+ ],
5226
+ ],
5227
+ BiomeConsolidatedFeature: [
5228
+ 'container',
5229
+ [
5230
+ {
5231
+ name: 'scatter',
5232
+ type: 'BiomeScatterParameter',
5233
+ },
5234
+ {
5235
+ name: 'feature',
5236
+ type: 'li16',
5237
+ },
5238
+ {
5239
+ name: 'identifier',
5240
+ type: 'li16',
5241
+ },
5242
+ {
5243
+ name: 'pass',
5244
+ type: 'li16',
5245
+ },
5246
+ {
5247
+ name: 'can_use_internal',
5248
+ type: 'bool',
5249
+ },
5250
+ ],
4778
5251
  ],
4779
- FullContainerName: [
5252
+ BiomeScatterParameter: [
4780
5253
  'container',
4781
5254
  [
4782
5255
  {
4783
- name: 'container_id',
4784
- type: 'ContainerSlotType',
5256
+ name: 'coordinates',
5257
+ type: [
5258
+ 'array',
5259
+ {
5260
+ countType: 'varint',
5261
+ type: 'BiomeCoordinate',
5262
+ },
5263
+ ],
4785
5264
  },
4786
5265
  {
4787
- name: 'dynamic_container_id',
5266
+ name: 'evaluation_order',
4788
5267
  type: [
4789
- 'option',
4790
- 'u32',
5268
+ 'mapper',
5269
+ {
5270
+ type: 'zigzag32',
5271
+ mappings: {
5272
+ 0: 'xyz',
5273
+ 1: 'xzy',
5274
+ 2: 'yxz',
5275
+ 3: 'yzx',
5276
+ 4: 'zxy',
5277
+ 5: 'zyx',
5278
+ },
5279
+ },
4791
5280
  ],
4792
5281
  },
5282
+ {
5283
+ name: 'chance_percent_type',
5284
+ type: 'zigzag32',
5285
+ },
5286
+ {
5287
+ name: 'chance_percent',
5288
+ type: 'li16',
5289
+ },
5290
+ {
5291
+ name: 'chance_numerator',
5292
+ type: 'li32',
5293
+ },
5294
+ {
5295
+ name: 'chance_denominator',
5296
+ type: 'li32',
5297
+ },
5298
+ {
5299
+ name: 'iterations_type',
5300
+ type: 'zigzag32',
5301
+ },
5302
+ {
5303
+ name: 'iterations',
5304
+ type: 'li16',
5305
+ },
4793
5306
  ],
4794
5307
  ],
4795
- MovementEffectType: [
4796
- 'mapper',
4797
- {
4798
- type: 'varint',
4799
- mappings: {
4800
- '0': 'GLIDE_BOOST',
4801
- '-1': 'invalid',
5308
+ BiomeCoordinate: [
5309
+ 'container',
5310
+ [
5311
+ {
5312
+ name: 'min_value_type',
5313
+ type: 'zigzag32',
4802
5314
  },
4803
- },
5315
+ {
5316
+ name: 'min_value',
5317
+ type: 'li16',
5318
+ },
5319
+ {
5320
+ name: 'max_value_type',
5321
+ type: 'zigzag32',
5322
+ },
5323
+ {
5324
+ name: 'max_value',
5325
+ type: 'li16',
5326
+ },
5327
+ {
5328
+ name: 'grid_offset',
5329
+ type: 'lu32',
5330
+ },
5331
+ {
5332
+ name: 'grid_step_size',
5333
+ type: 'lu32',
5334
+ },
5335
+ {
5336
+ name: 'distribution',
5337
+ type: [
5338
+ 'mapper',
5339
+ {
5340
+ type: 'zigzag32',
5341
+ mappings: {
5342
+ 0: 'single_valued',
5343
+ 1: 'uniform',
5344
+ 2: 'gaussian',
5345
+ 3: 'inverse_gaussian',
5346
+ 4: 'fixed_grid',
5347
+ 5: 'jittered_grid',
5348
+ 6: 'triangle',
5349
+ },
5350
+ },
5351
+ ],
5352
+ },
5353
+ ],
5354
+ ],
5355
+ BiomeElementData: [
5356
+ 'container',
5357
+ [
5358
+ {
5359
+ name: 'noise_frequency_scale',
5360
+ type: 'lf32',
5361
+ },
5362
+ {
5363
+ name: 'noise_lower_bound',
5364
+ type: 'lf32',
5365
+ },
5366
+ {
5367
+ name: 'noise_upper_bound',
5368
+ type: 'lf32',
5369
+ },
5370
+ {
5371
+ name: 'height_min_type',
5372
+ type: 'zigzag32',
5373
+ },
5374
+ {
5375
+ name: 'height_min',
5376
+ type: 'li16',
5377
+ },
5378
+ {
5379
+ name: 'height_max_type',
5380
+ type: 'zigzag32',
5381
+ },
5382
+ {
5383
+ name: 'height_max',
5384
+ type: 'li16',
5385
+ },
5386
+ {
5387
+ name: 'adjusted_materials',
5388
+ type: 'BiomeSurfaceMaterial',
5389
+ },
5390
+ ],
5391
+ ],
5392
+ BiomeOverworldRules: [
5393
+ 'container',
5394
+ [
5395
+ {
5396
+ name: 'hills_transformations',
5397
+ type: [
5398
+ 'array',
5399
+ {
5400
+ countType: 'varint',
5401
+ type: 'BiomeWeight',
5402
+ },
5403
+ ],
5404
+ },
5405
+ {
5406
+ name: 'mutate_transformations',
5407
+ type: [
5408
+ 'array',
5409
+ {
5410
+ countType: 'varint',
5411
+ type: 'BiomeWeight',
5412
+ },
5413
+ ],
5414
+ },
5415
+ {
5416
+ name: 'river_transformations',
5417
+ type: [
5418
+ 'array',
5419
+ {
5420
+ countType: 'varint',
5421
+ type: 'BiomeWeight',
5422
+ },
5423
+ ],
5424
+ },
5425
+ {
5426
+ name: 'shore_transformations',
5427
+ type: [
5428
+ 'array',
5429
+ {
5430
+ countType: 'varint',
5431
+ type: 'BiomeWeight',
5432
+ },
5433
+ ],
5434
+ },
5435
+ {
5436
+ name: 'pre_hills_edge_transformations',
5437
+ type: [
5438
+ 'array',
5439
+ {
5440
+ countType: 'varint',
5441
+ type: 'BiomeConditionalTransformation',
5442
+ },
5443
+ ],
5444
+ },
5445
+ {
5446
+ name: 'post_shore_edge_transformations',
5447
+ type: [
5448
+ 'array',
5449
+ {
5450
+ countType: 'varint',
5451
+ type: 'BiomeConditionalTransformation',
5452
+ },
5453
+ ],
5454
+ },
5455
+ {
5456
+ name: 'climate_transformations',
5457
+ type: [
5458
+ 'array',
5459
+ {
5460
+ countType: 'varint',
5461
+ type: 'BiomeTemperatureWeight',
5462
+ },
5463
+ ],
5464
+ },
5465
+ ],
5466
+ ],
5467
+ BiomeConditionalTransformation: [
5468
+ 'container',
5469
+ [
5470
+ {
5471
+ name: 'weighted_biomes',
5472
+ type: [
5473
+ 'array',
5474
+ {
5475
+ countType: 'varint',
5476
+ type: 'BiomeWeight',
5477
+ },
5478
+ ],
5479
+ },
5480
+ {
5481
+ name: 'condition_json',
5482
+ type: 'li16',
5483
+ },
5484
+ {
5485
+ name: 'min_passing_neighbours',
5486
+ type: 'lu32',
5487
+ },
5488
+ ],
4804
5489
  ],
4805
5490
  mcpe_packet: [
4806
5491
  'container',
@@ -4956,6 +5641,7 @@ exports.default = {
4956
5641
  147: 'item_stack_request',
4957
5642
  148: 'item_stack_response',
4958
5643
  149: 'player_armor_damage',
5644
+ 150: 'code_builder',
4959
5645
  151: 'update_player_game_type',
4960
5646
  152: 'emote_list',
4961
5647
  153: 'position_tracking_db_broadcast',
@@ -5030,6 +5716,8 @@ exports.default = {
5030
5716
  323: 'update_client_options',
5031
5717
  324: 'player_video_capture',
5032
5718
  325: 'player_update_entity_overrides',
5719
+ 326: 'player_location',
5720
+ 327: 'clientbound_controls_scheme',
5033
5721
  },
5034
5722
  },
5035
5723
  ],
@@ -5184,6 +5872,7 @@ exports.default = {
5184
5872
  item_stack_request: 'packet_item_stack_request',
5185
5873
  item_stack_response: 'packet_item_stack_response',
5186
5874
  player_armor_damage: 'packet_player_armor_damage',
5875
+ code_builder: 'packet_code_builder',
5187
5876
  update_player_game_type: 'packet_update_player_game_type',
5188
5877
  emote_list: 'packet_emote_list',
5189
5878
  position_tracking_db_request: 'packet_position_tracking_db_request',
@@ -5259,6 +5948,8 @@ exports.default = {
5259
5948
  update_client_options: 'packet_update_client_options',
5260
5949
  player_video_capture: 'packet_player_video_capture',
5261
5950
  player_update_entity_overrides: 'packet_player_update_entity_overrides',
5951
+ player_location: 'packet_player_location',
5952
+ clientbound_controls_scheme: 'packet_clientbound_controls_scheme',
5262
5953
  },
5263
5954
  },
5264
5955
  ],
@@ -5766,6 +6457,7 @@ exports.default = {
5766
6457
  0: 'not_editor',
5767
6458
  1: 'project',
5768
6459
  2: 'test_level',
6460
+ 3: 'realms_upload',
5769
6461
  },
5770
6462
  },
5771
6463
  ],
@@ -9889,8 +10581,24 @@ exports.default = {
9889
10581
  'container',
9890
10582
  [
9891
10583
  {
9892
- name: 'nbt',
9893
- type: 'nbt',
10584
+ name: 'biome_definitions',
10585
+ type: [
10586
+ 'array',
10587
+ {
10588
+ countType: 'varint',
10589
+ type: 'BiomeDefinition',
10590
+ },
10591
+ ],
10592
+ },
10593
+ {
10594
+ name: 'string_list',
10595
+ type: [
10596
+ 'array',
10597
+ {
10598
+ countType: 'varint',
10599
+ type: 'string',
10600
+ },
10601
+ ],
9894
10602
  },
9895
10603
  ],
9896
10604
  ],
@@ -10948,6 +11656,19 @@ exports.default = {
10948
11656
  },
10949
11657
  },
10950
11658
  ],
11659
+ packet_code_builder: [
11660
+ 'container',
11661
+ [
11662
+ {
11663
+ name: 'url',
11664
+ type: 'string',
11665
+ },
11666
+ {
11667
+ name: 'should_open_code_builder',
11668
+ type: 'bool',
11669
+ },
11670
+ ],
11671
+ ],
10951
11672
  packet_update_player_game_type: [
10952
11673
  'container',
10953
11674
  [
@@ -13358,5 +14079,60 @@ exports.default = {
13358
14079
  },
13359
14080
  ],
13360
14081
  ],
14082
+ packet_player_location: [
14083
+ 'container',
14084
+ [
14085
+ {
14086
+ name: 'type',
14087
+ type: [
14088
+ 'mapper',
14089
+ {
14090
+ type: 'li32',
14091
+ mappings: {
14092
+ 0: 'coordinates',
14093
+ 1: 'type_hide',
14094
+ },
14095
+ },
14096
+ ],
14097
+ },
14098
+ {
14099
+ name: 'entity_unique_id',
14100
+ type: 'varint64',
14101
+ },
14102
+ {
14103
+ name: 'position',
14104
+ type: [
14105
+ 'switch',
14106
+ {
14107
+ compareTo: 'type',
14108
+ fields: {
14109
+ coordinates: 'vec3f',
14110
+ },
14111
+ },
14112
+ ],
14113
+ },
14114
+ ],
14115
+ ],
14116
+ packet_clientbound_controls_scheme: [
14117
+ 'container',
14118
+ [
14119
+ {
14120
+ name: 'scheme',
14121
+ type: [
14122
+ 'mapper',
14123
+ {
14124
+ type: 'u8',
14125
+ mappings: {
14126
+ 0: 'locked_player_relative_strafe',
14127
+ 1: 'camera_relative',
14128
+ 2: 'camera_relative_strafe',
14129
+ 3: 'player_relative',
14130
+ 4: 'player_relative_strafe',
14131
+ },
14132
+ },
14133
+ ],
14134
+ },
14135
+ ],
14136
+ ],
13361
14137
  },
13362
14138
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal-nethernet",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
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",