runelynx

Untitled

Jul 18th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1.         newItem.setDurability((short) 99);
  2.         meta = newItem.getItemMeta();
  3.         meta.setDisplayName(ChatColor.DARK_BLUE + "Sword of Devoted Faith");
  4.         meta.setLore(Arrays.asList(ChatColor.GRAY
  5.                 + "A blessed blade with a blinding glow", " ", ChatColor.BLUE
  6.                 + "Strong chance to increase faith", ChatColor.BLUE
  7.                 + "Small chance to shatter"));
  8.         newItem.setItemMeta(meta);
  9.         newItem.addUnsafeEnchantment(Enchantment.DURABILITY, 10);
  10.         newRecipe = new ShapelessRecipe(newItem);
  11.         newRecipe.addIngredient(1, Material.GOLD_NUGGET);
  12.         newRecipe.addIngredient(1, Material.REDSTONE);
  13.         newRecipe.addIngredient(1, Material.INK_SACK, 4);
  14.         newRecipe.addIngredient(1, Material.EMERALD);
  15.         newRecipe.addIngredient(1, Material.GOLD_SWORD);
  16.         newRecipe.addIngredient(1, Material.DIAMOND);
  17.         Bukkit.getServer().addRecipe(newRecipe);
Advertisement
Add Comment
Please, Sign In to add comment