SHARE
TWEET

Untitled

danik159 Sep 22nd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.chickenstyle.dragon;
  2.  
  3.  
  4. import java.util.Arrays;
  5.  
  6. import org.bukkit.Bukkit;
  7. import org.bukkit.ChatColor;
  8. import org.bukkit.Material;
  9. import org.bukkit.inventory.ItemStack;
  10. import org.bukkit.inventory.ShapelessRecipe;
  11. import org.bukkit.inventory.meta.ItemMeta;
  12. import org.bukkit.plugin.java.JavaPlugin;
  13.  
  14. public class Main extends JavaPlugin {
  15.     public static Main config;
  16.     @SuppressWarnings("deprecation")
  17.     @Override
  18.     public void onEnable() {
  19.           Bukkit.getPluginManager().registerEvents(new DragonsListener(), this);
  20.           this.getConfig().options().copyDefaults();
  21.           saveDefaultConfig();
  22.           getCommand("setchestspawn").setExecutor(new ChestSpawn());
  23.           config = this;
  24.          
  25.             //Summon Item
  26.             ItemStack star = new ItemStack(Material.NETHER_STAR);
  27.             ItemMeta meta = star.getItemMeta();
  28.             meta.setDisplayName(ChatColor.GOLD + "Dragon's Summoning Crystal");
  29.             meta.setLore(Arrays.asList(ChatColor.WHITE + "Click with this on",ChatColor.WHITE + "dragon's egg and",ChatColor.WHITE + "dragon will spawn!"));
  30.             star.setItemMeta(meta);
  31.             //Crafting
  32.             ShapelessRecipe cs = new ShapelessRecipe(star);
  33.             cs.addIngredient(4, Material.NETHER_STAR);
  34.             getServer().addRecipe(cs);
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top