diff --git a/app/bin/main/net/xuyezo/main/Main.class b/app/bin/main/net/xuyezo/main/Main.class index b363b9f..f9a83e7 100644 Binary files a/app/bin/main/net/xuyezo/main/Main.class and b/app/bin/main/net/xuyezo/main/Main.class differ diff --git a/app/src/main/java/net/xuyezo/main/Main.java b/app/src/main/java/net/xuyezo/main/Main.java index 8026320..8031c2b 100644 --- a/app/src/main/java/net/xuyezo/main/Main.java +++ b/app/src/main/java/net/xuyezo/main/Main.java @@ -50,6 +50,17 @@ public class Main extends JavaPlugin { getServer().addRecipe(recipe); + key = new NamespacedKey(this, "SandCane"); + item = new ItemStack(Material.SUGAR_CANE,1); + + recipe = new ShapedRecipe(key, item); + recipe.shape("AAA", "ABA", "ACA"); + recipe.setIngredient('A', Material.SAND); + recipe.setIngredient('B', Material.BONE_MEAL); + recipe.setIngredient('C', new RecipeChoice.MaterialChoice(Material.COAL,Material.CHARCOAL)); + + getServer().addRecipe(recipe); + key = new NamespacedKey(this, "StoneStick"); item = new ItemStack(Material.STICK,4); @@ -67,6 +78,15 @@ public class Main extends JavaPlugin { recipe.setIngredient('A', Material.BONE_MEAL); recipe.setIngredient('B', Material.DIRT); + + key = new NamespacedKey(this, "SandCactus"); + item = new ItemStack(Material.CACTUS); + + recipe = new ShapedRecipe(key, item); + recipe.shape("AAA", "ABA", "AAA"); + recipe.setIngredient('A', Material.BONE_MEAL); + recipe.setIngredient('B', Material.SAND); + getServer().addRecipe(recipe);