hypixel-api-reborn 11.2.1 → 11.3.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.
Files changed (37) hide show
  1. package/package.json +8 -8
  2. package/src/API/housing/getActiveHouses.js +7 -0
  3. package/src/API/housing/getHouse.js +9 -0
  4. package/src/API/housing/getPlayerHouses.js +11 -0
  5. package/src/API/index.js +6 -1
  6. package/src/API/skyblock/getGarden.js +7 -0
  7. package/src/API/skyblock/getMember.js +4 -2
  8. package/src/API/skyblock/getProfiles.js +4 -2
  9. package/src/Client.js +46 -2
  10. package/src/Private/requests.js +1 -1
  11. package/src/index.js +5 -0
  12. package/src/structures/House.js +54 -0
  13. package/src/structures/MiniGames/Arcade.js +754 -270
  14. package/src/structures/MiniGames/ArenaBrawl.js +97 -31
  15. package/src/structures/MiniGames/BlitzSurvivalGames.js +378 -127
  16. package/src/structures/MiniGames/BuildBattle.js +19 -8
  17. package/src/structures/MiniGames/CopsAndCrims.js +252 -25
  18. package/src/structures/MiniGames/Duels.js +899 -656
  19. package/src/structures/MiniGames/MegaWalls.js +390 -51
  20. package/src/structures/MiniGames/MurderMystery.js +151 -30
  21. package/src/structures/MiniGames/Paintball.js +31 -11
  22. package/src/structures/MiniGames/Quakecraft.js +113 -50
  23. package/src/structures/MiniGames/SkyWars.js +340 -195
  24. package/src/structures/MiniGames/SmashHeroes.js +195 -69
  25. package/src/structures/MiniGames/SpeedUHC.js +76 -36
  26. package/src/structures/MiniGames/TNTGames.js +242 -73
  27. package/src/structures/MiniGames/TurboKartRacers.js +55 -115
  28. package/src/structures/MiniGames/UHC.js +135 -124
  29. package/src/structures/MiniGames/VampireZ.js +70 -37
  30. package/src/structures/MiniGames/Warlords.js +126 -1
  31. package/src/structures/MiniGames/WoolWars.js +54 -4
  32. package/src/structures/Player.js +30 -24
  33. package/src/structures/SkyBlock/SkyblockGarden.js +146 -0
  34. package/src/structures/SkyBlock/SkyblockMember.js +12 -5
  35. package/src/utils/Constants.js +507 -5
  36. package/src/utils/SkyblockUtils.js +33 -0
  37. package/typings/index.d.ts +911 -802
@@ -8,9 +8,9 @@ module.exports = {
8
8
  { name: 'Legend', key: 'legend' },
9
9
  { name: 'Grandmaster', key: 'grandmaster' },
10
10
  { name: 'Godlike', key: 'godlike' },
11
- { name: 'WORLD ELITE', key: 'world_elite' },
12
- { name: 'WORLD MASTER', key: 'world_master' },
13
- { name: "WORLD'S BEST", key: 'worlds_best' }
11
+ { name: 'Celestial', key: 'celestial' },
12
+ { name: 'Divine', key: 'divine' },
13
+ { name: 'Ascended', key: 'ascended' }
14
14
  ],
15
15
  levelingXp: {
16
16
  1: 50,
@@ -115,7 +115,9 @@ module.exports = {
115
115
  carpentry: 50,
116
116
  runecrafting: 25,
117
117
  dungeons: 50,
118
- social: 25
118
+ social: 25,
119
+ hotm: 10,
120
+ garden: 15
119
121
  },
120
122
  dungeonXp: {
121
123
  1: 50,
@@ -177,7 +179,10 @@ module.exports = {
177
179
  4: 25000,
178
180
  5: 60000,
179
181
  6: 100000,
180
- 7: 150000
182
+ 7: 150000,
183
+ 8: 210000,
184
+ 9: 290000,
185
+ 10: 400000
181
186
  },
182
187
  socialXp: {
183
188
  1: 50,
@@ -206,6 +211,503 @@ module.exports = {
206
211
  24: 40000,
207
212
  25: 50000
208
213
  },
214
+ garden: {
215
+ 1: 0,
216
+ 2: 70,
217
+ 3: 70,
218
+ 4: 140,
219
+ 5: 240,
220
+ 6: 600,
221
+ 7: 1500,
222
+ 8: 2000,
223
+ 9: 2500,
224
+ 10: 3000,
225
+ 11: 10000,
226
+ 12: 10000,
227
+ 13: 10000,
228
+ 14: 10000,
229
+ 15: 10000
230
+ },
231
+ wheat: {
232
+ 1: 30,
233
+ 2: 50,
234
+ 3: 80,
235
+ 4: 170,
236
+ 5: 330,
237
+ 6: 670,
238
+ 7: 1330,
239
+ 8: 2500,
240
+ 9: 3500,
241
+ 10: 5000,
242
+ 11: 6500,
243
+ 12: 8000,
244
+ 13: 10000,
245
+ 14: 20000,
246
+ 15: 35000,
247
+ 16: 50000,
248
+ 17: 75000,
249
+ 18: 100000,
250
+ 19: 175000,
251
+ 20: 250000,
252
+ 21: 350000,
253
+ 22: 500000,
254
+ 23: 750000,
255
+ 24: 1000000,
256
+ 25: 1300000,
257
+ 26: 1600000,
258
+ 27: 2000000,
259
+ 28: 2300000,
260
+ 29: 2600000,
261
+ 30: 3000000,
262
+ 31: 3000000,
263
+ 32: 3000000,
264
+ 33: 3000000,
265
+ 34: 3000000,
266
+ 35: 3000000,
267
+ 36: 3000000,
268
+ 37: 3000000,
269
+ 38: 3000000,
270
+ 39: 3000000,
271
+ 40: 3000000,
272
+ 41: 3000000,
273
+ 42: 3000000,
274
+ 43: 3000000,
275
+ 44: 3000000,
276
+ 45: 3000000,
277
+ 46: 3000000
278
+ },
279
+ carrot: {
280
+ 1: 100,
281
+ 2: 150,
282
+ 3: 250,
283
+ 4: 500,
284
+ 5: 1500,
285
+ 6: 2500,
286
+ 7: 5000,
287
+ 8: 7500,
288
+ 9: 10000,
289
+ 10: 15000,
290
+ 11: 20000,
291
+ 12: 25000,
292
+ 13: 40000,
293
+ 14: 70000,
294
+ 15: 100000,
295
+ 16: 200000,
296
+ 17: 250000,
297
+ 18: 250000,
298
+ 19: 500000,
299
+ 20: 750000,
300
+ 21: 1000000,
301
+ 22: 1500000,
302
+ 23: 2000000,
303
+ 24: 3000000,
304
+ 25: 4000000,
305
+ 26: 5000000,
306
+ 27: 6000000,
307
+ 28: 7000000,
308
+ 29: 8000000,
309
+ 30: 9000000,
310
+ 31: 10000000,
311
+ 32: 10000000,
312
+ 33: 10000000,
313
+ 34: 10000000,
314
+ 35: 10000000,
315
+ 36: 10000000,
316
+ 37: 10000000,
317
+ 38: 10000000,
318
+ 39: 10000000,
319
+ 40: 10000000,
320
+ 41: 10000000,
321
+ 42: 10000000,
322
+ 43: 10000000,
323
+ 44: 10000000,
324
+ 45: 10000000,
325
+ 46: 10000000
326
+ },
327
+ potato: {
328
+ 1: 100,
329
+ 2: 150,
330
+ 3: 250,
331
+ 4: 500,
332
+ 5: 1500,
333
+ 6: 2500,
334
+ 7: 5000,
335
+ 8: 7500,
336
+ 9: 10000,
337
+ 10: 15000,
338
+ 11: 20000,
339
+ 12: 25000,
340
+ 13: 40000,
341
+ 14: 70000,
342
+ 15: 100000,
343
+ 16: 200000,
344
+ 17: 250000,
345
+ 18: 250000,
346
+ 19: 500000,
347
+ 20: 750000,
348
+ 21: 1000000,
349
+ 22: 1500000,
350
+ 23: 2000000,
351
+ 24: 3000000,
352
+ 25: 4000000,
353
+ 26: 5000000,
354
+ 27: 6000000,
355
+ 28: 7000000,
356
+ 29: 8000000,
357
+ 30: 9000000,
358
+ 31: 10000000,
359
+ 32: 10000000,
360
+ 33: 10000000,
361
+ 34: 10000000,
362
+ 35: 10000000,
363
+ 36: 10000000,
364
+ 37: 10000000,
365
+ 38: 10000000,
366
+ 39: 10000000,
367
+ 40: 10000000,
368
+ 41: 10000000,
369
+ 42: 10000000,
370
+ 43: 10000000,
371
+ 44: 10000000,
372
+ 45: 10000000,
373
+ 46: 10000000
374
+ },
375
+ melon: {
376
+ 1: 150,
377
+ 2: 250,
378
+ 3: 400,
379
+ 4: 850,
380
+ 5: 1650,
381
+ 6: 3350,
382
+ 7: 6650,
383
+ 8: 12500,
384
+ 9: 17500,
385
+ 10: 25000,
386
+ 11: 32500,
387
+ 12: 40000,
388
+ 13: 50000,
389
+ 14: 100000,
390
+ 15: 175000,
391
+ 16: 250000,
392
+ 17: 375000,
393
+ 18: 500000,
394
+ 19: 875000,
395
+ 20: 1250000,
396
+ 21: 1750000,
397
+ 22: 2500000,
398
+ 23: 3750000,
399
+ 24: 5000000,
400
+ 25: 6500000,
401
+ 26: 8000000,
402
+ 27: 10000000,
403
+ 28: 11500000,
404
+ 29: 13000000,
405
+ 30: 15000000,
406
+ 31: 15000000,
407
+ 32: 15000000,
408
+ 33: 15000000,
409
+ 34: 15000000,
410
+ 35: 15000000,
411
+ 36: 15000000,
412
+ 37: 15000000,
413
+ 38: 15000000,
414
+ 39: 15000000,
415
+ 40: 15000000,
416
+ 41: 15000000,
417
+ 42: 15000000,
418
+ 43: 15000000,
419
+ 44: 15000000,
420
+ 45: 15000000,
421
+ 46: 15000000
422
+ },
423
+ pumpkin: {
424
+ 1: 30,
425
+ 2: 50,
426
+ 3: 80,
427
+ 4: 170,
428
+ 5: 330,
429
+ 6: 670,
430
+ 7: 1330,
431
+ 8: 2500,
432
+ 9: 3500,
433
+ 10: 5000,
434
+ 11: 6500,
435
+ 12: 8000,
436
+ 13: 10000,
437
+ 14: 20000,
438
+ 15: 35000,
439
+ 16: 50000,
440
+ 17: 75000,
441
+ 18: 100000,
442
+ 19: 175000,
443
+ 20: 250000,
444
+ 21: 350000,
445
+ 22: 500000,
446
+ 23: 750000,
447
+ 24: 1000000,
448
+ 25: 1300000,
449
+ 26: 1600000,
450
+ 27: 2000000,
451
+ 28: 2300000,
452
+ 29: 2600000,
453
+ 30: 3000000,
454
+ 31: 3000000,
455
+ 32: 3000000,
456
+ 33: 3000000,
457
+ 34: 3000000,
458
+ 35: 3000000,
459
+ 36: 3000000,
460
+ 37: 3000000,
461
+ 38: 3000000,
462
+ 39: 3000000,
463
+ 40: 3000000,
464
+ 41: 3000000,
465
+ 42: 3000000,
466
+ 43: 3000000,
467
+ 44: 3000000,
468
+ 45: 3000000,
469
+ 46: 3000000
470
+ },
471
+ sugarCane: {
472
+ 1: 60,
473
+ 2: 100,
474
+ 3: 160,
475
+ 4: 340,
476
+ 5: 660,
477
+ 6: 1340,
478
+ 7: 2660,
479
+ 8: 5000,
480
+ 9: 7000,
481
+ 10: 10000,
482
+ 11: 13000,
483
+ 12: 16000,
484
+ 13: 20000,
485
+ 14: 40000,
486
+ 15: 70000,
487
+ 16: 100000,
488
+ 17: 150000,
489
+ 18: 200000,
490
+ 19: 350000,
491
+ 20: 500000,
492
+ 21: 700000,
493
+ 22: 1000000,
494
+ 23: 1500000,
495
+ 24: 2000000,
496
+ 25: 2600000,
497
+ 26: 3200000,
498
+ 27: 4000000,
499
+ 28: 4600000,
500
+ 29: 5200000,
501
+ 30: 6000000,
502
+ 31: 6000000,
503
+ 32: 6000000,
504
+ 33: 6000000,
505
+ 34: 6000000,
506
+ 35: 6000000,
507
+ 36: 6000000,
508
+ 37: 6000000,
509
+ 38: 6000000,
510
+ 39: 6000000,
511
+ 40: 6000000,
512
+ 41: 6000000,
513
+ 42: 6000000,
514
+ 43: 6000000,
515
+ 44: 6000000,
516
+ 45: 6000000,
517
+ 46: 6000000
518
+ },
519
+ cocoaBeans: {
520
+ 1: 90,
521
+ 2: 150,
522
+ 3: 250,
523
+ 4: 500,
524
+ 5: 1000,
525
+ 6: 2000,
526
+ 7: 4000,
527
+ 8: 7500,
528
+ 9: 10000,
529
+ 10: 15000,
530
+ 11: 20000,
531
+ 12: 25000,
532
+ 13: 30000,
533
+ 14: 50000,
534
+ 15: 100000,
535
+ 16: 150000,
536
+ 17: 200000,
537
+ 18: 300000,
538
+ 19: 500000,
539
+ 20: 750000,
540
+ 21: 1000000,
541
+ 22: 1500000,
542
+ 23: 2000000,
543
+ 24: 3000000,
544
+ 25: 4000000,
545
+ 26: 5000000,
546
+ 27: 6000000,
547
+ 28: 7000000,
548
+ 29: 8000000,
549
+ 30: 9000000,
550
+ 31: 9000000,
551
+ 32: 9000000,
552
+ 33: 9000000,
553
+ 34: 9000000,
554
+ 35: 9000000,
555
+ 36: 9000000,
556
+ 37: 9000000,
557
+ 38: 9000000,
558
+ 39: 9000000,
559
+ 40: 9000000,
560
+ 41: 9000000,
561
+ 42: 9000000,
562
+ 43: 9000000,
563
+ 44: 9000000,
564
+ 45: 9000000,
565
+ 46: 9000000
566
+ },
567
+ cactus: {
568
+ 1: 60,
569
+ 2: 100,
570
+ 3: 160,
571
+ 4: 340,
572
+ 5: 660,
573
+ 6: 1340,
574
+ 7: 2660,
575
+ 8: 5000,
576
+ 9: 7000,
577
+ 10: 10000,
578
+ 11: 13000,
579
+ 12: 16000,
580
+ 13: 20000,
581
+ 14: 40000,
582
+ 15: 70000,
583
+ 16: 100000,
584
+ 17: 150000,
585
+ 18: 200000,
586
+ 19: 350000,
587
+ 20: 500000,
588
+ 21: 700000,
589
+ 22: 1000000,
590
+ 23: 1500000,
591
+ 24: 2000000,
592
+ 25: 2600000,
593
+ 26: 3200000,
594
+ 27: 4000000,
595
+ 28: 4600000,
596
+ 29: 5200000,
597
+ 30: 6000000,
598
+ 31: 6000000,
599
+ 32: 6000000,
600
+ 33: 6000000,
601
+ 34: 6000000,
602
+ 35: 6000000,
603
+ 36: 6000000,
604
+ 37: 6000000,
605
+ 38: 6000000,
606
+ 39: 6000000,
607
+ 40: 6000000,
608
+ 41: 6000000,
609
+ 42: 6000000,
610
+ 43: 6000000,
611
+ 44: 6000000,
612
+ 45: 6000000,
613
+ 46: 6000000
614
+ },
615
+ mushroom: {
616
+ 1: 30,
617
+ 2: 50,
618
+ 3: 80,
619
+ 4: 170,
620
+ 5: 330,
621
+ 6: 670,
622
+ 7: 1330,
623
+ 8: 2500,
624
+ 9: 3500,
625
+ 10: 5000,
626
+ 11: 6500,
627
+ 12: 8000,
628
+ 13: 10000,
629
+ 14: 20000,
630
+ 15: 35000,
631
+ 16: 50000,
632
+ 17: 75000,
633
+ 18: 100000,
634
+ 19: 175000,
635
+ 20: 250000,
636
+ 21: 350000,
637
+ 22: 500000,
638
+ 23: 750000,
639
+ 24: 1000000,
640
+ 25: 1300000,
641
+ 26: 1600000,
642
+ 27: 2000000,
643
+ 28: 2300000,
644
+ 29: 2600000,
645
+ 30: 3000000,
646
+ 31: 3000000,
647
+ 32: 3000000,
648
+ 33: 3000000,
649
+ 34: 3000000,
650
+ 35: 3000000,
651
+ 36: 3000000,
652
+ 37: 3000000,
653
+ 38: 3000000,
654
+ 39: 3000000,
655
+ 40: 3000000,
656
+ 41: 3000000,
657
+ 42: 3000000,
658
+ 43: 3000000,
659
+ 44: 3000000,
660
+ 45: 3000000,
661
+ 46: 3000000
662
+ },
663
+ netherWart: {
664
+ 1: 90,
665
+ 2: 150,
666
+ 3: 250,
667
+ 4: 500,
668
+ 5: 1000,
669
+ 6: 2000,
670
+ 7: 4000,
671
+ 8: 7500,
672
+ 9: 10000,
673
+ 10: 15000,
674
+ 11: 20000,
675
+ 12: 25000,
676
+ 13: 30000,
677
+ 14: 50000,
678
+ 15: 100000,
679
+ 16: 150000,
680
+ 17: 200000,
681
+ 18: 300000,
682
+ 19: 500000,
683
+ 20: 750000,
684
+ 21: 1000000,
685
+ 22: 1500000,
686
+ 23: 2000000,
687
+ 24: 3000000,
688
+ 25: 4000000,
689
+ 26: 5000000,
690
+ 27: 6000000,
691
+ 28: 7000000,
692
+ 29: 8000000,
693
+ 30: 9000000,
694
+ 31: 9000000,
695
+ 32: 9000000,
696
+ 33: 9000000,
697
+ 34: 9000000,
698
+ 35: 9000000,
699
+ 36: 9000000,
700
+ 37: 9000000,
701
+ 38: 9000000,
702
+ 39: 9000000,
703
+ 40: 9000000,
704
+ 41: 9000000,
705
+ 42: 9000000,
706
+ 43: 9000000,
707
+ 44: 9000000,
708
+ 45: 9000000,
709
+ 46: 9000000
710
+ },
209
711
  petScore: {
210
712
  COMMON: 1,
211
713
  UNCOMMON: 2,
@@ -29,6 +29,39 @@ function getLevelByXp(xp, type, levelCap) {
29
29
  case 'social':
30
30
  xpTable = constants.socialXp;
31
31
  break;
32
+ case 'garden':
33
+ xpTable = constants.garden;
34
+ break;
35
+ case 'wheat':
36
+ xpTable = constants.wheat;
37
+ break;
38
+ case 'carrot':
39
+ xpTable = constants.carrot;
40
+ break;
41
+ case 'potato':
42
+ xpTable = constants.potato;
43
+ break;
44
+ case 'melon':
45
+ xpTable = constants.melon;
46
+ break;
47
+ case 'pumpkin':
48
+ xpTable = constants.pumpkin;
49
+ break;
50
+ case 'sugarCane':
51
+ xpTable = constants.sugarCane;
52
+ break;
53
+ case 'cocoaBeans':
54
+ xpTable = constants.cocoaBeans;
55
+ break;
56
+ case 'cactus':
57
+ xpTable = constants.cactus;
58
+ break;
59
+ case 'mushroom':
60
+ xpTable = constants.mushroom;
61
+ break;
62
+ case 'netherWart':
63
+ xpTable = constants.netherWart;
64
+ break;
32
65
  default:
33
66
  xpTable = constants.levelingXp;
34
67
  }