Solved Colored Wool

Discussion in 'Plugin Development' started by PieMan456, Feb 23, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    PieMan456

    Hey Everyone,

    I am making a plugin that when you type a command it opens an inventory. I was wondering how you would get colored wool in an inventory because if you just do Material.Wool it gives you white wool. How would I do this? Thanks!
     
  2. Offline

    L33m4n123

    ItemStack blueWool = new ItemStack(Material.Wool, (short) 11);

    Edit: short or byte. not sure
     
  3. Offline

    The Fancy Whale

    Code:java
    1. Wool bwool = new Wool(DyeColor.BLUE);
     
  4. Offline

    MasterCreate

    ItemStack wool = new ItemStack(Material.Wool, 1, (byte) [Data value of wool colour]);

    Data value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
    [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]
     
  5. Offline

    PieMan456

Thread Status:
Not open for further replies.

Share This Page