Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crystal cluster un-crafting recipes #120

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/enhancements.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ Add a rotated crafting recipe for the Thaumometer.
## Config option: `rottenFleshRecipe`
Add a recipe to convert flesh blocks back into rotten flesh.

## Config option: `crystalClusterUncrafting`
Add crafting recipes to convert crystal cluster blocks back into primal shards. Does not work for mixed crystal clusters.

# Enhancements - Wand Component Replacement

## Config option: `enableReplaceWandCapsRecipe`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ public static void registerRecipes() {
GameRegistry
.addShapelessRecipe(new ItemStack(Items.rotten_flesh, 9), new ItemStack(ConfigBlocks.blockTaint, 1, 2));
}

if (enhancements.crystalClusterUncrafting.isEnabled()) {
for (var metadata = 0; metadata <= 5; ++metadata) {
GameRegistry.addShapelessRecipe(
new ItemStack(ConfigItems.itemShard, 6, metadata),
new ItemStack(ConfigBlocks.blockCrystal, 1, metadata));
}
}
}

public static void registerRecipesPostInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class EnhancementsModule extends BaseConfigModule {
public final ToggleSetting levitatorShiftFix;
public final ToggleSetting pureNodeBiomeChange;
public final ToggleSetting rottenFleshRecipe;
public final ToggleSetting crystalClusterUncrafting;

public EnhancementsModule() {
// spotless:off
Expand Down Expand Up @@ -230,9 +231,14 @@ public EnhancementsModule() {
"Override how eldritch altars pick where to try spawning crimson knights and eldritch guardians."),
rottenFleshRecipe = new ToggleSetting(
this,
ConfigPhase.EARLY,
ConfigPhase.LATE,
"rottenFleshRecipe",
"Add a crafting recipe to convert flesh blocks back into rotten flesh.").setCategory("recipes")
"Add a crafting recipe to convert flesh blocks back into rotten flesh.").setCategory("recipes"),
crystalClusterUncrafting = new ToggleSetting(
this,
ConfigPhase.LATE,
"crystalClusterUncrafting",
"Add crafting recipes to convert crystal cluster blocks back into primal shards. Does not work for mixed crystal clusters.").setCategory("recipes")
);

// spotless:on
Expand Down