Skip to content

Commit

Permalink
Begin work on wold's
Browse files Browse the repository at this point in the history
  • Loading branch information
Attack8 committed Nov 21, 2024
1 parent 96b700b commit ef5bbb6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ dependencies {
runtimeOnly fg.deobf("curse.maven:modular-routers-250294:4984984")
// runtimeOnly fg.deobf("curse.maven:attackeight-quest-addon-946682:5401585")

compileOnly fg.deobf("curse.maven:wolds-vaults-official-mod-958799:5854693")
if (wolds_enable) {
runtimeOnly fg.deobf("curse.maven:wolds-vaults-official-mod-958799:5854693")
}
}

mixin {
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ gekolib_version = 3.0.57
jei_version = 9.7.2.281
curios_version = 5.0.9.0
arl_version = 1.7-53.110
quark_version = 3.2-358.1
quark_version = 3.2-358.1

wolds_enable = true
5 changes: 5 additions & 0 deletions src/main/java/dev/attackeight/the_vault_jei/TheVaultJEI.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.mojang.logging.LogUtils;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.common.Mod;
import org.slf4j.Logger;

Expand All @@ -19,4 +20,8 @@ public static ResourceLocation rl(String path) {
return new ResourceLocation(TheVaultJEI.ID, path);
}

public static boolean hasWolds() {
return ModList.get().isLoaded("woldsvaults");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
import mezz.jei.api.registration.IRecipeCatalystRegistration;
import mezz.jei.api.registration.IRecipeCategoryRegistration;
import mezz.jei.api.registration.IRecipeRegistration;
import net.minecraft.client.Minecraft;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.ItemLike;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.ModList;

import javax.annotation.ParametersAreNonnullByDefault;

Expand Down Expand Up @@ -84,6 +87,9 @@ public void registerRecipes(IRecipeRegistration registration) {
registration.addRecipes(MOD_BOX, getModBoxLoot());
registration.addRecipes(BOUNTY_REWARDS, getBountyRewards());
registration.addRecipes(ALTAR_INGREDIENTS, getAltarIngredients());
if (TheVaultJEI.hasWolds()) {

}
}

@Override
Expand Down

0 comments on commit ef5bbb6

Please sign in to comment.