Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.85 KB | None | 0 0
  1. // * Variable set * //
  2.     private ShapedRecipe basic;
  3.     private ShapedRecipe advanced;
  4.     private ShapedRecipe expert;
  5.     private ShapedRecipe remote;
  6.    
  7.    
  8.     // * Load Recipe * //
  9.     @SuppressWarnings("deprecation")
  10.     public void loadRecipes() {
  11.         basic = new ShapedRecipe(
  12.                 new ACC_DIR(16, 16 * 128 * 4, new ArrayList<ACC_DigitisedItem>(), "CraftingItem").getItem());
  13.         basic.shape("XYX", "YZY", "XYX");
  14.         basic.setIngredient('X', Material.GLASS);
  15.         basic.setIngredient('Y', Material.OBSIDIAN);
  16.         basic.setIngredient('Z', Material.IRON_INGOT);
  17.         Bukkit.addRecipe(basic);
  18.  
  19.         advanced = new ShapedRecipe(
  20.                 new ACC_DIR(32, 32 * 256 * 4, new ArrayList<ACC_DigitisedItem>(), "CraftingItem").getItem());
  21.         advanced.shape("XYX", "YZY", "XYX");
  22.         advanced.setIngredient('X', Material.GLASS);
  23.         advanced.setIngredient('Y', Material.OBSIDIAN);
  24.         advanced.setIngredient('Z', Material.GOLD_INGOT);
  25.         Bukkit.addRecipe(advanced);
  26.  
  27.         expert = new ShapedRecipe(
  28.                 new ACC_DIR(64, 64 * 512 * 4, new ArrayList<ACC_DigitisedItem>(), "CraftingItem").getItem());
  29.         expert.shape("XYX", "YZY", "XYX");
  30.         expert.setIngredient('X', Material.GLASS);
  31.         expert.setIngredient('Y', Material.OBSIDIAN);
  32.         expert.setIngredient('Z', Material.DIAMOND);
  33.         Bukkit.addRecipe(expert);
  34.  
  35.         remote = new ShapedRecipe(new ACC_HTAD().toItemStack());
  36.         remote.shape("DCD", "BAB", "DDD");
  37.         remote.setIngredient('A', Material.BREWING_STAND);
  38.         remote.setIngredient('B', Material.STONE_BUTTON);
  39.         remote.setIngredient('C', Material.REDSTONE);
  40.         remote.setIngredient('D', Material.IRON_INGOT);
  41.         Bukkit.addRecipe(remote);
  42.        
  43.     }
  44.    
  45.     // * Return * //
  46.     public ShapedRecipe getBasicRecipe() {
  47.         return basic;
  48.     }
  49.     public ShapedRecipe getAdvancedRecipe() {
  50.         return advanced;
  51.     }
  52.     public ShapedRecipe getExpertRecipe() {
  53.         return expert;
  54.     }
  55.     public ShapedRecipe getRemoteRecipe() {
  56.         return remote;
  57.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement