I Cannot find how to dye a Material.Wool This is my code Code:java new ItemStack(Material.WOOL, 1) I have tryed this Code:java new ItemStack(Material.WOOL, 1, 2) I have also tried this Code: new ItemStack(Material.WOOL, DyeColor.Red) and this Code:java new ItemStack(Material.WOOL, 1 (Dyecolor.Red))
PizzaPixel On blocks in the world you have to call setData(short), on ItemStacks you might have to use their ItemMeta....
GameplayJDK How would i do that? willeb96 im doing something that has to be Code: new ItemStack(Material.WOOL, 1) i cant put this Code: ItemStack wool = new ItemStack(Material.WOOL); wool.setDurability(1); EDIT by Moderator: merged posts, please use the edit button instead of double posting.
PizzaPixel Why not? Just put "wool" instead of "new ItemStack(Material.WOOL, 1)" where ever you need it.
willeb96 im doing an Icon Menu Code:java menu.setOption(4, new ItemStack(Material.WOOL, 1), "Green Team", "")
Code:java ItemStack wool = new ItemStack(Material.WOOL, 1);wool.setDurability(5);menu.setOption(4, wool, "Green Team", "");
GameplayJDK It Works! Rocoty Yours also works! EDIT by Moderator: merged posts, please use the edit button instead of double posting.