I added e.setCursor(new ItemStack(Material.AIR)); That didn't work.
So I'm trying to cancel InventoryClickEvent when you click on a item with a specific lore. When I shift-click it in the inventory, it duplicates...
It doesn't. I just tried this: ItemStack i = e.getItem(); if(i.getEnchantments().containsKey(Enchantment.DAMAGE_ARTHROPODS)){
In EnchantItemEvent, there's a method called getEnchantsToAdd(). I want to get the enchantment that was just added to the item and check if it...
I know I won't be able to stop the blocking animation, but is there a way to cancel the damage resistance when blocking?
Thank you, this looks like its exactly what I need. I'll mess with it and see if I can make use out of it.
I have 3 String Lists, they all have 4 strings in them. I wanna compare all the lists to each other and find all the strings that are shared, and...
This is what I need to do: When you right-click a block (Cauldron) it finds the chest that is right next to it and gets the itemstack(s) in the...
Does anyone have a code that would remove a item with a certain display name and lore from the player's inventory? I'd also like to be able to set...
I thought it would be possible if the server could find the book somewhere. Thanks for letting me know.
So I have a Inventory Menu set up, and there's a written book with text in it. Is there a way I can have it open up when it is right or...
I haven't had any luck with the negative MetaData, the armor gets removed first hit. And I'd like to not add Unbreaking or any enchantment cause...
I'm trying to make a set of God armor, which is Leather. The problem is it breaks very quickly with a durability value of around 80. I've...
That worked perfectly! Thank you so much!
When I remove the setItemMeta(lam), it gets rid of the color, but adds the Display Name and Lore. I need some way of setting "lam" to the item...
Separate names with a comma.