Skip to content

Commit

Permalink
feat: add various crafting recipes and accessories (#125)
Browse files Browse the repository at this point in the history
- Added new crafting recipes for rooted dirt
- Updated `CraftingRecipes.java` to include the new recipes.
  • Loading branch information
Xavbeat03 authored Sep 21, 2024
1 parent c3321ca commit 6dc3fc3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

group = "me.ShermansWorld"

version = "1.29.0"
version = "1.29.1"
description = ""
val mainPackage = "${project.group}.${rootProject.name}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,17 @@ public static void cryingObsidianRecipe() {

AlathraExtras.getInstance().getServer().addRecipe(cryingObsidianRecipe);
}

public static void rootedDirtRecipe() {
ItemStack rootedDirt = new ItemStack(Material.ROOTED_DIRT, 8);
NamespacedKey key = new NamespacedKey(AlathraExtras.getInstance(),
AlathraExtras.getInstance().getName() + "rootedDirtRecipe");
ShapedRecipe rootedDirtRecipe = new ShapedRecipe(key, rootedDirt);
rootedDirtRecipe.shape("CCC", "CHC", "CCC");
rootedDirtRecipe.setIngredient('C', Material.COARSE_DIRT);
rootedDirtRecipe.setIngredient('H', Material.HANGING_ROOTS);
AlathraExtras.getInstance().getServer().addRecipe(rootedDirtRecipe);
}

public static Recipe trebuchetRecipe() {
ItemStack trebuchet = SiegeEnginesAPI.getTrebuchetItem();
Expand Down Expand Up @@ -622,6 +633,7 @@ public static void wreathRecipe() {

public static void registerAllCraftingRecipes() {
saddleRecipe();
rootedDirtRecipe();
charcoalBlock();
redDyeRecipe();
redSandRecipe();
Expand Down

0 comments on commit 6dc3fc3

Please sign in to comment.