Solved Is there any other way to get Dye (ItemStack) 1.8

Discussion in 'Plugin Development' started by JoltTheBolt, Mar 27, 2022.

  1. Offline

    JoltTheBolt

    One way I know t get Dyes is by the use of MaterialData. Is there any other way to get dyes to, for example, put it in an inventory?
     
  2. Offline

    KarimAKL

  3. Offline

    JoltTheBolt

    Apologies. I meant in 1.8. [Title Edited]

    Edit: I don't think there is and this way is fairly easy:

    Code:
    new ItemStack(Material.INK_SACK, 1, DyeColor.LIME.getData());
    Although the colors might not end up how you think. I think I read it somewhere that it's reversed. Anyway, thanks.
     
    Last edited: Mar 27, 2022

Share This Page