Please Help! How to get a dye item.

Discussion in 'Plugin Development' started by Cyber_Pigeon, May 6, 2014.

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

    Cyber_Pigeon

    I have no idea how to do this after many failed attempts. I want to know how to get a colored dye item. I tried from an id, but it is casting an error on the ':'. Pleas help.
    Thanks!
    -Cyber
     
  2. Offline

    Gater12

    Cyber_Pigeon
    Have you tried creating an ItemStack with INK_SAC and setting the durability of it to the data value of the color dye?
     
    Garris0n likes this.
  3. Offline

    Garris0n

    You have to use Material.INK_SAC and then a data value when you construct the ItemStack. As far as I can see there is no "item meta" class that allows for coloring dye without a data value. Unless I'm missing such a class, you'll probably have to update/fix the code in Minecraft 1.8.
     
  4. Offline

    Cyber_Pigeon

    Hey thanks guys!
     
  5. Offline

    Gater12

  6. Offline

    Garris0n

  7. Offline

    desht

    AdamQpzm likes this.
Thread Status:
Not open for further replies.

Share This Page