bedrock-portal-nethernet 2.0.6 → 2.0.7

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.111";
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.111';
7
7
  exports.defaultOptions = {
8
8
  // https://minecraft.wiki/w/Protocol_version#Bedrock_Edition_2
9
9
  version: exports.CURRENT_VERSION,
@@ -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
+ GameRulesVarint: (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 | {
@@ -2888,6 +2925,7 @@ declare const _default: {
2888
2925
  326: string;
2889
2926
  327: string;
2890
2927
  328: string;
2928
+ 329: string;
2891
2929
  };
2892
2930
  })[];
2893
2931
  } | {
@@ -3117,6 +3155,7 @@ declare const _default: {
3117
3155
  player_location: string;
3118
3156
  clientbound_controls_scheme: string;
3119
3157
  server_script_debug_drawer: string;
3158
+ serverbound_pack_setting_change: string;
3120
3159
  };
3121
3160
  })[];
3122
3161
  })[])[];
@@ -3332,6 +3371,12 @@ declare const _default: {
3332
3371
  3: string;
3333
3372
  };
3334
3373
  })[];
3374
+ } | {
3375
+ name: string;
3376
+ type: (string | {
3377
+ countType: string;
3378
+ type: string;
3379
+ })[];
3335
3380
  })[])[];
3336
3381
  packet_add_player: (string | ({
3337
3382
  name: string;
@@ -3542,6 +3587,12 @@ declare const _default: {
3542
3587
  3613: string;
3543
3588
  3614: string;
3544
3589
  3615: string;
3590
+ 3616: string;
3591
+ 3617: string;
3592
+ 3618: string;
3593
+ 3619: string;
3594
+ 3620: string;
3595
+ 3621: string;
3545
3596
  4000: string;
3546
3597
  9800: string;
3547
3598
  9801: string;
@@ -4133,7 +4184,10 @@ declare const _default: {
4133
4184
  }[])[];
4134
4185
  packet_game_rules_changed: (string | {
4135
4186
  name: string;
4136
- type: string;
4187
+ type: (string | {
4188
+ countType: string;
4189
+ type: string;
4190
+ })[];
4137
4191
  }[])[];
4138
4192
  packet_camera: (string | {
4139
4193
  name: string;
@@ -5223,28 +5277,29 @@ declare const _default: {
5223
5277
  name: string;
5224
5278
  type: string;
5225
5279
  }[])[];
5226
- packet_player_armor_damage: (string | ({
5280
+ packet_player_armor_damage: (string | {
5227
5281
  name: string;
5228
- type: string;
5229
- } | {
5282
+ type: (string | {
5283
+ countType: string;
5284
+ type: string;
5285
+ })[];
5286
+ }[])[];
5287
+ ArmorDamageEntry: (string | ({
5230
5288
  name: string;
5231
5289
  type: (string | {
5232
- compareTo: string;
5233
- fields: {
5234
- true: string;
5290
+ type: string;
5291
+ mappings: {
5292
+ 0: string;
5293
+ 1: string;
5294
+ 2: string;
5295
+ 3: string;
5296
+ 4: string;
5235
5297
  };
5236
5298
  })[];
5237
- })[])[];
5238
- ArmorDamageType: (string | {
5299
+ } | {
5300
+ name: string;
5239
5301
  type: string;
5240
- flags: {
5241
- head: number;
5242
- chest: number;
5243
- legs: number;
5244
- feet: number;
5245
- body: number;
5246
- };
5247
- })[];
5302
+ })[])[];
5248
5303
  packet_code_builder: (string | {
5249
5304
  name: string;
5250
5305
  type: string;
@@ -6199,6 +6254,36 @@ declare const _default: {
6199
6254
  })[])[];
6200
6255
  })[];
6201
6256
  }[])[];
6257
+ packet_serverbound_pack_setting_change: (string | ({
6258
+ name: string;
6259
+ type: string;
6260
+ } | {
6261
+ name: string;
6262
+ type: (string | ({
6263
+ name: string;
6264
+ type: string;
6265
+ } | {
6266
+ name: string;
6267
+ type: (string | {
6268
+ type: string;
6269
+ mappings: {
6270
+ 0: string;
6271
+ 1: string;
6272
+ 2: string;
6273
+ };
6274
+ })[];
6275
+ } | {
6276
+ name: string;
6277
+ type: (string | {
6278
+ compareTo: string;
6279
+ fields: {
6280
+ float: string;
6281
+ bool: string;
6282
+ string: string;
6283
+ };
6284
+ })[];
6285
+ })[])[];
6286
+ })[])[];
6202
6287
  };
6203
6288
  };
6204
6289
  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
+ GameRulesVarint: [
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
  ],
@@ -4876,19 +4918,7 @@ exports.default = {
4876
4918
  type: 'lf32',
4877
4919
  },
4878
4920
  {
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',
4921
+ name: 'snow_foliage',
4892
4922
  type: 'lf32',
4893
4923
  },
4894
4924
  {
@@ -4979,6 +5009,13 @@ exports.default = {
4979
5009
  'BiomeSurfaceMaterial',
4980
5010
  ],
4981
5011
  },
5012
+ {
5013
+ name: 'has_default_overworld_surface',
5014
+ type: [
5015
+ 'option',
5016
+ 'bool',
5017
+ ],
5018
+ },
4982
5019
  {
4983
5020
  name: 'has_swamp_surface',
4984
5021
  type: 'bool',
@@ -5045,22 +5082,6 @@ exports.default = {
5045
5082
  name: 'downfall',
5046
5083
  type: 'lf32',
5047
5084
  },
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
5085
  {
5065
5086
  name: 'snow_accumulation_min',
5066
5087
  type: 'lf32',
@@ -5782,6 +5803,7 @@ exports.default = {
5782
5803
  326: 'player_location',
5783
5804
  327: 'clientbound_controls_scheme',
5784
5805
  328: 'server_script_debug_drawer',
5806
+ 329: 'serverbound_pack_setting_change',
5785
5807
  },
5786
5808
  },
5787
5809
  ],
@@ -6015,6 +6037,7 @@ exports.default = {
6015
6037
  player_location: 'packet_player_location',
6016
6038
  clientbound_controls_scheme: 'packet_clientbound_controls_scheme',
6017
6039
  server_script_debug_drawer: 'packet_server_script_debug_drawer',
6040
+ serverbound_pack_setting_change: 'packet_serverbound_pack_setting_change',
6018
6041
  },
6019
6042
  },
6020
6043
  ],
@@ -6593,7 +6616,13 @@ exports.default = {
6593
6616
  },
6594
6617
  {
6595
6618
  name: 'gamerules',
6596
- type: 'GameRules',
6619
+ type: [
6620
+ 'array',
6621
+ {
6622
+ countType: 'varint',
6623
+ type: 'GameRuleVarint',
6624
+ },
6625
+ ],
6597
6626
  },
6598
6627
  {
6599
6628
  name: 'experiments',
@@ -7333,6 +7362,12 @@ exports.default = {
7333
7362
  3613: 'particle_trial_spawner_ejecting',
7334
7363
  3614: 'particle_wind_explosion',
7335
7364
  3615: 'particle_wolf_armor_break',
7365
+ 3616: 'ominous_item_spawner',
7366
+ 3617: 'creaking_crumble',
7367
+ 3618: 'pale_oak_leaves',
7368
+ 3619: 'eyeblossom_open',
7369
+ 3620: 'eyeblossom_close',
7370
+ 3621: 'green_flame',
7336
7371
  4000: 'set_data',
7337
7372
  9800: 'players_sleeping',
7338
7373
  9801: 'sleeping_players',
@@ -8682,7 +8717,13 @@ exports.default = {
8682
8717
  [
8683
8718
  {
8684
8719
  name: 'rules',
8685
- type: 'GameRules',
8720
+ type: [
8721
+ 'array',
8722
+ {
8723
+ countType: 'varint',
8724
+ type: 'GameRuleI32',
8725
+ },
8726
+ ],
8686
8727
  },
8687
8728
  ],
8688
8729
  ],
@@ -11641,84 +11682,42 @@ exports.default = {
11641
11682
  'container',
11642
11683
  [
11643
11684
  {
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',
11685
+ name: 'entries',
11673
11686
  type: [
11674
- 'switch',
11687
+ 'array',
11675
11688
  {
11676
- compareTo: 'type.legs',
11677
- fields: {
11678
- true: 'zigzag32',
11679
- },
11689
+ countType: 'varint',
11690
+ type: 'ArmorDamageEntry',
11680
11691
  },
11681
11692
  ],
11682
11693
  },
11694
+ ],
11695
+ ],
11696
+ ArmorDamageEntry: [
11697
+ 'container',
11698
+ [
11683
11699
  {
11684
- name: 'boots_damage',
11700
+ name: 'armor_slot',
11685
11701
  type: [
11686
- 'switch',
11702
+ 'mapper',
11687
11703
  {
11688
- compareTo: 'type.feet',
11689
- fields: {
11690
- true: 'zigzag32',
11704
+ type: 'u8',
11705
+ mappings: {
11706
+ 0: 'helmet',
11707
+ 1: 'chestplate',
11708
+ 2: 'leggings',
11709
+ 3: 'boots',
11710
+ 4: 'body',
11691
11711
  },
11692
11712
  },
11693
11713
  ],
11694
11714
  },
11695
11715
  {
11696
- name: 'body_damage',
11697
- type: [
11698
- 'switch',
11699
- {
11700
- compareTo: 'type.body',
11701
- fields: {
11702
- true: 'zigzag32',
11703
- },
11704
- },
11705
- ],
11716
+ name: 'damage',
11717
+ type: 'li16',
11706
11718
  },
11707
11719
  ],
11708
11720
  ],
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
11721
  packet_code_builder: [
11723
11722
  'container',
11724
11723
  [
@@ -11999,7 +11998,10 @@ exports.default = {
11999
11998
  },
12000
11999
  {
12001
12000
  name: 'angular_velocity',
12002
- type: 'lf32',
12001
+ type: [
12002
+ 'option',
12003
+ 'lf32',
12004
+ ],
12003
12005
  },
12004
12006
  {
12005
12007
  name: 'on_ground',
@@ -14327,5 +14329,54 @@ exports.default = {
14327
14329
  },
14328
14330
  ],
14329
14331
  ],
14332
+ packet_serverbound_pack_setting_change: [
14333
+ 'container',
14334
+ [
14335
+ {
14336
+ name: 'pack_id',
14337
+ type: 'uuid',
14338
+ },
14339
+ {
14340
+ name: 'pack_setting',
14341
+ type: [
14342
+ 'container',
14343
+ [
14344
+ {
14345
+ name: 'name',
14346
+ type: 'string',
14347
+ },
14348
+ {
14349
+ name: 'type',
14350
+ type: [
14351
+ 'mapper',
14352
+ {
14353
+ type: 'u8',
14354
+ mappings: {
14355
+ 0: 'float',
14356
+ 1: 'bool',
14357
+ 2: 'string',
14358
+ },
14359
+ },
14360
+ ],
14361
+ },
14362
+ {
14363
+ name: 'value',
14364
+ type: [
14365
+ 'switch',
14366
+ {
14367
+ compareTo: 'type',
14368
+ fields: {
14369
+ float: 'lf32',
14370
+ bool: 'bool',
14371
+ string: 'string',
14372
+ },
14373
+ },
14374
+ ],
14375
+ },
14376
+ ],
14377
+ ],
14378
+ },
14379
+ ],
14380
+ ],
14330
14381
  },
14331
14382
  };
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.7",
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",