Solved Dyed Items

Discussion in 'Plugin Development' started by Markyroson, Jun 28, 2015.

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

    Markyroson

    How do you dye an item for an inventory GUI? Is it done via item meta or?

    Thanks in advance! :)
     
  2. Offline

    BagduFagdu

    @Markyroson
    Create an ItemStack with DyeColor. Example:
    Code:
    ItemStack clay = new ItemStack(Material.STAINED_CLAY, 1, DyeColor.GREEN.getData());
     
    Markyroson likes this.
  3. Offline

    Markyroson

    Thank you! :)
     
  4. Offline

    tytwining

    Please mark the thread as solved.
     
    Markyroson likes this.
  5. Offline

    Markyroson

    That did not work for me with a leather cap/tunic/pants/boots :-(

    Code:
    ItemStack leatherHelmet = new ItemStack(Material.LEATHER_HELMET, 1, DyeColor.GREEN.getData());
    inventory.setItem(0, leatherHelmet);
     
  6. Offline

    BagduFagdu

  7. Offline

    Markyroson

Thread Status:
Not open for further replies.

Share This Page