Skip to content

Commit 2d2814e

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/m-1
# Conflicts: # type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/event/actions/player/ActionPlayerLaunchPads.java # type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/utility/LaunchPads.java
2 parents 6135794 + bc7e95a commit 2d2814e

40 files changed

Lines changed: 1936 additions & 39 deletions

configuration/skyblock/collections/combat.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ collections:
1717
- type: XP
1818
data:
1919
xp: 4
20+
- type: CUSTOM_AWARD
21+
data:
22+
customAward: FIRE_ASPECT_DISCOUNT
2023
- amount: 1000
2124
rewards:
2225
- type: XP
@@ -332,6 +335,9 @@ collections:
332335
- type: XP
333336
data:
334337
xp: 4
338+
- type: CUSTOM_AWARD
339+
data:
340+
customAward: GIANT_KILLER_DISCOUNT
335341
- amount: 1000
336342
rewards:
337343
- type: XP
@@ -342,6 +348,9 @@ collections:
342348
- type: XP
343349
data:
344350
xp: 4
351+
- type: CUSTOM_AWARD
352+
data:
353+
customAward: VAMPIRISM_DISCOUNT
345354
- amount: 5000
346355
rewards:
347356
- type: XP
@@ -410,6 +419,9 @@ collections:
410419
- type: XP
411420
data:
412421
xp: 4
422+
- type: CUSTOM_AWARD
423+
data:
424+
customAward: THUNDERLORD_DISCOUNT
413425
- amount: 5000
414426
rewards:
415427
- type: XP
@@ -590,6 +602,9 @@ collections:
590602
- type: XP
591603
data:
592604
xp: 4
605+
- type: CUSTOM_AWARD
606+
data:
607+
customAward: KNOCKBACK_DISCOUNT
593608
- amount: 1000
594609
rewards:
595610
- type: XP
@@ -669,11 +684,17 @@ collections:
669684
- type: XP
670685
data:
671686
xp: 4
687+
- type: CUSTOM_AWARD
688+
data:
689+
customAward: BANE_OF_ARTHROPODS_DISCOUNT
672690
- amount: 5000
673691
rewards:
674692
- type: XP
675693
data:
676694
xp: 4
695+
- type: CUSTOM_AWARD
696+
data:
697+
customAward: VENOMOUS_DISCOUNT
677698
- amount: 10000
678699
rewards:
679700
- type: XP

configuration/skyblock/collections/farming.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,9 @@ collections:
10441044
- type: XP
10451045
data:
10461046
xp: 4
1047+
- type: CUSTOM_AWARD
1048+
data:
1049+
customAward: CUBISM_DISCOUNT
10471050
- amount: 2500
10481051
rewards:
10491052
- type: XP

configuration/skyblock/collections/fishing.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ collections:
314314
- type: XP
315315
data:
316316
xp: 4
317+
- type: CUSTOM_AWARD
318+
data:
319+
customAward: IMPALING_DISCOUNT
317320
- amount: 25
318321
rewards:
319322
- type: XP
@@ -383,6 +386,9 @@ collections:
383386
- type: XP
384387
data:
385388
xp: 4
389+
- type: CUSTOM_AWARD
390+
data:
391+
customAward: CLEAVE_DISCOUNT
386392
- amount: 150
387393
rewards:
388394
- type: XP

configuration/skyblock/collections/mining.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,14 @@ collections:
350350
- type: XP
351351
data:
352352
xp: 4
353+
- type: CUSTOM_AWARD
354+
data:
355+
customAward: FORTUNE_DISCOUNT
356+
- amount: 500000
357+
rewards:
358+
- type: XP
359+
data:
360+
xp: 4
353361
- itemType: LAPIS_LAZULI
354362
rewards:
355363
- amount: 250
@@ -371,6 +379,9 @@ collections:
371379
- type: XP
372380
data:
373381
xp: 4
382+
- type: CUSTOM_AWARD
383+
data:
384+
customAward: EXPERIENCE_DISCOUNT
374385
- amount: 2000
375386
rewards:
376387
- type: XP
@@ -497,6 +508,9 @@ collections:
497508
- type: XP
498509
data:
499510
xp: 4
511+
- type: CUSTOM_AWARD
512+
data:
513+
customAward: EXECUTE_DISCOUNT
500514
- amount: 250
501515
rewards:
502516
- type: XP
@@ -1290,6 +1304,9 @@ collections:
12901304
- type: XP
12911305
data:
12921306
xp: 4
1307+
- type: CUSTOM_AWARD
1308+
data:
1309+
customAward: LETHALITY_DISCOUNT
12931310
- amount: 250
12941311
rewards:
12951312
- type: XP
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
items:
2+
- id: BOOKSHELF
3+
material: BOOKSHELF
4+
rarity: COMMON
5+
components:
6+
- id: CUSTOM_DROP
7+
rules:
8+
- conditions:
9+
silk_touch: true
10+
drops:
11+
- item: BOOKSHELF
12+
chance: 1.0
13+
amount: 1
14+
- conditions:
15+
drops:
16+
- item: BOOK
17+
chance: 1.0
18+
amount: 3
19+
- id: PLACEABLE
20+
- id: SELLABLE
21+
value: 20
22+
- id: DEFAULT_CRAFTABLE
23+
recipes:
24+
- type: SHAPED
25+
recipe-type: NONE
26+
pattern:
27+
- AAA
28+
- BBB
29+
- AAA
30+
ingredients:
31+
A:
32+
type: OAK_PLANKS
33+
amount: 1
34+
B:
35+
type: BOOK
36+
amount: 1
37+
result:
38+
type: BOOKSHELF
39+
amount: 1

type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/collection/CustomCollectionAward.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ public enum CustomCollectionAward {
2626
IMPALING_DISCOUNT("§9Impaling §7Exp Discount §a(-25%)"),
2727
BANE_OF_ARTHROPODS_DISCOUNT("§9Bane of Arthropods §7Exp Discount §a(-25%)"),
2828
CUBISM_DISCOUNT("§9Cubism §7Exp Discount §a(-25%)"),
29+
FORTUNE_DISCOUNT("§9Fortune §7Exp Discount §a(-25%)"),
30+
CLEAVE_DISCOUNT("§9Cleave §7Exp Discount §a(-25%)"),
31+
LIFE_STEAL_DISCOUNT("§9Life Steal §7Exp Discount §a(-25%)"),
32+
PROSECUTE_DISCOUNT("§9Prosecute §7Exp Discount §a(-25%)"),
33+
THUNDERBOLT_DISCOUNT("§9Thunderbolt §7Exp Discount §a(-25%)"),
34+
EXPERIENCE_DISCOUNT("§9Experience §7Exp Discount §a(-25%)"),
35+
FIRE_ASPECT_DISCOUNT("§9Fire Aspect §7Exp Discount §a(-25%)"),
36+
KNOCKBACK_DISCOUNT("§9Knockback §7Exp Discount §a(-25%)"),
37+
LETHALITY_DISCOUNT("§9Lethality §7Exp Discount §a(-25%)"),
38+
THUNDERLORD_DISCOUNT("§9Thunderlord §7Exp Discount §a(-25%)"),
39+
VAMPIRISM_DISCOUNT("§9Vampirism §7Exp Discount §a(-25%)"),
40+
VENOMOUS_DISCOUNT("§9Venomous §7Exp Discount §a(-25%)"),
2941

3042
// BAGS
3143
QUIVER("§aQuiver"),

type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/enchantment/EnchantmentType.java

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import net.swofty.type.skyblockgeneric.user.SkyBlockPlayer;
1010
import org.jetbrains.annotations.Nullable;
1111

12-
import java.util.List;
13-
1412
@Getter
1513
public enum EnchantmentType {
1614
SHARPNESS(EnchantmentSharpness.class),
@@ -31,17 +29,29 @@ public enum EnchantmentType {
3129
IMPALING(EnchantmentImpaling.class),
3230
BANE_OF_ARTHROPODS(EnchantmentBaneOfArthropods.class),
3331
CUBISM(EnchantmentCubism.class),
32+
FORTUNE(EnchantmentFortune.class),
33+
CLEAVE(EnchantmentCleave.class),
34+
EXPERIENCE(EnchantmentExperience.class),
35+
FIRE_ASPECT(EnchantmentFireAspect.class),
36+
KNOCKBACK(EnchantmentKnockback.class),
37+
LETHALITY(EnchantmentLethality.class),
38+
LIFE_STEAL(EnchantmentLifeSteal.class),
39+
DRAIN(EnchantmentDrain.class),
40+
MANA_STEAL(EnchantmentManaSteal.class),
41+
PROSECUTE(EnchantmentProsecute.class),
42+
THUNDERBOLT(EnchantmentThunderbolt.class),
43+
THUNDERLORD(EnchantmentThunderlord.class),
44+
VAMPIRISM(EnchantmentVampirism.class),
45+
VENOMOUS(EnchantmentVenomous.class),
46+
VICIOUS(EnchantmentVicious.class),
3447
;
3548

3649
private final Class<? extends Ench> clazz;
37-
private final List<EnchantmentType> conflicts;
38-
3950
private final Ench ench;
4051

4152
@SneakyThrows
42-
EnchantmentType(Class<? extends Ench> ench, EnchantmentType... conflicts) {
53+
EnchantmentType(Class<? extends Ench> ench) {
4354
this.clazz = ench;
44-
this.conflicts = List.of(conflicts);
4555

4656
this.ench = ench.getConstructor().newInstance();
4757
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package net.swofty.type.skyblockgeneric.enchantment.abstr;
2+
3+
import net.swofty.type.skyblockgeneric.enchantment.EnchantmentType;
4+
5+
import java.util.List;
6+
7+
public interface ConflictingEnch {
8+
List<EnchantmentType> getConflictingEnchantments();
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package net.swofty.type.skyblockgeneric.enchantment.abstr;
2+
3+
import net.minestom.server.entity.LivingEntity;
4+
import net.swofty.type.skyblockgeneric.user.SkyBlockPlayer;
5+
6+
public interface DamageEventEnchant {
7+
default void onDamageDealt(SkyBlockPlayer player, LivingEntity target, double damageDealt, int level) {
8+
}
9+
}
10+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package net.swofty.type.skyblockgeneric.enchantment.abstr;
2+
3+
import net.swofty.type.skyblockgeneric.entity.mob.SkyBlockMob;
4+
import net.swofty.type.skyblockgeneric.user.SkyBlockPlayer;
5+
6+
public interface KillEventEnchant {
7+
default void onMobKilled(SkyBlockPlayer player, SkyBlockMob killedMob, int level) {
8+
}
9+
}

0 commit comments

Comments
 (0)