Guest User

The itemStack class

a guest
Nov 6th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.10 KB | None | 0 0
  1. package com.razorblade.ultimatumgems;
  2.  
  3.  
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.Material;
  7. import org.bukkit.command.Command;
  8. import org.bukkit.command.CommandExecutor;
  9. import org.bukkit.command.CommandSender;
  10. import org.bukkit.entity.Player;
  11. import org.bukkit.inventory.ItemStack;
  12. import org.bukkit.inventory.PlayerInventory;
  13. import org.bukkit.inventory.meta.ItemMeta;
  14.  
  15. import java.util.ArrayList;
  16. import java.util.Arrays;
  17.  
  18. public class Recipes {
  19. public ItemStack Negatite{
  20.  
  21.  
  22. ItemStack Negatite = new ItemStack(Material.ECHO_SHARD, 1);
  23.  
  24. ItemMeta NegatiteMeta = Negatite.getItemMeta();
  25. assert NegatiteMeta != null;
  26. NegatiteMeta.setDisplayName(ChatColor.BLUE + "- Negatite -");
  27. NegatiteMeta.setLore(Arrays.asList("line1", "Line2", "Line3", "Line4", "Line5", "Line6", "Line7", "Line8", "Line9", "Line10", "Line11", "Line12", "Line13", "Line14", "Line15"));
  28. ArrayList<String> Negatitelore = new ArrayList<>();
  29. Negatitelore.add(ChatColor.DARK_GRAY + "An ancient crystal that was");
  30. Negatitelore.add(ChatColor.DARK_GRAY + "shattered into atoms long ago");
  31. Negatitelore.add(ChatColor.DARK_GRAY + "that was reforged again.");
  32. Negatitelore.add(ChatColor.DARK_GRAY + "You wipe away dust to reveal" + ChatColor.DARK_AQUA + " ancient");
  33. Negatitelore.add(ChatColor.DARK_AQUA + "runes inscribed in the crystal.");
  34. Negatitelore.add(ChatColor.DARK_GRAY + "What could they mean?");
  35. Negatitelore.add(" ");
  36. Negatitelore.add(ChatColor.GOLD + "Right-Click" + ChatColor.RED + " to draw out all of the");
  37. Negatitelore.add(ChatColor.RED + "negative charge from nearby enemies");
  38. Negatitelore.add(ChatColor.RED + "and convert the energy into life.");
  39. Negatitelore.add(" ");
  40. Negatitelore.add(ChatColor.GOLD + "Left-Click" + ChatColor.RED + " to expel negative energy from the");
  41. Negatitelore.add(ChatColor.RED + "crystal dealing magic damage to all");
  42. Negatitelore.add(ChatColor.RED + "enemies within 6.5 blocks and throwing");
  43. Negatitelore.add(ChatColor.RED + "entities away from you.");
  44. NegatiteMeta.setLore(Negatitelore);
  45. Negatite.setItemMeta(NegatiteMeta);
  46. }
  47. public ItemStack Posatite {
  48. ItemStack Posatite = new ItemStack(Material.AMETHYST_SHARD, 1);
  49.  
  50. ItemMeta PosatiteMeta = Posatite.getItemMeta();
  51. assert PosatiteMeta != null;
  52. PosatiteMeta.setDisplayName(ChatColor.RED + "+ Posatite +");
  53. PosatiteMeta.setLore(Arrays.asList("line1", "Line2", "Line3", "Line4", "Line5", "Line6", "Line7", "Line8", "Line9", "Line10", "Line11", "Line12", "Line13", "Line14", "Line15", "Line16", "Line17", "Line18", "Line19", "Line20", "Line21"));
  54. ArrayList<String> Posatitelore = new ArrayList<>();
  55. Posatitelore.add(ChatColor.DARK_GRAY + "An ancient crystal that was");
  56. Posatitelore.add(ChatColor.DARK_GRAY + "shattered into atoms long ago");
  57. Posatitelore.add(ChatColor.DARK_GRAY + "that was reforged again.");
  58. Posatitelore.add(ChatColor.DARK_GRAY + "You wipe away dust to reveal" + ChatColor.DARK_AQUA + " ancient");
  59. Posatitelore.add(ChatColor.DARK_AQUA + "runes inscribed in the crystal.");
  60. Posatitelore.add(ChatColor.DARK_GRAY + "What could they mean?");
  61. Posatitelore.add(" ");
  62. Posatitelore.add(ChatColor.GOLD + "Right-Click" + ChatColor.RED + " to focus the positive charge");
  63. Posatitelore.add(ChatColor.RED + "from the crystal into a deadly beam of");
  64. Posatitelore.add(ChatColor.RED + "energy and obliterate anything in the beam's");
  65. Posatitelore.add(ChatColor.RED + "path.");
  66. Posatitelore.add(ChatColor.DARK_GRAY + "Cooldown: 40 seconds.");
  67. Posatitelore.add(ChatColor.DARK_GRAY + "Duration: 5 seconds.");
  68. Posatitelore.add(ChatColor.DARK_GRAY + "Damage: 30");
  69. Posatitelore.add(" ");
  70. Posatitelore.add(ChatColor.GOLD + "Left-Click" + ChatColor.RED + " to grab onto the entity");
  71. Posatitelore.add(ChatColor.RED + "within 10 blocks that your facing and pull the positive charge");
  72. Posatitelore.add(ChatColor.RED + "towards you, pulling entity to you as well as dealing");
  73. Posatitelore.add(ChatColor.RED + "low damage.");
  74. Posatitelore.add(ChatColor.DARK_GRAY + "Cooldown: 5 seconds.");
  75. Posatitelore.add(ChatColor.DARK_GRAY + "Damage: 2");
  76. PosatiteMeta.setLore(Posatitelore);
  77. Posatite.setItemMeta(PosatiteMeta);
  78. }
  79. public ItemStack Polaratite {
  80.  
  81. ItemStack Polaratite = new ItemStack(Material.AMETHYST_SHARD, 1);
  82.  
  83. ItemMeta PolaratiteMeta = Polaratite.getItemMeta();
  84. assert PolaratiteMeta != null;
  85. PolaratiteMeta.setDisplayName(ChatColor.RED + "+- Polaratite -+");
  86. PolaratiteMeta.setLore(Arrays.asList("line1", "Line2", "Line3", "Line4", "Line5", "Line6", "Line7", "Line8", "Line9", "Line10", "Line11", "Line12", "Line13", "Line14", "Line15", "Line16", "Line17", "Line18", "Line19", "Line20", "Line21", "Line22", "Line23"));
  87. ArrayList<String> Polaratitelore = new ArrayList<>();
  88. Polaratitelore.add(ChatColor.GRAY + "You have done it. You have crafted one");
  89. Polaratitelore.add(ChatColor.GRAY + "of the last elden relics of this world.");
  90. Polaratitelore.add(ChatColor.GRAY + "You have the power of the Polarities in your palm.");
  91. Polaratitelore.add(" ");
  92. Polaratitelore.add(ChatColor.GOLD + "Sneak + Right-Click" + ChatColor.RED + " to activate the Negatite mode.");
  93. Polaratitelore.add(ChatColor.GRAY + "Sneak + Left-Click" + ChatColor.RED + " to activate the Posatite mode.");
  94. Polaratitelore.add(ChatColor.GRAY + "Sneak + Drop" + ChatColor.RED + " to activate the Polarities mode.");
  95. Polaratitelore.add(" ");
  96. Polaratitelore.add(ChatColor.GOLD + "Right-Click" + ChatColor.RED + " to create a gravitational pull of");
  97. Polaratitelore.add(ChatColor.RED + "negative and posative energy that forms a small black hole.");
  98. Polaratitelore.add(ChatColor.RED + "The black hole does damage, pulls entities into it, and");
  99. Polaratitelore.add(ChatColor.RED + "gives you regeneration II.");
  100. Polaratitelore.add(ChatColor.DARK_GRAY + "Cooldown: 60 seconds.");
  101. Polaratitelore.add(ChatColor.DARK_GRAY + "Duration: 7 seconds.");
  102. Polaratitelore.add(ChatColor.DARK_GRAY + "Damage: 60");
  103. Polaratitelore.add(" ");
  104. Polaratitelore.add(ChatColor.GOLD + "Left-Click" + ChatColor.RED + " to fire Polaratite shards");
  105. Polaratitelore.add(ChatColor.RED + "piercing all entities and dealing low-medium damage.");
  106. Polaratitelore.add(ChatColor.RED + "Getting hit will cause bleeding.");
  107. Polaratitelore.add(ChatColor.RED + "low damage.");
  108. Polaratitelore.add(ChatColor.DARK_GRAY + "Cooldown: 0.5 seconds.");
  109. Polaratitelore.add(ChatColor.DARK_GRAY + "Damage: 2");
  110. Polaratitelore.add(ChatColor.DARK_GRAY + "Bleeding damage: 2");
  111. PolaratiteMeta.setLore(Polaratitelore);
  112. Polaratite.setItemMeta(PolaratiteMeta);
  113. }
  114. }
Advertisement
Add Comment
Please, Sign In to add comment