Is it possible to assign an unique item id to an itemstack or item? I'm trying to make a special sword that doesn't look different from a regular sword (I'd like to add an insane knock back). So is it possible to assign an unique ID to a certain item? Thank you!
Er... You could add ItemMeta to the ItemStack to help distinguish it. Other than that, though, I'm not sure you can add anything else to make it unique.
Ah yeah, that's what I wanted to do, but then I got told it has to look identical to the original sword o....o
Uhm, is that usable for ItemStacks? If so, where do I use it? It's not under the ItemStack or ItemMeta class.
Ah, I thought you meant an item drop. Might want to create a random integer (new Random().nextInt()) and save it in the item's ItemMeta.