Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. package shards;
  2.  
  3. import org.bukkit.DyeColor;
  4.  
  5. import org.bukkit.Material;
  6. import org.bukkit.inventory.ItemStack;
  7. import org.bukkit.inventory.ShapedRecipe;
  8. import org.bukkit.plugin.Plugin;
  9.  
  10. import menus.Items;
  11.  
  12. public class Recipes {
  13. private Plugin plugin = Main.getPlugin(Main.class);
  14. private Items items = new Items();
  15. public ShapedRecipe boostedrecipe = new ShapedRecipe(items.boostedsword);
  16. public ShapedRecipe lacrecipe = new ShapedRecipe(items.lacerator);
  17. public ShapedRecipe butcherrecipe = new ShapedRecipe(items.butcheraxe);
  18. public ShapedRecipe lumberrecipe = new ShapedRecipe(items.lumberjackaxe);
  19. public ShapedRecipe obsidianrecipe = new ShapedRecipe(items.obsidianbreaker);
  20. public ShapedRecipe explosiverecipe = new ShapedRecipe(items.explosivepickaxe);
  21. @SuppressWarnings("deprecation")
  22. public void customRecipe() {
  23. boostedrecipe.shape(" s ", " s ", " b ");
  24. boostedrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
  25. boostedrecipe.setIngredient('b', Material.BLAZE_ROD);
  26. lacrecipe.shape(" b ", " b ", " s ");
  27. lacrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
  28. lacrecipe.setIngredient('b', Material.BLAZE_ROD);
  29. butcherrecipe.shape("xss", "xbs", "xbx");
  30. butcherrecipe.setIngredient('x', Material.AIR);
  31. butcherrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
  32. butcherrecipe.setIngredient('b', Material.BLAZE_ROD);
  33. lumberrecipe.shape("sss", " bs", " b ");
  34. lumberrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
  35. lumberrecipe.setIngredient('b', Material.BLAZE_ROD);
  36. obsidianrecipe.shape("sss", " b ", " b ");
  37. obsidianrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
  38. obsidianrecipe.setIngredient('b', Material.BLAZE_ROD);
  39. explosiverecipe.shape("sss", "sbs", " b ");
  40. explosiverecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
  41. explosiverecipe.setIngredient('b', Material.BLAZE_ROD);
  42. plugin.getServer().addRecipe(boostedrecipe);
  43. plugin.getServer().addRecipe(lacrecipe);
  44. plugin.getServer().addRecipe(butcherrecipe);
  45. plugin.getServer().addRecipe(lumberrecipe);
  46. plugin.getServer().addRecipe(obsidianrecipe);
  47. plugin.getServer().addRecipe(explosiverecipe);
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement