Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<String> info = new ArrayList<>();
- info.add(ChatColor.LIGHT_PURPLE + "You can use this craft system to create new items!" );
- info.add(ChatColor.LIGHT_PURPLE + "Just put the specific items in the craft and you will get new item!");
- info.add(ChatColor.LIGHT_PURPLE + "To get more help write /crafthelp");
- info.add(ChatColor.GRAY + "© ChickenStyle");
- ItemStack glass = new ItemStack(Material.GRAY_STAINED_GLASS_PANE);
- ItemMeta meta = glass.getItemMeta();
- meta.removeItemFlags(ItemFlag.HIDE_ATTRIBUTES);
- meta.setDisplayName(" ");
- glass.setItemMeta(meta);
- ItemStack paper = new ItemStack(Material.PAPER);
- ItemMeta papermeta = paper.getItemMeta();
- papermeta.setDisplayName(ChatColor.LIGHT_PURPLE + "Info");
- papermeta.setLore(info);
- papermeta.removeItemFlags(ItemFlag.HIDE_ATTRIBUTES);
- paper.setItemMeta(papermeta);
- List<String> recipes = new ArrayList<>();
- recipes.add(ChatColor.LIGHT_PURPLE + "Here you can see all the craft" );
- recipes.add(ChatColor.LIGHT_PURPLE + "Of out unique items!");
- recipes.add(ChatColor.LIGHT_PURPLE + "Click on it to look at them!");
- recipes.add(ChatColor.GRAY + "© ChickenStyle");
- ItemStack star = new ItemStack(Material.NETHER_STAR);
- ItemMeta starmeta = star.getItemMeta();
- starmeta.setDisplayName(ChatColor.LIGHT_PURPLE + "Recipes");
- starmeta.setLore(recipes);
- starmeta.removeItemFlags(ItemFlag.HIDE_ATTRIBUTES);
- star.setItemMeta(starmeta);
- List<String> mega = new ArrayList<>();
- mega.add(ChatColor.LIGHT_PURPLE + "Here you can craft really expensive" );
- mega.add(ChatColor.LIGHT_PURPLE + "and good items!!");
- mega.add(ChatColor.LIGHT_PURPLE + "Click on it to craft of them!");
- mega.add(ChatColor.GRAY + "© ChickenStyle");
- ItemStack crafting = new ItemStack(Material.CRAFTING_TABLE);
- ItemMeta cmeta = crafting.getItemMeta();
- cmeta.setDisplayName(ChatColor.LIGHT_PURPLE + "Mega Crafting");
- cmeta.setLore(mega);
- cmeta.removeItemFlags(ItemFlag.HIDE_ATTRIBUTES);
- crafting.setItemMeta(cmeta);
- ItemStack air = new ItemStack(Material.AIR);
- if (ChatColor.translateAlternateColorCodes('&', e.getView().getTitle()).equals(ChatColor.GRAY + "CraftingPlus")) {
- if (item == null || item == air) {
- } else if (item == star) {
- e.setCancelled(true);
- ApplyGuiHelp(player);
- } else if (item == mega) {
- e.setCancelled(true);
- MegaGui(player);
- } else if (slot == 24) {
- if (item != null || item != air) {
- gui.setItem(11, null);
- gui.setItem(20, null);
- gui.setItem(29, null);
- gui.setItem(30, null);
- gui.setItem(21, null);
- gui.setItem(31, null);
- gui.setItem(22, null);
- gui.setItem(13, null);
- gui.setItem(12, null);
- player.getWorld().playSound(player.getLocation(), Sound.BLOCK_ANVIL_USE, 2f, 1f);
- }
- } else if (item == glass){
- e.setCancelled(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement