How can I generate a potion by id for example: I have a potion with the id "373:16428", how could I generate a potion from that information? I already tried: Code:java int id = 373;int amount = 1;byte data = 16428;ItemStack i = new ItemStack(id,amount,data);
I already tried to create, but when I try to put in "itemstack" will it not go Edited: I'll try now: "toItemStack" mythbusterma Thank you I used: Code:java Potion p = Potion.fromDamage(16428)ItemStack i = new ItemStack(p.toItemStack(1)); EDIT by Moderator: merged posts, please use the edit button instead of double posting.