Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.c0din.customweapons;
- import org.bukkit.Material;
- import org.bukkit.configuration.file.FileConfiguration;
- import org.bukkit.configuration.file.YamlConfiguration;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.ShapedRecipe;
- import java.io.File;
- /**
- * Created by Aljosha on 04.11.2016.
- * http://aljoshavieth.de
- */
- public class CustomRecipes {
- private File f = new File ("plugins/CustomWeapons", "config.yml");
- private FileConfiguration config = YamlConfiguration.loadConfiguration(f);
- private ItemStack ironDemahigan = new ItemStack(Material.IRON_AXE, 1);
- private ItemStack goldDemahigan = new ItemStack(Material.GOLD_AXE, 1);
- private ItemStack diamondDemahigan = new ItemStack(Material.DIAMOND_AXE, 1);
- private ItemStack healRod = new ItemStack(Material.BLAZE_ROD, 1);
- private ItemStack strengthRod = new ItemStack(Material.BLAZE_ROD, 1);
- public ItemStack getIronDemahigan() {
- ShapedRecipe ironDemahiganRecipe = new ShapedRecipe(ironDemahigan);
- ironDemahiganRecipe.shape("123","456","789");
- ironDemahiganRecipe.setIngredient('1',)
- return ironDemahigan;
- }
- public ItemStack getGoldDemahigan() {
- return goldDemahigan;
- }
- public ItemStack getDiamondDemahigan() {
- return diamondDemahigan;
- }
- public ItemStack getHealRod() {
- return healRod;
- }
- public ItemStack getStrengthRod() {
- return strengthRod;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement