@zardoy/flying-squid 0.0.16 → 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 (41) 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/inventory.js +1 -1
  17. package/dist/lib/modules/inventory.js.map +1 -1
  18. package/dist/lib/modules/log.js +8 -3
  19. package/dist/lib/modules/log.js.map +1 -1
  20. package/dist/lib/modules/login.js +42 -246
  21. package/dist/lib/modules/login.js.map +1 -1
  22. package/dist/lib/modules/moderation.js +7 -11
  23. package/dist/lib/modules/moderation.js.map +1 -1
  24. package/dist/lib/modules/settings.d.ts +3 -0
  25. package/dist/lib/modules/settings.js +3 -3
  26. package/dist/lib/modules/settings.js.map +1 -1
  27. package/dist/lib/modules/spawn.js +5 -2
  28. package/dist/lib/modules/spawn.js.map +1 -1
  29. package/dist/lib/modules/updatePositions.d.ts +1 -1
  30. package/dist/lib/modules/updatePositions.js +3 -1
  31. package/dist/lib/modules/updatePositions.js.map +1 -1
  32. package/dist/lib/modules/world.js +54 -33
  33. package/dist/lib/modules/world.js.map +1 -1
  34. package/dist/lib/worldGenerations/empty.d.ts +3 -1
  35. package/dist/lib/worldGenerations/empty.js +2 -2
  36. package/dist/lib/worldGenerations/empty.js.map +1 -1
  37. package/dist/lib/worldGenerations/superflat.js +2 -1
  38. package/dist/lib/worldGenerations/superflat.js.map +1 -1
  39. package/dist/modules.d.ts +9 -0
  40. package/dist/types.d.ts +1 -0
  41. package/package.json +6 -4
@@ -0,0 +1,831 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dimensionOverworld = exports.getDimensionCodec = void 0;
4
+ const getDimensionCodec = (height, useNewFormat) => {
5
+ const oldFormat = {
6
+ type: 'compound',
7
+ name: '',
8
+ value: {
9
+ dimension: {
10
+ type: 'list',
11
+ value: {
12
+ type: 'compound',
13
+ value: [
14
+ {
15
+ name: {
16
+ type: 'string',
17
+ value: 'minecraft:overworld'
18
+ },
19
+ bed_works: {
20
+ type: 'byte',
21
+ value: 1
22
+ },
23
+ shrunk: {
24
+ type: 'byte',
25
+ value: 0
26
+ },
27
+ piglin_safe: {
28
+ type: 'byte',
29
+ value: 0
30
+ },
31
+ has_ceiling: {
32
+ type: 'byte',
33
+ value: 0
34
+ },
35
+ has_skylight: {
36
+ type: 'byte',
37
+ value: 1
38
+ },
39
+ infiniburn: {
40
+ type: 'string',
41
+ value: 'minecraft:infiniburn_overworld'
42
+ },
43
+ ultrawarm: {
44
+ type: 'byte',
45
+ value: 0
46
+ },
47
+ ambient_light: {
48
+ type: 'float',
49
+ value: 0
50
+ },
51
+ logical_height: {
52
+ type: 'int',
53
+ value: 256
54
+ },
55
+ has_raids: {
56
+ type: 'byte',
57
+ value: 1
58
+ },
59
+ natural: {
60
+ type: 'byte',
61
+ value: 1
62
+ },
63
+ respawn_anchor_works: {
64
+ type: 'byte',
65
+ value: 0
66
+ }
67
+ }, /*, minecraft:overworld_caves is not implemented in flying-squid yet {
68
+ "name": {
69
+ "type": "string",
70
+ "value": "minecraft:overworld_caves"
71
+ },
72
+ "bed_works": {
73
+ "type": "byte",
74
+ "value": 1
75
+ },
76
+ "shrunk": {
77
+ "type": "byte",
78
+ "value": 0
79
+ },
80
+ "piglin_safe": {
81
+ "type": "byte",
82
+ "value": 0
83
+ },
84
+ "has_ceiling": {
85
+ "type": "byte",
86
+ "value": 1
87
+ },
88
+ "has_skylight": {
89
+ "type": "byte",
90
+ "value": 1
91
+ },
92
+ "infiniburn": {
93
+ "type": "string",
94
+ "value": "minecraft:infiniburn_overworld"
95
+ },
96
+ "ultrawarm": {
97
+ "type": "byte",
98
+ "value": 0
99
+ },
100
+ "ambient_light": {
101
+ "type": "float",
102
+ "value": 0
103
+ },
104
+ "logical_height": {
105
+ "type": "int",
106
+ "value": 256
107
+ },
108
+ "has_raids": {
109
+ "type": "byte",
110
+ "value": 1
111
+ },
112
+ "natural": {
113
+ "type": "byte",
114
+ "value": 1
115
+ },
116
+ "respawn_anchor_works": {
117
+ "type": "byte",
118
+ "value": 0
119
+ }
120
+ } */
121
+ {
122
+ infiniburn: {
123
+ type: 'string',
124
+ value: 'minecraft:infiniburn_nether'
125
+ },
126
+ ultrawarm: {
127
+ type: 'byte',
128
+ value: 1
129
+ },
130
+ logical_height: {
131
+ type: 'int',
132
+ value: 128
133
+ },
134
+ natural: {
135
+ type: 'byte',
136
+ value: 0
137
+ },
138
+ name: {
139
+ type: 'string',
140
+ value: 'minecraft:the_nether'
141
+ },
142
+ bed_works: {
143
+ type: 'byte',
144
+ value: 0
145
+ },
146
+ fixed_time: {
147
+ type: 'long',
148
+ value: [
149
+ 0,
150
+ 18000
151
+ ]
152
+ },
153
+ shrunk: {
154
+ type: 'byte',
155
+ value: 1
156
+ },
157
+ piglin_safe: {
158
+ type: 'byte',
159
+ value: 1
160
+ },
161
+ has_skylight: {
162
+ type: 'byte',
163
+ value: 0
164
+ },
165
+ has_ceiling: {
166
+ type: 'byte',
167
+ value: 1
168
+ },
169
+ ambient_light: {
170
+ type: 'float',
171
+ value: 0.1
172
+ },
173
+ has_raids: {
174
+ type: 'byte',
175
+ value: 0
176
+ },
177
+ respawn_anchor_works: {
178
+ type: 'byte',
179
+ value: 1
180
+ }
181
+ } /*, minecraft:the_end is not implemented in flying-squid yet
182
+ {
183
+ "infiniburn": {
184
+ "type": "string",
185
+ "value": "minecraft:infiniburn_end"
186
+ },
187
+ "ultrawarm": {
188
+ "type": "byte",
189
+ "value": 0
190
+ },
191
+ "logical_height": {
192
+ "type": "int",
193
+ "value": 256
194
+ },
195
+ "natural": {
196
+ "type": "byte",
197
+ "value": 0
198
+ },
199
+ "name": {
200
+ "type": "string",
201
+ "value": "minecraft:the_end"
202
+ },
203
+ "bed_works": {
204
+ "type": "byte",
205
+ "value": 0
206
+ },
207
+ "fixed_time": {
208
+ "type": "long",
209
+ "value": [
210
+ 0,
211
+ 6000
212
+ ]
213
+ },
214
+ "shrunk": {
215
+ "type": "byte",
216
+ "value": 0
217
+ },
218
+ "piglin_safe": {
219
+ "type": "byte",
220
+ "value": 0
221
+ },
222
+ "has_skylight": {
223
+ "type": "byte",
224
+ "value": 0
225
+ },
226
+ "has_ceiling": {
227
+ "type": "byte",
228
+ "value": 0
229
+ },
230
+ "ambient_light": {
231
+ "type": "float",
232
+ "value": 0
233
+ },
234
+ "has_raids": {
235
+ "type": "byte",
236
+ "value": 1
237
+ },
238
+ "respawn_anchor_works": {
239
+ "type": "byte",
240
+ "value": 0
241
+ }
242
+ } */
243
+ ]
244
+ }
245
+ }
246
+ }
247
+ };
248
+ const newFormat = {
249
+ "type": "compound",
250
+ "name": "",
251
+ "value": {
252
+ "minecraft:dimension_type": {
253
+ "type": "compound",
254
+ "value": {
255
+ "type": {
256
+ "type": "string",
257
+ "value": "minecraft:dimension_type"
258
+ },
259
+ "value": {
260
+ "type": "list",
261
+ "value": {
262
+ "type": "compound",
263
+ "value": [
264
+ {
265
+ "name": {
266
+ "type": "string",
267
+ "value": "minecraft:overworld"
268
+ },
269
+ "id": {
270
+ "type": "int",
271
+ "value": 0
272
+ },
273
+ "element": {
274
+ "type": "compound",
275
+ "value": {
276
+ "piglin_safe": {
277
+ "type": "byte",
278
+ "value": 0
279
+ },
280
+ "natural": {
281
+ "type": "byte",
282
+ "value": 1
283
+ },
284
+ "ambient_light": {
285
+ "type": "float",
286
+ "value": 0
287
+ },
288
+ "infiniburn": {
289
+ "type": "string",
290
+ "value": "#minecraft:infiniburn_overworld"
291
+ },
292
+ "respawn_anchor_works": {
293
+ "type": "byte",
294
+ "value": 0
295
+ },
296
+ "has_skylight": {
297
+ "type": "byte",
298
+ "value": 1
299
+ },
300
+ "bed_works": {
301
+ "type": "byte",
302
+ "value": 1
303
+ },
304
+ "effects": {
305
+ "type": "string",
306
+ "value": "minecraft:overworld"
307
+ },
308
+ "has_raids": {
309
+ "type": "byte",
310
+ "value": 1
311
+ },
312
+ "logical_height": {
313
+ "type": "int",
314
+ "value": 384
315
+ },
316
+ "coordinate_scale": {
317
+ "type": "double",
318
+ "value": 1
319
+ },
320
+ "min_y": {
321
+ "type": "int",
322
+ "value": -64
323
+ },
324
+ "has_ceiling": {
325
+ "type": "byte",
326
+ "value": 0
327
+ },
328
+ "ultrawarm": {
329
+ "type": "byte",
330
+ "value": 0
331
+ },
332
+ "height": {
333
+ "type": "int",
334
+ "value": 384
335
+ }
336
+ }
337
+ }
338
+ },
339
+ {
340
+ "name": {
341
+ "type": "string",
342
+ "value": "minecraft:the_nether"
343
+ },
344
+ "id": {
345
+ "type": "int",
346
+ "value": 2
347
+ },
348
+ "element": {
349
+ "type": "compound",
350
+ "value": {
351
+ "piglin_safe": {
352
+ "type": "byte",
353
+ "value": 1
354
+ },
355
+ "natural": {
356
+ "type": "byte",
357
+ "value": 0
358
+ },
359
+ "ambient_light": {
360
+ "type": "float",
361
+ "value": 0.10000000149011612
362
+ },
363
+ "infiniburn": {
364
+ "type": "string",
365
+ "value": "#minecraft:infiniburn_nether"
366
+ },
367
+ "respawn_anchor_works": {
368
+ "type": "byte",
369
+ "value": 1
370
+ },
371
+ "has_skylight": {
372
+ "type": "byte",
373
+ "value": 0
374
+ },
375
+ "bed_works": {
376
+ "type": "byte",
377
+ "value": 0
378
+ },
379
+ "effects": {
380
+ "type": "string",
381
+ "value": "minecraft:the_nether"
382
+ },
383
+ "fixed_time": {
384
+ "type": "long",
385
+ "value": [
386
+ 0,
387
+ 18000
388
+ ]
389
+ },
390
+ "has_raids": {
391
+ "type": "byte",
392
+ "value": 0
393
+ },
394
+ "logical_height": {
395
+ "type": "int",
396
+ "value": 128
397
+ },
398
+ "coordinate_scale": {
399
+ "type": "double",
400
+ "value": 8
401
+ },
402
+ "min_y": {
403
+ "type": "int",
404
+ "value": 0
405
+ },
406
+ "has_ceiling": {
407
+ "type": "byte",
408
+ "value": 1
409
+ },
410
+ "ultrawarm": {
411
+ "type": "byte",
412
+ "value": 1
413
+ },
414
+ "height": {
415
+ "type": "int",
416
+ "value": 256
417
+ }
418
+ }
419
+ }
420
+ }
421
+ ]
422
+ }
423
+ }
424
+ }
425
+ },
426
+ "minecraft:worldgen/biome": {
427
+ "type": "compound",
428
+ "value": {
429
+ "type": {
430
+ "type": "string",
431
+ "value": "minecraft:worldgen/biome"
432
+ },
433
+ "value": {
434
+ "type": "list",
435
+ "value": {
436
+ "type": "compound",
437
+ "value": [
438
+ {
439
+ "name": {
440
+ "type": "string",
441
+ "value": "minecraft:the_void"
442
+ },
443
+ "id": {
444
+ "type": "int",
445
+ "value": 0
446
+ },
447
+ "element": {
448
+ "type": "compound",
449
+ "value": {
450
+ "precipitation": {
451
+ "type": "string",
452
+ "value": "none"
453
+ },
454
+ "effects": {
455
+ "type": "compound",
456
+ "value": {
457
+ "sky_color": {
458
+ "type": "int",
459
+ "value": 8103167
460
+ },
461
+ "water_fog_color": {
462
+ "type": "int",
463
+ "value": 329011
464
+ },
465
+ "fog_color": {
466
+ "type": "int",
467
+ "value": 12638463
468
+ },
469
+ "water_color": {
470
+ "type": "int",
471
+ "value": 4159204
472
+ },
473
+ "mood_sound": {
474
+ "type": "compound",
475
+ "value": {
476
+ "tick_delay": {
477
+ "type": "int",
478
+ "value": 6000
479
+ },
480
+ "offset": {
481
+ "type": "double",
482
+ "value": 2
483
+ },
484
+ "sound": {
485
+ "type": "string",
486
+ "value": "minecraft:ambient.cave"
487
+ },
488
+ "block_search_extent": {
489
+ "type": "int",
490
+ "value": 8
491
+ }
492
+ }
493
+ }
494
+ }
495
+ },
496
+ "temperature": {
497
+ "type": "float",
498
+ "value": 0.5
499
+ },
500
+ "downfall": {
501
+ "type": "float",
502
+ "value": 0.5
503
+ },
504
+ "category": {
505
+ "type": "string",
506
+ "value": "none"
507
+ }
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "name": {
513
+ "type": "string",
514
+ "value": "minecraft:plains"
515
+ },
516
+ "id": {
517
+ "type": "int",
518
+ "value": 1
519
+ },
520
+ "element": {
521
+ "type": "compound",
522
+ "value": {
523
+ "precipitation": {
524
+ "type": "string",
525
+ "value": "rain"
526
+ },
527
+ "effects": {
528
+ "type": "compound",
529
+ "value": {
530
+ "sky_color": {
531
+ "type": "int",
532
+ "value": 7907327
533
+ },
534
+ "water_fog_color": {
535
+ "type": "int",
536
+ "value": 329011
537
+ },
538
+ "fog_color": {
539
+ "type": "int",
540
+ "value": 12638463
541
+ },
542
+ "water_color": {
543
+ "type": "int",
544
+ "value": 4159204
545
+ },
546
+ "mood_sound": {
547
+ "type": "compound",
548
+ "value": {
549
+ "tick_delay": {
550
+ "type": "int",
551
+ "value": 6000
552
+ },
553
+ "offset": {
554
+ "type": "double",
555
+ "value": 2
556
+ },
557
+ "sound": {
558
+ "type": "string",
559
+ "value": "minecraft:ambient.cave"
560
+ },
561
+ "block_search_extent": {
562
+ "type": "int",
563
+ "value": 8
564
+ }
565
+ }
566
+ }
567
+ }
568
+ },
569
+ "temperature": {
570
+ "type": "float",
571
+ "value": 0.800000011920929
572
+ },
573
+ "downfall": {
574
+ "type": "float",
575
+ "value": 0.4000000059604645
576
+ },
577
+ "category": {
578
+ "type": "string",
579
+ "value": "plains"
580
+ }
581
+ }
582
+ }
583
+ },
584
+ {
585
+ "name": {
586
+ "type": "string",
587
+ "value": "minecraft:ocean"
588
+ },
589
+ "id": {
590
+ "type": "int",
591
+ "value": 42
592
+ },
593
+ "element": {
594
+ "type": "compound",
595
+ "value": {
596
+ "precipitation": {
597
+ "type": "string",
598
+ "value": "rain"
599
+ },
600
+ "effects": {
601
+ "type": "compound",
602
+ "value": {
603
+ "sky_color": {
604
+ "type": "int",
605
+ "value": 8103167
606
+ },
607
+ "water_fog_color": {
608
+ "type": "int",
609
+ "value": 329011
610
+ },
611
+ "fog_color": {
612
+ "type": "int",
613
+ "value": 12638463
614
+ },
615
+ "water_color": {
616
+ "type": "int",
617
+ "value": 4159204
618
+ },
619
+ "mood_sound": {
620
+ "type": "compound",
621
+ "value": {
622
+ "tick_delay": {
623
+ "type": "int",
624
+ "value": 6000
625
+ },
626
+ "offset": {
627
+ "type": "double",
628
+ "value": 2
629
+ },
630
+ "sound": {
631
+ "type": "string",
632
+ "value": "minecraft:ambient.cave"
633
+ },
634
+ "block_search_extent": {
635
+ "type": "int",
636
+ "value": 8
637
+ }
638
+ }
639
+ }
640
+ }
641
+ },
642
+ "temperature": {
643
+ "type": "float",
644
+ "value": 0.5
645
+ },
646
+ "downfall": {
647
+ "type": "float",
648
+ "value": 0.5
649
+ },
650
+ "category": {
651
+ "type": "string",
652
+ "value": "ocean"
653
+ }
654
+ }
655
+ }
656
+ },
657
+ {
658
+ "name": {
659
+ "type": "string",
660
+ "value": "minecraft:the_end"
661
+ },
662
+ "id": {
663
+ "type": "int",
664
+ "value": 56
665
+ },
666
+ "element": {
667
+ "type": "compound",
668
+ "value": {
669
+ "precipitation": {
670
+ "type": "string",
671
+ "value": "none"
672
+ },
673
+ "effects": {
674
+ "type": "compound",
675
+ "value": {
676
+ "sky_color": {
677
+ "type": "int",
678
+ "value": 0
679
+ },
680
+ "water_fog_color": {
681
+ "type": "int",
682
+ "value": 329011
683
+ },
684
+ "fog_color": {
685
+ "type": "int",
686
+ "value": 10518688
687
+ },
688
+ "water_color": {
689
+ "type": "int",
690
+ "value": 4159204
691
+ },
692
+ "mood_sound": {
693
+ "type": "compound",
694
+ "value": {
695
+ "tick_delay": {
696
+ "type": "int",
697
+ "value": 6000
698
+ },
699
+ "offset": {
700
+ "type": "double",
701
+ "value": 2
702
+ },
703
+ "sound": {
704
+ "type": "string",
705
+ "value": "minecraft:ambient.cave"
706
+ },
707
+ "block_search_extent": {
708
+ "type": "int",
709
+ "value": 8
710
+ }
711
+ }
712
+ }
713
+ }
714
+ },
715
+ "temperature": {
716
+ "type": "float",
717
+ "value": 0.5
718
+ },
719
+ "downfall": {
720
+ "type": "float",
721
+ "value": 0.5
722
+ },
723
+ "category": {
724
+ "type": "string",
725
+ "value": "the_end"
726
+ }
727
+ }
728
+ }
729
+ }
730
+ ]
731
+ }
732
+ }
733
+ }
734
+ }
735
+ }
736
+ };
737
+ return useNewFormat ? newFormat : oldFormat;
738
+ };
739
+ exports.getDimensionCodec = getDimensionCodec;
740
+ exports.dimensionOverworld = {
741
+ "type": "compound",
742
+ "name": "",
743
+ "value": {
744
+ "monster_spawn_light_level": {
745
+ "type": "compound",
746
+ "value": {
747
+ "type": {
748
+ "type": "string",
749
+ "value": "minecraft:uniform"
750
+ },
751
+ "value": {
752
+ "type": "compound",
753
+ "value": {
754
+ "max_inclusive": {
755
+ "type": "int",
756
+ "value": 7
757
+ },
758
+ "min_inclusive": {
759
+ "type": "int",
760
+ "value": 0
761
+ }
762
+ }
763
+ }
764
+ }
765
+ },
766
+ "infiniburn": {
767
+ "type": "string",
768
+ "value": "#minecraft:infiniburn_overworld"
769
+ },
770
+ "effects": {
771
+ "type": "string",
772
+ "value": "minecraft:overworld"
773
+ },
774
+ "ultrawarm": {
775
+ "type": "byte",
776
+ "value": 0
777
+ },
778
+ "height": {
779
+ "type": "int",
780
+ "value": 384
781
+ },
782
+ "logical_height": {
783
+ "type": "int",
784
+ "value": 384
785
+ },
786
+ "natural": {
787
+ "type": "byte",
788
+ "value": 1
789
+ },
790
+ "min_y": {
791
+ "type": "int",
792
+ "value": -64
793
+ },
794
+ "bed_works": {
795
+ "type": "byte",
796
+ "value": 1
797
+ },
798
+ "coordinate_scale": {
799
+ "type": "double",
800
+ "value": 1
801
+ },
802
+ "piglin_safe": {
803
+ "type": "byte",
804
+ "value": 0
805
+ },
806
+ "has_ceiling": {
807
+ "type": "byte",
808
+ "value": 0
809
+ },
810
+ "has_skylight": {
811
+ "type": "byte",
812
+ "value": 1
813
+ },
814
+ "ambient_light": {
815
+ "type": "float",
816
+ "value": 0
817
+ },
818
+ "monster_spawn_block_light_limit": {
819
+ "type": "int",
820
+ "value": 0
821
+ },
822
+ "has_raids": {
823
+ "type": "byte",
824
+ "value": 1
825
+ },
826
+ "respawn_anchor_works": {
827
+ "type": "byte",
828
+ "value": 0
829
+ }
830
+ }
831
+ };