bedrock-portal-nethernet 2.0.6 → 2.0.8

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.110";
12
+ export declare const CURRENT_VERSION = "1.21.124";
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.110';
6
+ exports.CURRENT_VERSION = '1.21.124';
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: 844,
25
+ protocolVersion: 860,
26
26
  };
@@ -73,7 +73,7 @@ declare const _default: {
73
73
  6: string;
74
74
  };
75
75
  })[];
76
- GameRule: (string | ({
76
+ GameRuleI32: (string | ({
77
77
  name: string;
78
78
  type: string;
79
79
  } | {
@@ -97,10 +97,30 @@ declare const _default: {
97
97
  };
98
98
  })[];
99
99
  })[])[];
100
- GameRules: (string | {
101
- countType: string;
100
+ GameRuleVarint: (string | ({
101
+ name: string;
102
102
  type: string;
103
- })[];
103
+ } | {
104
+ name: string;
105
+ type: (string | {
106
+ type: string;
107
+ mappings: {
108
+ 1: string;
109
+ 2: string;
110
+ 3: string;
111
+ };
112
+ })[];
113
+ } | {
114
+ name: string;
115
+ type: (string | {
116
+ compareTo: string;
117
+ fields: {
118
+ bool: string;
119
+ int: string;
120
+ float: string;
121
+ };
122
+ })[];
123
+ })[])[];
104
124
  Blob: (string | {
105
125
  name: string;
106
126
  type: string;
@@ -538,6 +558,17 @@ declare const _default: {
538
558
  })[])[];
539
559
  })[];
540
560
  TransactionUseItem: (string | ({
561
+ name: string;
562
+ type: (string | {
563
+ type: string;
564
+ mappings: {
565
+ 0: string;
566
+ 1: string;
567
+ 2: string;
568
+ 3: string;
569
+ };
570
+ })[];
571
+ } | {
541
572
  name: string;
542
573
  type: (string | {
543
574
  type: string;
@@ -2185,6 +2216,12 @@ declare const _default: {
2185
2216
  557: string;
2186
2217
  558: string;
2187
2218
  559: string;
2219
+ 560: string;
2220
+ 561: string;
2221
+ 562: string;
2222
+ 563: string;
2223
+ 564: string;
2224
+ 565: string;
2188
2225
  };
2189
2226
  })[];
2190
2227
  LegacyEntityType: (string | {
@@ -2362,6 +2399,20 @@ declare const _default: {
2362
2399
  };
2363
2400
  })[])[];
2364
2401
  })[])[];
2402
+ CameraRotationOption: (string | {
2403
+ name: string;
2404
+ type: string;
2405
+ }[])[];
2406
+ CameraSplineInstruction: (string | ({
2407
+ name: string;
2408
+ type: string;
2409
+ } | {
2410
+ name: string;
2411
+ type: (string | {
2412
+ countType: string;
2413
+ type: string;
2414
+ })[];
2415
+ })[])[];
2365
2416
  DisconnectFailReason: (string | {
2366
2417
  type: string;
2367
2418
  mappings: {
@@ -2624,6 +2675,16 @@ declare const _default: {
2624
2675
  name: string;
2625
2676
  type: string;
2626
2677
  })[])[];
2678
+ BiomeReplacementData: (string | ({
2679
+ name: string;
2680
+ type: string;
2681
+ } | {
2682
+ name: string;
2683
+ type: (string | {
2684
+ countType: string;
2685
+ type: string;
2686
+ })[];
2687
+ })[])[];
2627
2688
  EaseType: (string | {
2628
2689
  type: string;
2629
2690
  mappings: {
@@ -2661,6 +2722,23 @@ declare const _default: {
2661
2722
  31: string;
2662
2723
  };
2663
2724
  })[];
2725
+ CameraSplineEaseType: (string | {
2726
+ type: string;
2727
+ mappings: {
2728
+ 0: string;
2729
+ 1: string;
2730
+ };
2731
+ })[];
2732
+ ParameterKeyframeValue: (string | {
2733
+ name: string;
2734
+ type: string;
2735
+ }[])[];
2736
+ GraphicsOverrideParameterType: (string | {
2737
+ type: string;
2738
+ mappings: {
2739
+ 0: string;
2740
+ };
2741
+ })[];
2664
2742
  mcpe_packet: (string | ({
2665
2743
  name: string;
2666
2744
  type: (string | {
@@ -2888,6 +2966,8 @@ declare const _default: {
2888
2966
  326: string;
2889
2967
  327: string;
2890
2968
  328: string;
2969
+ 329: string;
2970
+ 331: string;
2891
2971
  };
2892
2972
  })[];
2893
2973
  } | {
@@ -3117,6 +3197,8 @@ declare const _default: {
3117
3197
  player_location: string;
3118
3198
  clientbound_controls_scheme: string;
3119
3199
  server_script_debug_drawer: string;
3200
+ serverbound_pack_setting_change: string;
3201
+ graphics_override_parameter: string;
3120
3202
  };
3121
3203
  })[];
3122
3204
  })[])[];
@@ -3332,6 +3414,12 @@ declare const _default: {
3332
3414
  3: string;
3333
3415
  };
3334
3416
  })[];
3417
+ } | {
3418
+ name: string;
3419
+ type: (string | {
3420
+ countType: string;
3421
+ type: string;
3422
+ })[];
3335
3423
  })[])[];
3336
3424
  packet_add_player: (string | ({
3337
3425
  name: string;
@@ -3542,6 +3630,12 @@ declare const _default: {
3542
3630
  3613: string;
3543
3631
  3614: string;
3544
3632
  3615: string;
3633
+ 3616: string;
3634
+ 3617: string;
3635
+ 3618: string;
3636
+ 3619: string;
3637
+ 3620: string;
3638
+ 3621: string;
3545
3639
  4000: string;
3546
3640
  9800: string;
3547
3641
  9801: string;
@@ -3718,6 +3812,7 @@ declare const _default: {
3718
3812
  76: string;
3719
3813
  77: string;
3720
3814
  78: string;
3815
+ 79: string;
3721
3816
  };
3722
3817
  })[];
3723
3818
  })[])[];
@@ -4133,7 +4228,10 @@ declare const _default: {
4133
4228
  }[])[];
4134
4229
  packet_game_rules_changed: (string | {
4135
4230
  name: string;
4136
- type: string;
4231
+ type: (string | {
4232
+ countType: string;
4233
+ type: string;
4234
+ })[];
4137
4235
  }[])[];
4138
4236
  packet_camera: (string | {
4139
4237
  name: string;
@@ -5223,28 +5321,29 @@ declare const _default: {
5223
5321
  name: string;
5224
5322
  type: string;
5225
5323
  }[])[];
5226
- packet_player_armor_damage: (string | ({
5324
+ packet_player_armor_damage: (string | {
5227
5325
  name: string;
5228
- type: string;
5229
- } | {
5326
+ type: (string | {
5327
+ countType: string;
5328
+ type: string;
5329
+ })[];
5330
+ }[])[];
5331
+ ArmorDamageEntry: (string | ({
5230
5332
  name: string;
5231
5333
  type: (string | {
5232
- compareTo: string;
5233
- fields: {
5234
- true: string;
5334
+ type: string;
5335
+ mappings: {
5336
+ 0: string;
5337
+ 1: string;
5338
+ 2: string;
5339
+ 3: string;
5340
+ 4: string;
5235
5341
  };
5236
5342
  })[];
5237
- })[])[];
5238
- ArmorDamageType: (string | {
5343
+ } | {
5344
+ name: string;
5239
5345
  type: string;
5240
- flags: {
5241
- head: number;
5242
- chest: number;
5243
- legs: number;
5244
- feet: number;
5245
- body: number;
5246
- };
5247
- })[];
5346
+ })[])[];
5248
5347
  packet_code_builder: (string | {
5249
5348
  name: string;
5250
5349
  type: string;
@@ -6199,6 +6298,46 @@ declare const _default: {
6199
6298
  })[])[];
6200
6299
  })[];
6201
6300
  }[])[];
6301
+ packet_serverbound_pack_setting_change: (string | ({
6302
+ name: string;
6303
+ type: string;
6304
+ } | {
6305
+ name: string;
6306
+ type: (string | ({
6307
+ name: string;
6308
+ type: string;
6309
+ } | {
6310
+ name: string;
6311
+ type: (string | {
6312
+ type: string;
6313
+ mappings: {
6314
+ 0: string;
6315
+ 1: string;
6316
+ 2: string;
6317
+ };
6318
+ })[];
6319
+ } | {
6320
+ name: string;
6321
+ type: (string | {
6322
+ compareTo: string;
6323
+ fields: {
6324
+ float: string;
6325
+ bool: string;
6326
+ string: string;
6327
+ };
6328
+ })[];
6329
+ })[])[];
6330
+ })[])[];
6331
+ packet_graphics_override_parameter: (string | ({
6332
+ name: string;
6333
+ type: (string | {
6334
+ countType: string;
6335
+ type: string;
6336
+ })[];
6337
+ } | {
6338
+ name: string;
6339
+ type: string;
6340
+ })[])[];
6202
6341
  };
6203
6342
  };
6204
6343
  export default _default;
package/dist/protocol.js CHANGED
@@ -174,7 +174,7 @@ exports.default = {
174
174
  },
175
175
  },
176
176
  ],
177
- GameRule: [
177
+ GameRuleI32: [
178
178
  'container',
179
179
  [
180
180
  {
@@ -207,7 +207,7 @@ exports.default = {
207
207
  compareTo: 'type',
208
208
  fields: {
209
209
  bool: 'bool',
210
- int: 'zigzag32',
210
+ int: 'li32',
211
211
  float: 'lf32',
212
212
  },
213
213
  },
@@ -215,12 +215,46 @@ exports.default = {
215
215
  },
216
216
  ],
217
217
  ],
218
- GameRules: [
219
- 'array',
220
- {
221
- countType: 'varint',
222
- type: 'GameRule',
223
- },
218
+ GameRuleVarint: [
219
+ 'container',
220
+ [
221
+ {
222
+ name: 'name',
223
+ type: 'string',
224
+ },
225
+ {
226
+ name: 'editable',
227
+ type: 'bool',
228
+ },
229
+ {
230
+ name: 'type',
231
+ type: [
232
+ 'mapper',
233
+ {
234
+ type: 'varint',
235
+ mappings: {
236
+ 1: 'bool',
237
+ 2: 'int',
238
+ 3: 'float',
239
+ },
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ name: 'value',
245
+ type: [
246
+ 'switch',
247
+ {
248
+ compareTo: 'type',
249
+ fields: {
250
+ bool: 'bool',
251
+ int: 'varint',
252
+ float: 'lf32',
253
+ },
254
+ },
255
+ ],
256
+ },
257
+ ],
224
258
  ],
225
259
  Blob: [
226
260
  'container',
@@ -1043,6 +1077,7 @@ exports.default = {
1043
1077
  'wasd_air_controlled',
1044
1078
  'does_server_auth_only_dismount',
1045
1079
  'body_rotation_always_follows_head',
1080
+ 'can_use_vertical_movement_action',
1046
1081
  ],
1047
1082
  },
1048
1083
  ],
@@ -1282,6 +1317,7 @@ exports.default = {
1282
1317
  0: 'click_block',
1283
1318
  1: 'click_air',
1284
1319
  2: 'break_block',
1320
+ 3: 'attack',
1285
1321
  },
1286
1322
  },
1287
1323
  ],
@@ -3793,7 +3829,7 @@ exports.default = {
3793
3829
  35: 'Land',
3794
3830
  36: 'Saddle',
3795
3831
  37: 'Armor',
3796
- 38: 'MobArmorStandPlace',
3832
+ 38: 'ArmorStandPlace',
3797
3833
  39: 'AddChest',
3798
3834
  40: 'Throw',
3799
3835
  41: 'Attack',
@@ -3816,7 +3852,7 @@ exports.default = {
3816
3852
  58: 'LargeBlast',
3817
3853
  59: 'Twinkle',
3818
3854
  60: 'Remedy',
3819
- 61: 'Infect',
3855
+ 61: 'Unfect',
3820
3856
  62: 'LevelUp',
3821
3857
  63: 'BowHit',
3822
3858
  64: 'BulletHit',
@@ -4133,51 +4169,51 @@ exports.default = {
4133
4169
  375: 'Listening',
4134
4170
  376: 'Heartbeat',
4135
4171
  377: 'HornBreak',
4136
- 378: 'SculkPlace',
4172
+ 378: '_',
4137
4173
  379: 'SculkSpread',
4138
4174
  380: 'SculkCharge',
4139
4175
  381: 'SculkSensorPlace',
4140
4176
  382: 'SculkShriekerPlace',
4141
- 383: 'goat_call_0',
4142
- 384: 'goat_call_1',
4143
- 385: 'goat_call_2',
4144
- 386: 'goat_call_3',
4145
- 387: 'goat_call_4',
4146
- 388: 'goat_call_5',
4147
- 389: 'goat_call_6',
4148
- 390: 'goat_call_7',
4149
- 391: 'goat_call_8',
4150
- 392: 'goat_call_9',
4151
- 393: 'goat_harmony_0',
4152
- 394: 'goat_harmony_1',
4153
- 395: 'goat_harmony_2',
4154
- 396: 'goat_harmony_3',
4155
- 397: 'goat_harmony_4',
4156
- 398: 'goat_harmony_5',
4157
- 399: 'goat_harmony_6',
4158
- 400: 'goat_harmony_7',
4159
- 401: 'goat_harmony_8',
4160
- 402: 'goat_harmony_9',
4161
- 403: 'goat_melody_0',
4162
- 404: 'goat_melody_1',
4163
- 405: 'goat_melody_2',
4164
- 406: 'goat_melody_3',
4165
- 407: 'goat_melody_4',
4166
- 408: 'goat_melody_5',
4167
- 409: 'goat_melody_6',
4168
- 410: 'goat_melody_7',
4169
- 411: 'goat_melody_8',
4170
- 412: 'goat_melody_9',
4171
- 413: 'goat_bass_0',
4172
- 414: 'goat_bass_1',
4173
- 415: 'goat_bass_2',
4174
- 416: 'goat_bass_3',
4175
- 417: 'goat_bass_4',
4176
- 418: 'goat_bass_5',
4177
- 419: 'goat_bass_6',
4178
- 420: 'goat_bass_7',
4179
- 421: 'goat_bass_8',
4180
- 422: 'goat_bass_9',
4177
+ 383: 'GoatCall0',
4178
+ 384: 'GoatCall1',
4179
+ 385: 'GoatCall2',
4180
+ 386: 'GoatCall3',
4181
+ 387: 'GoatCall4',
4182
+ 388: 'GoatCall5',
4183
+ 389: 'GoatCall6',
4184
+ 390: 'GoatCall7',
4185
+ 391: 'GoatCall8',
4186
+ 392: 'GoatCall9',
4187
+ 393: 'GoatHarmony0',
4188
+ 394: 'GoatHarmony1',
4189
+ 395: 'GoatHarmony2',
4190
+ 396: 'GoatHarmony3',
4191
+ 397: 'GoatHarmony4',
4192
+ 398: 'GoatHarmony5',
4193
+ 399: 'GoatHarmony6',
4194
+ 400: 'GoatHarmony7',
4195
+ 401: 'GoatHarmony8',
4196
+ 402: 'GoatHarmony9',
4197
+ 403: 'GoatMelody0',
4198
+ 404: 'GoatMelody1',
4199
+ 405: 'GoatMelody2',
4200
+ 406: 'GoatMelody3',
4201
+ 407: 'GoatMelody4',
4202
+ 408: 'GoatMelody5',
4203
+ 409: 'GoatMelody6',
4204
+ 410: 'GoatMelody7',
4205
+ 411: 'GoatMelody8',
4206
+ 412: 'GoatMelody9',
4207
+ 413: 'GoatBass0',
4208
+ 414: 'GoatBass1',
4209
+ 415: 'GoatBass2',
4210
+ 416: 'GoatBass3',
4211
+ 417: 'GoatBass4',
4212
+ 418: 'GoatBass5',
4213
+ 419: 'GoatBass6',
4214
+ 420: 'GoatBass7',
4215
+ 421: 'GoatBass8',
4216
+ 422: 'GoatBass9',
4181
4217
  423: '_',
4182
4218
  424: '_',
4183
4219
  425: '_',
@@ -4232,89 +4268,95 @@ exports.default = {
4232
4268
  474: 'HoglinZombified',
4233
4269
  475: 'AmbientUnderwaterEnter',
4234
4270
  476: 'AmbientUnderwaterExit',
4235
- 477: 'bottle_fill',
4236
- 478: 'bottle_empty',
4237
- 479: 'crafter_craft',
4238
- 480: 'crafter_fail',
4239
- 481: 'block_decorated_pot_insert',
4240
- 482: 'block_decorated_pot_insert_fail',
4241
- 483: 'crafter_disable_slot',
4242
- 484: 'trial_spawner_open_shutter',
4243
- 485: 'trial_spawner_eject_item',
4244
- 486: 'trial_spawner_detect_player',
4245
- 487: 'trial_spawner_spawn_mob',
4246
- 488: 'trial_spawner_close_shutter',
4247
- 489: 'trial_spawner_ambient',
4248
- 490: 'block_copper_bulb_turn_on',
4249
- 491: 'block_copper_bulb_turn_off',
4250
- 492: 'ambient_in_air',
4251
- 493: 'breeze_wind_charge_burst',
4252
- 494: 'imitate_breeze',
4253
- 495: 'mob_armadillo_brush',
4254
- 496: 'mob_armadillo_scute_drop',
4255
- 497: 'armor_equip_wolf',
4256
- 498: 'armor_unequip_wolf',
4257
- 499: 'reflect',
4258
- 500: 'vault_open_shutter',
4259
- 501: 'vault_close_shutter',
4260
- 502: 'vault_eject_item',
4261
- 503: 'vault_insert_item',
4262
- 504: 'vault_insert_item_fail',
4263
- 505: 'vault_ambient',
4264
- 506: 'vault_activate',
4265
- 507: 'vault_deactivate',
4266
- 508: 'hurt_reduced',
4267
- 509: 'wind_charge_burst',
4268
- 510: 'imitate_drowned',
4269
- 511: 'imitate_creaking',
4270
- 512: 'bundle_insert_failed',
4271
- 513: 'sponge_absorb',
4272
- 514: '_',
4273
- 515: 'block_creaking_heart_trail',
4274
- 516: 'creaking_heart_spawn',
4275
- 517: 'activate',
4276
- 518: 'deactivate',
4277
- 519: 'freeze',
4278
- 520: 'unfreeze',
4279
- 521: 'open',
4280
- 522: 'open_long',
4281
- 523: 'close',
4282
- 524: 'close_long',
4283
- 525: 'imitate_phantom',
4284
- 526: 'imitate_zoglin',
4285
- 527: 'imitate_guardian',
4286
- 528: 'imitate_ravager',
4287
- 529: 'imitate_pillager',
4288
- 530: 'place_in_water',
4289
- 531: 'state_change',
4290
- 532: 'imitate_happy_ghast',
4291
- 533: 'unique_generic',
4292
- 534: 'record_tears',
4293
- 535: 'the_end_light_flash',
4294
- 536: 'lead_leash',
4295
- 537: 'lead_unleash',
4296
- 538: 'lead_break',
4297
- 539: 'unsaddle',
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',
4271
+ 477: 'BottleFill',
4272
+ 478: 'BottleEmpty',
4273
+ 479: 'CrafterCraft',
4274
+ 480: 'CrafterFail',
4275
+ 481: 'DecoratedPotInsert',
4276
+ 482: 'DecoratedPotInsertFail',
4277
+ 483: 'CrafterDisableSlot',
4278
+ 484: 'TrialSpawnerOpenShutter',
4279
+ 485: 'TrialSpawnerEjectItem',
4280
+ 486: 'TrialSpawnerDetectPlayer',
4281
+ 487: 'TrialSpawnerSpawnMob',
4282
+ 488: 'TrialSpawnerCloseShutter',
4283
+ 489: 'TrialSpawnerAmbient',
4284
+ 490: 'CopperBulbTurnOn',
4285
+ 491: 'CopperBulbTurnOff',
4286
+ 492: 'AmbientInAir',
4287
+ 493: 'BreezeWindChargeBurst',
4288
+ 494: 'ImitateBreeze',
4289
+ 495: 'ArmadilloBrush',
4290
+ 496: 'ArmadilloScuteDrop',
4291
+ 497: 'EquipWolf',
4292
+ 498: 'UnequipWolf',
4293
+ 499: 'Reflect',
4294
+ 500: 'VaultOpenShutter',
4295
+ 501: 'VaultCloseShutter',
4296
+ 502: 'VaultEjectItem',
4297
+ 503: 'VaultInsertItem',
4298
+ 504: 'VaultInsertItemFail',
4299
+ 505: 'VaultAmbient',
4300
+ 506: 'VaultActivate',
4301
+ 507: 'VaultDeactive',
4302
+ 508: 'HurtReduced',
4303
+ 509: 'WindChargeBurst',
4304
+ 510: 'ImitateBogged',
4305
+ 511: 'WolfArmourCrack',
4306
+ 512: 'WolfArmourBreak',
4307
+ 513: 'WolfArmourRepair',
4308
+ 514: 'MaceSmashAir',
4309
+ 515: 'MaceSmashGround',
4310
+ 516: 'TrialSpawnerChargeActivate',
4311
+ 517: 'TrialSpawnerAmbientOminous',
4312
+ 518: 'OminiousItemSpawnerSpawnItem',
4313
+ 519: 'OminousBottleEndUse',
4314
+ 520: 'MaceHeavySmashGround',
4315
+ 521: 'OminousItemSpawnerSpawnItemBegin',
4316
+ 522: '_',
4317
+ 523: 'ApplyEffectBadOmen',
4318
+ 524: 'ApplyEffectRaidOmen',
4319
+ 525: 'ApplyEffectTrialOmen',
4320
+ 526: 'OminousItemSpawnerAboutToSpawnItem',
4321
+ 527: 'RecordCreator',
4322
+ 528: 'RecordCreatorMusicBox',
4323
+ 529: 'RecordPrecipice',
4324
+ 530: 'VaultRejectRewardedPlayer',
4325
+ 531: 'ImitateDrowned',
4326
+ 532: 'ImitateCreaking',
4327
+ 533: 'BundleInsertFailed',
4328
+ 534: 'SpongeAbsorb',
4329
+ 535: '_',
4330
+ 536: 'BlockCreakingHeartTrail',
4331
+ 537: 'CreakingHeartSpawn',
4332
+ 538: 'Activate',
4333
+ 539: 'Deactivate',
4334
+ 540: 'Freeze',
4335
+ 541: 'Unfreeze',
4336
+ 542: 'Open',
4337
+ 543: 'OpenLong',
4338
+ 544: 'Close',
4339
+ 545: 'CloseLong',
4340
+ 546: 'ImitatePhantom',
4341
+ 547: 'ImitateZoglin',
4342
+ 548: 'ImitateGuardian',
4343
+ 549: 'ImitateRavager',
4344
+ 550: 'ImitatePillager',
4345
+ 551: 'PlaceInWater',
4346
+ 552: 'StateChange',
4347
+ 553: 'ImitateHappyGhast',
4348
+ 554: 'UniqueGeneric',
4349
+ 555: 'RecordTears',
4350
+ 556: 'TheEndLightFlash',
4351
+ 557: 'LeadLeash',
4352
+ 558: 'LeadUnleash',
4353
+ 559: 'LeadBreak',
4354
+ 560: 'Unsaddle',
4355
+ 561: 'EquipCopper',
4356
+ 562: 'RecordLavaChicken',
4357
+ 563: 'PlaceItem',
4358
+ 564: 'SingleItemSwap',
4359
+ 565: 'MultiItemSwap',
4318
4360
  },
4319
4361
  },
4320
4362
  ],
@@ -4700,6 +4742,62 @@ exports.default = {
4700
4742
  },
4701
4743
  ],
4702
4744
  ],
4745
+ CameraRotationOption: [
4746
+ 'container',
4747
+ [
4748
+ {
4749
+ name: 'value',
4750
+ type: 'vec3f',
4751
+ },
4752
+ {
4753
+ name: 'time',
4754
+ type: 'lf32',
4755
+ },
4756
+ ],
4757
+ ],
4758
+ CameraSplineInstruction: [
4759
+ 'container',
4760
+ [
4761
+ {
4762
+ name: 'total_time',
4763
+ type: 'lf32',
4764
+ },
4765
+ {
4766
+ name: 'ease_type',
4767
+ type: 'CameraSplineEaseType',
4768
+ },
4769
+ {
4770
+ name: 'curve',
4771
+ type: [
4772
+ 'array',
4773
+ {
4774
+ countType: 'varint',
4775
+ type: 'vec3f',
4776
+ },
4777
+ ],
4778
+ },
4779
+ {
4780
+ name: 'progress_key_frames',
4781
+ type: [
4782
+ 'array',
4783
+ {
4784
+ countType: 'varint',
4785
+ type: 'vec2f',
4786
+ },
4787
+ ],
4788
+ },
4789
+ {
4790
+ name: 'rotation_options',
4791
+ type: [
4792
+ 'array',
4793
+ {
4794
+ countType: 'varint',
4795
+ type: 'CameraRotationOption',
4796
+ },
4797
+ ],
4798
+ },
4799
+ ],
4800
+ ],
4703
4801
  DisconnectFailReason: [
4704
4802
  'mapper',
4705
4803
  {
@@ -4876,19 +4974,7 @@ exports.default = {
4876
4974
  type: 'lf32',
4877
4975
  },
4878
4976
  {
4879
- name: 'red_spore_density',
4880
- type: 'lf32',
4881
- },
4882
- {
4883
- name: 'blue_spore_density',
4884
- type: 'lf32',
4885
- },
4886
- {
4887
- name: 'ash_density',
4888
- type: 'lf32',
4889
- },
4890
- {
4891
- name: 'white_ash_density',
4977
+ name: 'snow_foliage',
4892
4978
  type: 'lf32',
4893
4979
  },
4894
4980
  {
@@ -4979,6 +5065,13 @@ exports.default = {
4979
5065
  'BiomeSurfaceMaterial',
4980
5066
  ],
4981
5067
  },
5068
+ {
5069
+ name: 'has_default_overworld_surface',
5070
+ type: [
5071
+ 'option',
5072
+ 'bool',
5073
+ ],
5074
+ },
4982
5075
  {
4983
5076
  name: 'has_swamp_surface',
4984
5077
  type: 'bool',
@@ -5032,6 +5125,19 @@ exports.default = {
5032
5125
  ],
5033
5126
  ],
5034
5127
  },
5128
+ {
5129
+ name: 'replacements_data',
5130
+ type: [
5131
+ 'option',
5132
+ [
5133
+ 'array',
5134
+ {
5135
+ countType: 'varint',
5136
+ type: 'BiomeReplacementData',
5137
+ },
5138
+ ],
5139
+ ],
5140
+ },
5035
5141
  ],
5036
5142
  ],
5037
5143
  BiomeClimate: [
@@ -5045,22 +5151,6 @@ exports.default = {
5045
5151
  name: 'downfall',
5046
5152
  type: 'lf32',
5047
5153
  },
5048
- {
5049
- name: 'red_spore_density',
5050
- type: 'lf32',
5051
- },
5052
- {
5053
- name: 'blue_spore_density',
5054
- type: 'lf32',
5055
- },
5056
- {
5057
- name: 'ash_density',
5058
- type: 'lf32',
5059
- },
5060
- {
5061
- name: 'white_ash_density',
5062
- type: 'lf32',
5063
- },
5064
5154
  {
5065
5155
  name: 'snow_accumulation_min',
5066
5156
  type: 'lf32',
@@ -5510,6 +5600,41 @@ exports.default = {
5510
5600
  },
5511
5601
  ],
5512
5602
  ],
5603
+ BiomeReplacementData: [
5604
+ 'container',
5605
+ [
5606
+ {
5607
+ name: 'biome',
5608
+ type: 'li16',
5609
+ },
5610
+ {
5611
+ name: 'dimension',
5612
+ type: 'li16',
5613
+ },
5614
+ {
5615
+ name: 'target_biomes',
5616
+ type: [
5617
+ 'array',
5618
+ {
5619
+ countType: 'varint',
5620
+ type: 'li16',
5621
+ },
5622
+ ],
5623
+ },
5624
+ {
5625
+ name: 'amount',
5626
+ type: 'lf32',
5627
+ },
5628
+ {
5629
+ name: 'noise_frequency_scale',
5630
+ type: 'lf32',
5631
+ },
5632
+ {
5633
+ name: 'replacement_index',
5634
+ type: 'lu32',
5635
+ },
5636
+ ],
5637
+ ],
5513
5638
  EaseType: [
5514
5639
  'mapper',
5515
5640
  {
@@ -5550,6 +5675,38 @@ exports.default = {
5550
5675
  },
5551
5676
  },
5552
5677
  ],
5678
+ CameraSplineEaseType: [
5679
+ 'mapper',
5680
+ {
5681
+ type: 'u8',
5682
+ mappings: {
5683
+ 0: 'catmull_rom',
5684
+ 1: 'linear',
5685
+ },
5686
+ },
5687
+ ],
5688
+ ParameterKeyframeValue: [
5689
+ 'container',
5690
+ [
5691
+ {
5692
+ name: 'time',
5693
+ type: 'lf32',
5694
+ },
5695
+ {
5696
+ name: 'value',
5697
+ type: 'vec3f',
5698
+ },
5699
+ ],
5700
+ ],
5701
+ GraphicsOverrideParameterType: [
5702
+ 'mapper',
5703
+ {
5704
+ type: 'u8',
5705
+ mappings: {
5706
+ 0: 'sky_zenith_color',
5707
+ },
5708
+ },
5709
+ ],
5553
5710
  mcpe_packet: [
5554
5711
  'container',
5555
5712
  [
@@ -5782,6 +5939,8 @@ exports.default = {
5782
5939
  326: 'player_location',
5783
5940
  327: 'clientbound_controls_scheme',
5784
5941
  328: 'server_script_debug_drawer',
5942
+ 329: 'serverbound_pack_setting_change',
5943
+ 331: 'graphics_override_parameter',
5785
5944
  },
5786
5945
  },
5787
5946
  ],
@@ -6015,6 +6174,8 @@ exports.default = {
6015
6174
  player_location: 'packet_player_location',
6016
6175
  clientbound_controls_scheme: 'packet_clientbound_controls_scheme',
6017
6176
  server_script_debug_drawer: 'packet_server_script_debug_drawer',
6177
+ serverbound_pack_setting_change: 'packet_serverbound_pack_setting_change',
6178
+ graphics_override_parameter: 'packet_graphics_override_parameter',
6018
6179
  },
6019
6180
  },
6020
6181
  ],
@@ -6593,7 +6754,13 @@ exports.default = {
6593
6754
  },
6594
6755
  {
6595
6756
  name: 'gamerules',
6596
- type: 'GameRules',
6757
+ type: [
6758
+ 'array',
6759
+ {
6760
+ countType: 'varint',
6761
+ type: 'GameRuleVarint',
6762
+ },
6763
+ ],
6597
6764
  },
6598
6765
  {
6599
6766
  name: 'experiments',
@@ -7333,6 +7500,12 @@ exports.default = {
7333
7500
  3613: 'particle_trial_spawner_ejecting',
7334
7501
  3614: 'particle_wind_explosion',
7335
7502
  3615: 'particle_wolf_armor_break',
7503
+ 3616: 'ominous_item_spawner',
7504
+ 3617: 'creaking_crumble',
7505
+ 3618: 'pale_oak_leaves',
7506
+ 3619: 'eyeblossom_open',
7507
+ 3620: 'eyeblossom_close',
7508
+ 3621: 'green_flame',
7336
7509
  4000: 'set_data',
7337
7510
  9800: 'players_sleeping',
7338
7511
  9801: 'sleeping_players',
@@ -7536,6 +7709,7 @@ exports.default = {
7536
7709
  76: 'grow_up',
7537
7710
  77: 'vibration_detected',
7538
7711
  78: 'drink_milk',
7712
+ 79: 'wetness_stop',
7539
7713
  },
7540
7714
  },
7541
7715
  ],
@@ -7902,6 +8076,10 @@ exports.default = {
7902
8076
  name: 'runtime_entity_id',
7903
8077
  type: 'varint64',
7904
8078
  },
8079
+ {
8080
+ name: 'data',
8081
+ type: 'lf32',
8082
+ },
7905
8083
  {
7906
8084
  anon: true,
7907
8085
  type: [
@@ -7913,7 +8091,7 @@ exports.default = {
7913
8091
  'container',
7914
8092
  [
7915
8093
  {
7916
- name: 'boat_rowing_time',
8094
+ name: 'rowing_time',
7917
8095
  type: 'lf32',
7918
8096
  },
7919
8097
  ],
@@ -7922,7 +8100,7 @@ exports.default = {
7922
8100
  'container',
7923
8101
  [
7924
8102
  {
7925
- name: 'boat_rowing_time',
8103
+ name: 'rowing_time',
7926
8104
  type: 'lf32',
7927
8105
  },
7928
8106
  ],
@@ -8682,7 +8860,13 @@ exports.default = {
8682
8860
  [
8683
8861
  {
8684
8862
  name: 'rules',
8685
- type: 'GameRules',
8863
+ type: [
8864
+ 'array',
8865
+ {
8866
+ countType: 'varint',
8867
+ type: 'GameRuleI32',
8868
+ },
8869
+ ],
8686
8870
  },
8687
8871
  ],
8688
8872
  ],
@@ -9728,8 +9912,8 @@ exports.default = {
9728
9912
  'container',
9729
9913
  [
9730
9914
  {
9731
- name: 'offer_id',
9732
- type: 'string',
9915
+ name: 'offer_uuid',
9916
+ type: 'uuid',
9733
9917
  },
9734
9918
  {
9735
9919
  name: 'redirect_type',
@@ -11641,84 +11825,42 @@ exports.default = {
11641
11825
  'container',
11642
11826
  [
11643
11827
  {
11644
- name: 'type',
11645
- type: 'ArmorDamageType',
11646
- },
11647
- {
11648
- name: 'helmet_damage',
11649
- type: [
11650
- 'switch',
11651
- {
11652
- compareTo: 'type.head',
11653
- fields: {
11654
- true: 'zigzag32',
11655
- },
11656
- },
11657
- ],
11658
- },
11659
- {
11660
- name: 'chestplate_damage',
11661
- type: [
11662
- 'switch',
11663
- {
11664
- compareTo: 'type.chest',
11665
- fields: {
11666
- true: 'zigzag32',
11667
- },
11668
- },
11669
- ],
11670
- },
11671
- {
11672
- name: 'leggings_damage',
11828
+ name: 'entries',
11673
11829
  type: [
11674
- 'switch',
11830
+ 'array',
11675
11831
  {
11676
- compareTo: 'type.legs',
11677
- fields: {
11678
- true: 'zigzag32',
11679
- },
11832
+ countType: 'varint',
11833
+ type: 'ArmorDamageEntry',
11680
11834
  },
11681
11835
  ],
11682
11836
  },
11837
+ ],
11838
+ ],
11839
+ ArmorDamageEntry: [
11840
+ 'container',
11841
+ [
11683
11842
  {
11684
- name: 'boots_damage',
11843
+ name: 'armor_slot',
11685
11844
  type: [
11686
- 'switch',
11845
+ 'mapper',
11687
11846
  {
11688
- compareTo: 'type.feet',
11689
- fields: {
11690
- true: 'zigzag32',
11847
+ type: 'u8',
11848
+ mappings: {
11849
+ 0: 'helmet',
11850
+ 1: 'chestplate',
11851
+ 2: 'leggings',
11852
+ 3: 'boots',
11853
+ 4: 'body',
11691
11854
  },
11692
11855
  },
11693
11856
  ],
11694
11857
  },
11695
11858
  {
11696
- name: 'body_damage',
11697
- type: [
11698
- 'switch',
11699
- {
11700
- compareTo: 'type.body',
11701
- fields: {
11702
- true: 'zigzag32',
11703
- },
11704
- },
11705
- ],
11859
+ name: 'damage',
11860
+ type: 'li16',
11706
11861
  },
11707
11862
  ],
11708
11863
  ],
11709
- ArmorDamageType: [
11710
- 'bitflags',
11711
- {
11712
- type: 'u8',
11713
- flags: {
11714
- head: 1,
11715
- chest: 2,
11716
- legs: 4,
11717
- feet: 8,
11718
- body: 16,
11719
- },
11720
- },
11721
- ],
11722
11864
  packet_code_builder: [
11723
11865
  'container',
11724
11866
  [
@@ -11999,7 +12141,10 @@ exports.default = {
11999
12141
  },
12000
12142
  {
12001
12143
  name: 'angular_velocity',
12002
- type: 'lf32',
12144
+ type: [
12145
+ 'option',
12146
+ 'lf32',
12147
+ ],
12003
12148
  },
12004
12149
  {
12005
12150
  name: 'on_ground',
@@ -13351,6 +13496,27 @@ exports.default = {
13351
13496
  ],
13352
13497
  ],
13353
13498
  },
13499
+ {
13500
+ name: 'spline',
13501
+ type: [
13502
+ 'option',
13503
+ 'CameraSplineInstruction',
13504
+ ],
13505
+ },
13506
+ {
13507
+ name: 'attach_to_entity',
13508
+ type: [
13509
+ 'option',
13510
+ 'li64',
13511
+ ],
13512
+ },
13513
+ {
13514
+ name: 'detach_from_entity',
13515
+ type: [
13516
+ 'option',
13517
+ 'bool',
13518
+ ],
13519
+ },
13354
13520
  ],
13355
13521
  ],
13356
13522
  packet_compressed_biome_definitions: [
@@ -14327,5 +14493,81 @@ exports.default = {
14327
14493
  },
14328
14494
  ],
14329
14495
  ],
14496
+ packet_serverbound_pack_setting_change: [
14497
+ 'container',
14498
+ [
14499
+ {
14500
+ name: 'pack_id',
14501
+ type: 'uuid',
14502
+ },
14503
+ {
14504
+ name: 'pack_setting',
14505
+ type: [
14506
+ 'container',
14507
+ [
14508
+ {
14509
+ name: 'name',
14510
+ type: 'string',
14511
+ },
14512
+ {
14513
+ name: 'type',
14514
+ type: [
14515
+ 'mapper',
14516
+ {
14517
+ type: 'u8',
14518
+ mappings: {
14519
+ 0: 'float',
14520
+ 1: 'bool',
14521
+ 2: 'string',
14522
+ },
14523
+ },
14524
+ ],
14525
+ },
14526
+ {
14527
+ name: 'value',
14528
+ type: [
14529
+ 'switch',
14530
+ {
14531
+ compareTo: 'type',
14532
+ fields: {
14533
+ float: 'lf32',
14534
+ bool: 'bool',
14535
+ string: 'string',
14536
+ },
14537
+ },
14538
+ ],
14539
+ },
14540
+ ],
14541
+ ],
14542
+ },
14543
+ ],
14544
+ ],
14545
+ packet_graphics_override_parameter: [
14546
+ 'container',
14547
+ [
14548
+ {
14549
+ name: 'values',
14550
+ type: [
14551
+ 'array',
14552
+ {
14553
+ countType: 'varint',
14554
+ type: 'ParameterKeyframeValue',
14555
+ },
14556
+ ],
14557
+ },
14558
+ {
14559
+ name: 'biome_identifier',
14560
+ type: 'string',
14561
+ },
14562
+ {
14563
+ name: 'parameter_type',
14564
+ type: 'GraphicsOverrideParameterType',
14565
+ },
14566
+ {
14567
+ name: 'reset',
14568
+ type: 'bool',
14569
+ },
14570
+ ],
14571
+ ],
14330
14572
  },
14331
14573
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal-nethernet",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
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",