Skip to content

Commit c703cc7

Browse files
committed
work: initial work on Genesis compat
1 parent ff14a66 commit c703cc7

File tree

5 files changed

+38
-2
lines changed

5 files changed

+38
-2
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,12 @@ dependencies {
103103

104104

105105
implementation "curse.maven:aether-protect-your-moa-1016303:6040716"
106-
implementation "com.aetherteam.beyondparity:aether_beyond_parity:${project.aether_beyond_parity_version}"
107106
implementation "curse.maven:aether-emissivity-916028:6392126"
108107
implementation "curse.maven:aether-treasure-reforging-1016302:6040710"
108+
implementation "com.aetherteam.beyondparity:aether_beyond_parity:${project.aether_beyond_parity_version}"
109+
//implementation "com.aetherteam.genesis:aether-genesis:${project.aether_genesis_version}"
110+
111+
implementation "com.aetherteam.genesis:aether_genesis:1.21.1-0.0.1-neoforge"
109112
}
110113

111114
repositories {
@@ -114,6 +117,7 @@ repositories {
114117
maven { url = "https://packages.aether-mod.net/Treasure-Reforging" }
115118
maven { url = "https://packages.aether-mod.net/Protect-Your-Moa" }
116119
maven { url = "https://packages.aether-mod.net/Beyond-Parity" }
120+
maven { url = "https://packages.aether-mod.net/The-Aether-Genesis" }
117121
maven { url = "https://maven.theillusivec4.top/" }
118122
maven { url = 'https://maven.minecraftforge.net/' }
119123
maven { url = "https://maven.wispforest.io" }

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ terrablender_version=1.21.1-4.1.0.3
3939

4040
# Optional Dependencies
4141
jei_version=19.25.0.323
42-
aether_beyond_parity_version=1.21.1-1.0.0-neoforge
42+
aether_beyond_parity_version=1.21.1-1.0.0-neoforge
43+
aether_genesis_version=1.21.1-0.0.1-neoforge
16.2 MB
Binary file not shown.

src/main/java/io/github/razordevs/deep_aether/DeepAether.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.aetherteam.aether.block.dispenser.AetherDispenseBehaviors;
55
import com.aetherteam.aether.entity.AetherEntityTypes;
66
import com.aetherteam.aether.item.AetherItems;
7+
import com.aetherteam.genesis.entity.GenesisEntityTypes;
78
import com.google.common.reflect.Reflection;
89
import com.mojang.logging.LogUtils;
910
import io.github.razordevs.aeroblender.aether.AetherRuleCategory;
@@ -234,6 +235,12 @@ private void registerFlawlessBossDrops() {
234235
this.getFlawlessBossDrop(AetherEntityTypes.VALKYRIE_QUEEN.get(), DeepAetherConfig.COMMON.valkyrie_queen_flawless_boss_drop.get(), DAItems.MEDAL_OF_HONOR.get());
235236
this.getFlawlessBossDrop(AetherEntityTypes.SUN_SPIRIT.get(), DeepAetherConfig.COMMON.sun_spirit_flawless_boss_drop.get(), DAItems.SUN_CORE.get());
236237
this.getFlawlessBossDrop(DAEntities.EOTS_CONTROLLER.get(), DeepAetherConfig.COMMON.eots_flawless_boss_drop.get(), DAItems.FLOATY_SCARF.get());
238+
239+
if(ModList.get().isLoaded(DeepAether.AETHER_GENESIS)){
240+
this.getFlawlessBossDrop(GenesisEntityTypes.SENTRY_GUARDIAN.get(), DeepAetherConfig.COMMON.slider_flawless_boss_drop.get(), DAItems.SENTRY_ALARM.get());
241+
this.getFlawlessBossDrop(GenesisEntityTypes.SLIDER_HOST_MIMIC.get(), DeepAetherConfig.COMMON.slider_flawless_boss_drop.get(), DAItems.MIMIC_EYE.get());
242+
this.getFlawlessBossDrop(GenesisEntityTypes.LABYRINTH_EYE.get(), DeepAetherConfig.COMMON.slider_flawless_boss_drop.get(), DAItems.MAGNETIC_COG.get());
243+
}
237244
}
238245

239246
private void registerFluidInteractions(){

src/main/java/io/github/razordevs/deep_aether/DeepAetherConfig.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public static class Common {
2222
public final ConfigValue<String> sun_spirit_flawless_boss_drop;
2323
public final ConfigValue<String> eots_flawless_boss_drop;
2424
public final ConfigValue<String> aerwhale_king_flawless_boss_drop;
25+
public final ConfigValue<String> slider_mimic_flawless_boss_drop;
26+
public final ConfigValue<String> sentry_guardian_flawless_boss_drop;
27+
public final ConfigValue<String> labyrinth_eye_flawless_boss_drop;
2528

2629
public Common(ModConfigSpec.Builder builder) {
2730
builder.push("Gameplay");
@@ -59,6 +62,27 @@ public Common(ModConfigSpec.Builder builder) {
5962
.define("Aerwhale King Flawless Boss Drop", "deep_aether:aerwhale_saddle");
6063
builder.pop();
6164

65+
builder.push("Gameplay");
66+
slider_mimic_flawless_boss_drop= builder
67+
.comment("The item dropped when the Slider Host Mimic is defeated flawlessly, set value to null (with quotation marks!) to disable flawless boss drops from the Slider Host Mimic. This Config Does nothing if Aether Genesis isn't installed.")
68+
.translation("config.deep_aether.common.flawless.slider_mimic_flawless_boss_drop")
69+
.define("Slider Host Mimic Flawless Boss Drop", "deep_aether:mimic_eye");
70+
builder.pop();
71+
72+
builder.push("Gameplay");
73+
sentry_guardian_flawless_boss_drop= builder
74+
.comment("The item dropped when the Sentry Guardian is defeated flawlessly, set value to null (with quotation marks!) to disable flawless boss drops from the Sentry Guardian. This Config Does nothing if Aether Genesis isn't installed.")
75+
.translation("config.deep_aether.common.flawless.sentry_guardian_flawless_boss_drop")
76+
.define("Sentry Guardian Flawless Boss Drop", "deep_aether:sentry_alarm");
77+
builder.pop();
78+
79+
builder.push("Gameplay");
80+
labyrinth_eye_flawless_boss_drop = builder
81+
.comment("The item dropped when the Labyrinth Eye is defeated flawlessly, set value to null (with quotation marks!) to disable flawless boss drops from the Labyrinth Eye. This Config Does nothing if Aether Genesis isn't installed.")
82+
.translation("config.deep_aether.common.flawless.labyrinth_eye_flawless_boss_drop")
83+
.define("Labyrinth Eye Flawless Boss Drop", "deep_aether:magnetic_cog");
84+
builder.pop();
85+
6286
builder.push("Biomes");
6387
deep_aether_biome_weight = builder
6488
.comment("The weighting of Deep Aether regions in the aether")

0 commit comments

Comments
 (0)