Advertisement
Aljosha

CustomWeapons

Nov 4th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.48 KB | None | 0 0
  1. package de.c0din.customweapons;
  2.  
  3.  
  4. import org.bukkit.Material;
  5. import org.bukkit.configuration.file.FileConfiguration;
  6. import org.bukkit.configuration.file.YamlConfiguration;
  7. import org.bukkit.inventory.ItemStack;
  8. import org.bukkit.inventory.ShapedRecipe;
  9.  
  10. import java.io.File;
  11.  
  12. /**
  13.  * Created by Aljosha on 04.11.2016.
  14.  * http://aljoshavieth.de
  15.  */
  16. public class CustomRecipes {
  17.  
  18.     private File f = new File ("plugins/CustomWeapons", "config.yml");
  19.     private FileConfiguration config = YamlConfiguration.loadConfiguration(f);
  20.  
  21.     private ItemStack ironDemahigan = new ItemStack(Material.IRON_AXE, 1);
  22.     private ItemStack goldDemahigan = new ItemStack(Material.GOLD_AXE, 1);
  23.     private ItemStack diamondDemahigan = new ItemStack(Material.DIAMOND_AXE, 1);
  24.     private ItemStack healRod = new ItemStack(Material.BLAZE_ROD, 1);
  25.     private ItemStack strengthRod = new ItemStack(Material.BLAZE_ROD, 1);
  26.  
  27.     public ItemStack getIronDemahigan() {
  28.         ShapedRecipe ironDemahiganRecipe = new ShapedRecipe(ironDemahigan);
  29.         ironDemahiganRecipe.shape("123","456","789");
  30.  
  31.         ironDemahiganRecipe.setIngredient('1',)
  32.         return ironDemahigan;
  33.     }
  34.  
  35.     public ItemStack getGoldDemahigan() {
  36.         return goldDemahigan;
  37.     }
  38.  
  39.     public ItemStack getDiamondDemahigan() {
  40.         return diamondDemahigan;
  41.     }
  42.  
  43.     public ItemStack getHealRod() {
  44.         return healRod;
  45.     }
  46.  
  47.     public ItemStack getStrengthRod() {
  48.         return strengthRod;
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement