@zardoy/flying-squid 0.0.17 → 0.0.18

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.
Files changed (37) hide show
  1. package/README.md +40 -0
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/generatedClientPackets.d.ts +600 -0
  6. package/dist/lib/generatedClientPackets.js +2 -0
  7. package/dist/lib/generatedClientPackets.js.map +1 -0
  8. package/dist/lib/generatedServerPackets.d.ts +1557 -0
  9. package/dist/lib/generatedServerPackets.js +3 -0
  10. package/dist/lib/generatedServerPackets.js.map +1 -0
  11. package/dist/lib/modules/animations.js +1 -1
  12. package/dist/lib/modules/animations.js.map +1 -1
  13. package/dist/lib/modules/dimensionCodec.d.ts +478 -0
  14. package/dist/lib/modules/dimensionCodec.js +831 -0
  15. package/dist/lib/modules/dimensionCodec.js.map +1 -0
  16. package/dist/lib/modules/log.js +5 -1
  17. package/dist/lib/modules/log.js.map +1 -1
  18. package/dist/lib/modules/login.js +42 -246
  19. package/dist/lib/modules/login.js.map +1 -1
  20. package/dist/lib/modules/settings.d.ts +3 -0
  21. package/dist/lib/modules/settings.js +3 -3
  22. package/dist/lib/modules/settings.js.map +1 -1
  23. package/dist/lib/modules/spawn.js +5 -2
  24. package/dist/lib/modules/spawn.js.map +1 -1
  25. package/dist/lib/modules/updatePositions.d.ts +1 -1
  26. package/dist/lib/modules/updatePositions.js +3 -1
  27. package/dist/lib/modules/updatePositions.js.map +1 -1
  28. package/dist/lib/modules/world.js +54 -33
  29. package/dist/lib/modules/world.js.map +1 -1
  30. package/dist/lib/worldGenerations/empty.d.ts +3 -1
  31. package/dist/lib/worldGenerations/empty.js +2 -2
  32. package/dist/lib/worldGenerations/empty.js.map +1 -1
  33. package/dist/lib/worldGenerations/superflat.js +2 -1
  34. package/dist/lib/worldGenerations/superflat.js.map +1 -1
  35. package/dist/modules.d.ts +9 -0
  36. package/dist/types.d.ts +1 -0
  37. package/package.json +5 -1
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // from server to client
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatedServerPackets.js","sourceRoot":"","sources":["../../src/lib/generatedServerPackets.ts"],"names":[],"mappings":";AAAA,wBAAwB"}
@@ -8,7 +8,7 @@ const player = function (player) {
8
8
  animation: 0
9
9
  });
10
10
  }));
11
- player._client.on('entity_action', ({ actionId } = {}) => {
11
+ player._client.on('entity_action', ({ actionId }) => {
12
12
  if (actionId === 3) {
13
13
  player.setAndUpdateMetadata([{ key: 0, type: 0, value: 0x08 }]);
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"animations.js","sourceRoot":"","sources":["../../../src/lib/modules/animations.ts"],"names":[],"mappings":";;;AAAO,MAAM,MAAM,GAAG,UAAU,MAAc;IAC5C,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE,CACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE;QAChC,MAAM,CAAC,kBAAkB,CAAC,WAAW,EAAE;YACrC,QAAQ,EAAE,MAAM,CAAC,EAAE;YACnB,SAAS,EAAE,CAAC;SACb,CAAC,CAAA;IACJ,CAAC,CAAC,CACH,CAAA;IAED,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,EAAE;QACvD,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YACnB,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QACjE,CAAC;aAAM,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,GAAG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,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QACjE,CAAC;aAAM,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QACjE,CAAC;aAAM,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YAC/D,MAAM,CAAC,SAAS,GAAG,IAAI,CAAA;QACzB,CAAC;aAAM,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YAC/D,MAAM,CAAC,SAAS,GAAG,KAAK,CAAA;QAC1B,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAvBY,QAAA,MAAM,UAuBlB"}
@@ -0,0 +1,478 @@
1
+ export declare const getDimensionCodec: (height: any, useNewFormat: any) => {
2
+ type: string;
3
+ name: string;
4
+ value: {
5
+ "minecraft:dimension_type": {
6
+ type: string;
7
+ value: {
8
+ type: {
9
+ type: string;
10
+ value: string;
11
+ };
12
+ value: {
13
+ type: string;
14
+ value: {
15
+ type: string;
16
+ value: ({
17
+ name: {
18
+ type: string;
19
+ value: string;
20
+ };
21
+ id: {
22
+ type: string;
23
+ value: number;
24
+ };
25
+ element: {
26
+ type: string;
27
+ value: {
28
+ piglin_safe: {
29
+ type: string;
30
+ value: number;
31
+ };
32
+ natural: {
33
+ type: string;
34
+ value: number;
35
+ };
36
+ ambient_light: {
37
+ type: string;
38
+ value: number;
39
+ };
40
+ infiniburn: {
41
+ type: string;
42
+ value: string;
43
+ };
44
+ respawn_anchor_works: {
45
+ type: string;
46
+ value: number;
47
+ };
48
+ has_skylight: {
49
+ type: string;
50
+ value: number;
51
+ };
52
+ bed_works: {
53
+ type: string;
54
+ value: number;
55
+ };
56
+ effects: {
57
+ type: string;
58
+ value: string;
59
+ };
60
+ has_raids: {
61
+ type: string;
62
+ value: number;
63
+ };
64
+ logical_height: {
65
+ type: string;
66
+ value: number;
67
+ };
68
+ coordinate_scale: {
69
+ type: string;
70
+ value: number;
71
+ };
72
+ min_y: {
73
+ type: string;
74
+ value: number;
75
+ };
76
+ has_ceiling: {
77
+ type: string;
78
+ value: number;
79
+ };
80
+ ultrawarm: {
81
+ type: string;
82
+ value: number;
83
+ };
84
+ height: {
85
+ type: string;
86
+ value: number;
87
+ };
88
+ fixed_time?: undefined;
89
+ };
90
+ };
91
+ } | {
92
+ name: {
93
+ type: string;
94
+ value: string;
95
+ };
96
+ id: {
97
+ type: string;
98
+ value: number;
99
+ };
100
+ element: {
101
+ type: string;
102
+ value: {
103
+ piglin_safe: {
104
+ type: string;
105
+ value: number;
106
+ };
107
+ natural: {
108
+ type: string;
109
+ value: number;
110
+ };
111
+ ambient_light: {
112
+ type: string;
113
+ value: number;
114
+ };
115
+ infiniburn: {
116
+ type: string;
117
+ value: string;
118
+ };
119
+ respawn_anchor_works: {
120
+ type: string;
121
+ value: number;
122
+ };
123
+ has_skylight: {
124
+ type: string;
125
+ value: number;
126
+ };
127
+ bed_works: {
128
+ type: string;
129
+ value: number;
130
+ };
131
+ effects: {
132
+ type: string;
133
+ value: string;
134
+ };
135
+ fixed_time: {
136
+ type: string;
137
+ value: number[];
138
+ };
139
+ has_raids: {
140
+ type: string;
141
+ value: number;
142
+ };
143
+ logical_height: {
144
+ type: string;
145
+ value: number;
146
+ };
147
+ coordinate_scale: {
148
+ type: string;
149
+ value: number;
150
+ };
151
+ min_y: {
152
+ type: string;
153
+ value: number;
154
+ };
155
+ has_ceiling: {
156
+ type: string;
157
+ value: number;
158
+ };
159
+ ultrawarm: {
160
+ type: string;
161
+ value: number;
162
+ };
163
+ height: {
164
+ type: string;
165
+ value: number;
166
+ };
167
+ };
168
+ };
169
+ })[];
170
+ };
171
+ };
172
+ };
173
+ };
174
+ "minecraft:worldgen/biome": {
175
+ type: string;
176
+ value: {
177
+ type: {
178
+ type: string;
179
+ value: string;
180
+ };
181
+ value: {
182
+ type: string;
183
+ value: {
184
+ type: string;
185
+ value: {
186
+ name: {
187
+ type: string;
188
+ value: string;
189
+ };
190
+ id: {
191
+ type: string;
192
+ value: number;
193
+ };
194
+ element: {
195
+ type: string;
196
+ value: {
197
+ precipitation: {
198
+ type: string;
199
+ value: string;
200
+ };
201
+ effects: {
202
+ type: string;
203
+ value: {
204
+ sky_color: {
205
+ type: string;
206
+ value: number;
207
+ };
208
+ water_fog_color: {
209
+ type: string;
210
+ value: number;
211
+ };
212
+ fog_color: {
213
+ type: string;
214
+ value: number;
215
+ };
216
+ water_color: {
217
+ type: string;
218
+ value: number;
219
+ };
220
+ mood_sound: {
221
+ type: string;
222
+ value: {
223
+ tick_delay: {
224
+ type: string;
225
+ value: number;
226
+ };
227
+ offset: {
228
+ type: string;
229
+ value: number;
230
+ };
231
+ sound: {
232
+ type: string;
233
+ value: string;
234
+ };
235
+ block_search_extent: {
236
+ type: string;
237
+ value: number;
238
+ };
239
+ };
240
+ };
241
+ };
242
+ };
243
+ temperature: {
244
+ type: string;
245
+ value: number;
246
+ };
247
+ downfall: {
248
+ type: string;
249
+ value: number;
250
+ };
251
+ category: {
252
+ type: string;
253
+ value: string;
254
+ };
255
+ };
256
+ };
257
+ }[];
258
+ };
259
+ };
260
+ };
261
+ };
262
+ };
263
+ } | {
264
+ type: string;
265
+ name: string;
266
+ value: {
267
+ dimension: {
268
+ type: string;
269
+ value: {
270
+ type: string;
271
+ value: ({
272
+ name: {
273
+ type: string;
274
+ value: string;
275
+ };
276
+ bed_works: {
277
+ type: string;
278
+ value: number;
279
+ };
280
+ shrunk: {
281
+ type: string;
282
+ value: number;
283
+ };
284
+ piglin_safe: {
285
+ type: string;
286
+ value: number;
287
+ };
288
+ has_ceiling: {
289
+ type: string;
290
+ value: number;
291
+ };
292
+ has_skylight: {
293
+ type: string;
294
+ value: number;
295
+ };
296
+ infiniburn: {
297
+ type: string;
298
+ value: string;
299
+ };
300
+ ultrawarm: {
301
+ type: string;
302
+ value: number;
303
+ };
304
+ ambient_light: {
305
+ type: string;
306
+ value: number;
307
+ };
308
+ logical_height: {
309
+ type: string;
310
+ value: number;
311
+ };
312
+ has_raids: {
313
+ type: string;
314
+ value: number;
315
+ };
316
+ natural: {
317
+ type: string;
318
+ value: number;
319
+ };
320
+ respawn_anchor_works: {
321
+ type: string;
322
+ value: number;
323
+ };
324
+ fixed_time?: undefined;
325
+ } | {
326
+ infiniburn: {
327
+ type: string;
328
+ value: string;
329
+ };
330
+ ultrawarm: {
331
+ type: string;
332
+ value: number;
333
+ };
334
+ logical_height: {
335
+ type: string;
336
+ value: number;
337
+ };
338
+ natural: {
339
+ type: string;
340
+ value: number;
341
+ };
342
+ name: {
343
+ type: string;
344
+ value: string;
345
+ };
346
+ bed_works: {
347
+ type: string;
348
+ value: number;
349
+ };
350
+ fixed_time: {
351
+ type: string;
352
+ value: number[];
353
+ };
354
+ shrunk: {
355
+ type: string;
356
+ value: number;
357
+ };
358
+ piglin_safe: {
359
+ type: string;
360
+ value: number;
361
+ };
362
+ has_skylight: {
363
+ type: string;
364
+ value: number;
365
+ };
366
+ has_ceiling: {
367
+ type: string;
368
+ value: number;
369
+ };
370
+ ambient_light: {
371
+ type: string;
372
+ value: number;
373
+ };
374
+ has_raids: {
375
+ type: string;
376
+ value: number;
377
+ };
378
+ respawn_anchor_works: {
379
+ type: string;
380
+ value: number;
381
+ };
382
+ })[];
383
+ };
384
+ };
385
+ };
386
+ };
387
+ export declare const dimensionOverworld: {
388
+ type: string;
389
+ name: string;
390
+ value: {
391
+ monster_spawn_light_level: {
392
+ type: string;
393
+ value: {
394
+ type: {
395
+ type: string;
396
+ value: string;
397
+ };
398
+ value: {
399
+ type: string;
400
+ value: {
401
+ max_inclusive: {
402
+ type: string;
403
+ value: number;
404
+ };
405
+ min_inclusive: {
406
+ type: string;
407
+ value: number;
408
+ };
409
+ };
410
+ };
411
+ };
412
+ };
413
+ infiniburn: {
414
+ type: string;
415
+ value: string;
416
+ };
417
+ effects: {
418
+ type: string;
419
+ value: string;
420
+ };
421
+ ultrawarm: {
422
+ type: string;
423
+ value: number;
424
+ };
425
+ height: {
426
+ type: string;
427
+ value: number;
428
+ };
429
+ logical_height: {
430
+ type: string;
431
+ value: number;
432
+ };
433
+ natural: {
434
+ type: string;
435
+ value: number;
436
+ };
437
+ min_y: {
438
+ type: string;
439
+ value: number;
440
+ };
441
+ bed_works: {
442
+ type: string;
443
+ value: number;
444
+ };
445
+ coordinate_scale: {
446
+ type: string;
447
+ value: number;
448
+ };
449
+ piglin_safe: {
450
+ type: string;
451
+ value: number;
452
+ };
453
+ has_ceiling: {
454
+ type: string;
455
+ value: number;
456
+ };
457
+ has_skylight: {
458
+ type: string;
459
+ value: number;
460
+ };
461
+ ambient_light: {
462
+ type: string;
463
+ value: number;
464
+ };
465
+ monster_spawn_block_light_limit: {
466
+ type: string;
467
+ value: number;
468
+ };
469
+ has_raids: {
470
+ type: string;
471
+ value: number;
472
+ };
473
+ respawn_anchor_works: {
474
+ type: string;
475
+ value: number;
476
+ };
477
+ };
478
+ };