bedrock-portal 2.0.1 → 2.2.0

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.
@@ -2,7 +2,7 @@ export declare const SessionConfig: {
2
2
  MinecraftTitleID: string;
3
3
  MinecraftSCID: string;
4
4
  MinecraftTemplateName: string;
5
- MiencraftProtocolVersion: number;
5
+ MinecraftProtocolVersion: number;
6
6
  };
7
7
  export declare enum Joinability {
8
8
  /**
@@ -5,7 +5,7 @@ exports.SessionConfig = {
5
5
  MinecraftTitleID: '896928775',
6
6
  MinecraftSCID: '4fc10100-5f7a-4470-899b-280835760c07',
7
7
  MinecraftTemplateName: 'MinecraftLobby',
8
- MiencraftProtocolVersion: 924,
8
+ MinecraftProtocolVersion: 975,
9
9
  };
10
10
  var Joinability;
11
11
  (function (Joinability) {
@@ -6,9 +6,9 @@ exports.start_game = {
6
6
  runtime_entity_id: '1',
7
7
  player_gamemode: 'fallback',
8
8
  player_position: {
9
- x: 0.5,
10
- y: 32769.62109375,
11
- z: 0.5,
9
+ x: 0,
10
+ y: 0,
11
+ z: 0,
12
12
  },
13
13
  rotation: {
14
14
  x: 0,
@@ -24,14 +24,14 @@ exports.start_game = {
24
24
  difficulty: 1,
25
25
  spawn_position: {
26
26
  x: 0,
27
- y: 32767,
27
+ y: 0,
28
28
  z: 0,
29
29
  },
30
30
  achievements_disabled: true,
31
31
  editor_world_type: 'not_editor',
32
32
  created_in_editor: false,
33
33
  exported_from_editor: false,
34
- day_cycle_stop_time: 16,
34
+ day_cycle_stop_time: 23,
35
35
  edu_offer: 0,
36
36
  edu_features_enabled: false,
37
37
  edu_product_uuid: '',
@@ -61,7 +61,7 @@ exports.start_game = {
61
61
  persona_disabled: false,
62
62
  custom_skins_disabled: false,
63
63
  emote_chat_muted: false,
64
- game_version: '*',
64
+ game_version: '1.26.20',
65
65
  limited_world_width: 16,
66
66
  limited_world_length: 16,
67
67
  is_new_nether: false,
@@ -79,11 +79,11 @@ exports.start_game = {
79
79
  rewind_history_size: 40,
80
80
  server_authoritative_block_breaking: true,
81
81
  current_tick: [],
82
- enchantment_seed: 819671441,
82
+ enchantment_seed: 315714801,
83
83
  block_properties: [],
84
- multiplayer_correlation_id: '<raknet>94bd-eecc-2f56-479c',
84
+ multiplayer_correlation_id: '<raknet>b31f-884c-6f27-c0fb',
85
85
  server_authoritative_inventory: true,
86
- engine: '1.26.0',
86
+ engine: '1.26.20',
87
87
  property_data: {
88
88
  type: 'compound',
89
89
  name: '',
package/dist/index.js CHANGED
@@ -210,8 +210,14 @@ class BedrockPortal extends tiny_typed_emitter_1.TypedEmitter {
210
210
  has_editor_packs: false,
211
211
  });
212
212
  client.once('resource_pack_client_response', () => {
213
+ client.write('voxel_shapes', {
214
+ shapes: [],
215
+ name_map: [],
216
+ custom_shape_count: 0,
217
+ });
213
218
  client.write('start_game', start_game_1.start_game);
214
- client.once('set_player_game_type', () => {
219
+ client.write('play_status', { status: 'player_spawn' });
220
+ client.once('set_local_player_as_initialized', () => {
215
221
  client.write('transfer', { server_address: this.options.ip, port: this.options.port });
216
222
  });
217
223
  });
@@ -290,7 +296,7 @@ class BedrockPortal extends tiny_typed_emitter_1.TypedEmitter {
290
296
  ownerId: this.host.profile.xuid,
291
297
  rakNetGUID: '',
292
298
  worldType: 'Survival',
293
- protocol: constants_1.SessionConfig.MiencraftProtocolVersion,
299
+ protocol: constants_1.SessionConfig.MinecraftProtocolVersion,
294
300
  BroadcastSetting: joinability.broadcastSetting,
295
301
  OnlineCrossPlatformGame: true,
296
302
  CrossPlayDisabled: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "Creates a joinable session in Minecraft Bedrock Edition that can route players to their a specified host",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",