I'm currently creating a plugin for my server. On the server I use a textures package and want to create a diamond sword that has a certain durability so that I can apply a texture only to this item, how is that possible, or is there a simpler solution and thank you in advance.
Change the shelf life of an item:
ItemStack.setDurability ((short) DURABILITY);
Thank you so much i will try a further question if there's another possibility to change the texture of the item if it is e.g. Has a particular lore or name? And thanks again for the answer
Do not think so
Okay thanks anyway