Get material of alliums

Discussion in 'Plugin Development' started by Fictitious-Rotor, Sep 29, 2018.

Thread Status:
Not open for further replies.
  1. https://imgur.com/a/q0oMRgJ
    I can't figure out how to get alliums rather than roses!
    What's up with this?
    What should I do instead?
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. So you're saying I should use the deprecated method that relies on the removed numerical metadata?
     
  4. Offline

    KarimAKL

    @Fictitious-Rotor To get the Allium flower i think you need to set the durability to 2.
    Code:Java
    1. new ItemStack(Material./*red_rose*/, 1, (short) 2);

    I think something like that should work.
     
  5. Offline

    timtower Administrator Administrator Moderator

    Yes
     
  6. I don't understand the purpose of MaterialData, BlockData and ItemMeta if we are to use the bytecode anyway?
     
  7. Offline

    timtower Administrator Administrator Moderator

    I know that this works, blockdata is for blocks.
    Materialmeta might be for this as well, but that didn't exist when I started.
     
Thread Status:
Not open for further replies.

Share This Page