Skip to content

Commit

Permalink
wondiws98 kindly opened up third-party distribution for craftable lava.
Browse files Browse the repository at this point in the history
  • Loading branch information
gniftygnome committed Oct 13, 2022
1 parent 4481cd3 commit d376ede
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 44 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ dependencies {
modImplementation "me.shedaniel.cloth:cloth-config-fabric:${project.clothconfig_version}"
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
// compatibility
//modImplementation "curse.maven:craftablelava-678266:${project.craftablelava_cursed_id}"
modImplementation "curse.maven:craftablelava-678266:${project.craftablelava_cursed_id}"
modImplementation "curse.maven:farmers-delight-fabric-482834:${project.farmersdelight_cursed_id}"
modImplementation "curse.maven:midnightlib-488090:${project.midnightlib_cursed_id}"
modImplementation "curse.maven:this-rocks-416283:${project.rocks_cursed_id}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public class SkysTheLimitConfig implements ConfigData {
@ConfigEntry.Category("recipes")
public Boolean stonesToCobblestone = true;

@ConfigEntry.Category("recipes")
public Boolean stonesToStoneBucket = true;

@ConfigEntry.Category("recipes")
public Boolean stringToRope = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import net.minecraft.item.Items;
import net.minecraft.predicate.item.ItemPredicate;
import net.minecraft.util.Identifier;
import net.wondiws98.craftablelava.item.LavaCrucible;

import java.util.Collections;
import java.util.function.Consumer;
Expand Down Expand Up @@ -59,11 +60,6 @@ protected void generateRecipes(Consumer<RecipeJsonProvider> exporter) {
.criterion("has_seeds", InventoryChangedCriterion.Conditions.items(Items.WHEAT_SEEDS))
.offerTo(withConditions(exporter, SkysTheLimitResourceConditions.allConfigBooleansEnabled("dirtToGrassBlock")));

offerSmelting(withConditions(exporter, SkysTheLimitResourceConditions.allConfigBooleansEnabled("snowToWater")),
Collections.singletonList(Items.POWDER_SNOW_BUCKET),
Items.WATER_BUCKET,
0.1f, 200, "smelting");

new ShapedRecipeJsonBuilder(ItemsRegistry.ROPE.get(), 1)
.group("rope")
.pattern("s ")
Expand All @@ -86,6 +82,18 @@ protected void generateRecipes(Consumer<RecipeJsonProvider> exporter) {
.criterion("has_leather", InventoryChangedCriterion.Conditions.items(Items.LEATHER))
.offerTo(withConditions(exporter, SkysTheLimitResourceConditions.allConfigBooleansEnabled("craftableSaddle")));

new ShapelessRecipeJsonBuilder(LavaCrucible.CRUCIBLE, 1)
.group("misc")
.input(Items.BUCKET)
.input(RocksMain.CobblestoneSplitter)
.input(RocksMain.CobblestoneSplitter)
.input(RocksMain.CobblestoneSplitter)
.input(RocksMain.CobblestoneSplitter)
.input(RocksMain.CobblestoneSplitter)
.input(RocksMain.CobblestoneSplitter)
.criterion("has_cobble_stones", InventoryChangedCriterion.Conditions.items(RocksMain.CobblestoneSplitter))
.offerTo(withConditions(exporter, SkysTheLimitResourceConditions.allConfigBooleansEnabled("stonesToStoneBucket")));

new ShapedRecipeJsonBuilder(Items.STRING, 1)
.group("string")
.pattern("bb ")
Expand All @@ -96,6 +104,11 @@ protected void generateRecipes(Consumer<RecipeJsonProvider> exporter) {
.offerTo(withConditions(exporter,
DefaultResourceConditions.allModsLoaded(FarmersDelightMod.MOD_ID),
SkysTheLimitResourceConditions.allConfigBooleansEnabled("barkToString")));

offerSmelting(withConditions(exporter, SkysTheLimitResourceConditions.allConfigBooleansEnabled("snowToWater")),
Collections.singletonList(Items.POWDER_SNOW_BUCKET),
Items.WATER_BUCKET,
0.1f, 200, "smelting");
}

@Override
Expand Down

This file was deleted.

0 comments on commit d376ede

Please sign in to comment.