Skip to content

Commit

Permalink
Recipe Fixes
Browse files Browse the repository at this point in the history
Fixes #42
Fixes #48
  • Loading branch information
socklessthing committed Aug 5, 2024
1 parent 7b79286 commit 98de64c
Showing 1 changed file with 48 additions and 23 deletions.
71 changes: 48 additions & 23 deletions src/main/java/btw/community/denovo/recipes/DNRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@
import btw.community.denovo.item.items.MaggotsSilkExtractionItem;
import btw.crafting.recipe.RecipeManager;
import btw.item.BTWItems;
import net.minecraft.src.*;
import btw.item.items.ProgressiveCraftingItem;
import net.minecraft.src.Block;
import net.minecraft.src.FurnaceRecipes;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;

public class DNRecipes {
public static void addRecipes() {
addCraftingRecipes();
addBowlsRecipes();
addSieveRecipes();
addMaggotsRecipes();
addComposterRecipes();
addCisternRecipes();
addSickleRecipes();
addHoeRecipes();
addHammerRecipes();
addCharcoalRecipes();
}

Expand All @@ -31,9 +32,6 @@ private static void addCharcoalRecipes() {
new ItemStack(DNItems.charcoalDust),
new ItemStack(DNItems.charcoalDust)
});
addSickleRecipes();
addHoeRecipes();
addHammerRecipes();
}

private static void addHammerRecipes() {
Expand Down Expand Up @@ -62,20 +60,7 @@ private static void addSickleRecipes() {
});
}

private static void addCraftingRecipes() {
RecipeManager.addShapelessRecipe(new ItemStack(DNItems.mesh), new Object[]{
new ItemStack(Item.silk),
new ItemStack(Item.silk),
new ItemStack(Item.silk),
new ItemStack(Item.silk),
});

RecipeManager.addRecipe(new ItemStack(DNBlocks.sieve), new Object[]{
"TT",
"SS",
'T', new ItemStack(Item.silk),
'S', new ItemStack(Item.stick),
});
private static void addBowlsRecipes() {

RecipeManager.addShapelessRecipe(new ItemStack(Item.bowlEmpty), new Object[]{
new ItemStack(BTWItems.wickerPane),
Expand Down Expand Up @@ -154,7 +139,6 @@ private static void addComposterRecipes() {
for (int type = 0; type < 3; type++) {
ComposterBlock.validCompostables.add(new ItemStack(Block.tallGrass, 1, type));
}

}

private static void addCisternRecipes() {
Expand All @@ -165,8 +149,22 @@ private static void addCisternRecipes() {

}


private static void addSieveRecipes() {
// Crafting
RecipeManager.addShapelessRecipe(new ItemStack(DNItems.mesh), new Object[]{
new ItemStack(Item.silk),
new ItemStack(Item.silk),
new ItemStack(Item.silk),
new ItemStack(Item.silk),
});

RecipeManager.addRecipe(new ItemStack(DNBlocks.sieve), new Object[]{
"TT",
"SS",
'T', new ItemStack(Item.silk),
'S', new ItemStack(Item.stick),
});

// Dirt sifting
SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
Expand All @@ -178,6 +176,16 @@ private static void addSieveRecipes() {
new ItemStack(DNItems.mesh)
);

SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
new LootEntry(1.0D / 2, 4, new ItemStack(BTWItems.stone)),
new LootEntry(1.0D / 5, 4, new ItemStack(Block.sapling)),
new LootEntry(1.0D / 10, 4, new ItemStack(BTWItems.sugarCaneRoots))
},
new ItemStack(BTWBlocks.looseDirtSlab),
new ItemStack(DNItems.mesh)
);

SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
new LootEntry(1.0D / 2, 8, new ItemStack(BTWItems.stone)),
Expand All @@ -198,6 +206,15 @@ private static void addSieveRecipes() {
new ItemStack(DNItems.mesh)
);

SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
new LootEntry(1.0D / 2, 4, new ItemStack(BTWItems.stone)),
new LootEntry(1.0D / 2, 4, new ItemStack(BTWItems.gravelPile))
},
new ItemStack(BTWBlocks.looseCobblestoneSlab),
new ItemStack(DNItems.mesh)
);

// Gravel sifting
SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
Expand All @@ -209,7 +226,15 @@ private static void addSieveRecipes() {

SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
new LootEntry(1.0D, 1, new ItemStack(Item.flint))
new LootEntry(1.0D / 8, 4, new ItemStack(Item.flint))
},
new ItemStack(BTWBlocks.sandAndGravelSlab, 1, 0), //0 is gravel, 1 is sand
new ItemStack(DNItems.mesh)
);

SiftingCraftingManager.addSiftingRecipe(
new LootEntry[]{
new LootEntry(1.0D, 8, new ItemStack(Item.flint))
},
new ItemStack(Block.gravel),
new ItemStack(DNItems.mesh)
Expand Down

0 comments on commit 98de64c

Please sign in to comment.