Custom Item Issue

Discussion in 'Plugin Development' started by justin_393, Apr 4, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    justin_393

    So I made a custom item and I want it so it can't be used to make something. Right now people can use the item as a regular ingredient. Is there anyway I can prevent this?

    Here is the custom item code
    Code:
    String keepInv = "Keep Inventory";
    
            List<String> lores = new ArrayList<String>();
            lores.add("Keep this in your inventory");
            lores.add("To keep your items on death");
            lores.add("Will be removed on death");
    
            ItemStack kI = new ItemStack(Material.DIAMOND);
            ItemMeta im = kI.getItemMeta();
            im.setDisplayName(keepInv);
            im.setLore(lores);
            kI.setItemMeta(im);
     
  2. Offline

    Wizehh

Thread Status:
Not open for further replies.

Share This Page