Find out if an item in hand is bonemeal?

Discussion in 'Plugin Development' started by darknesschaos, Jan 27, 2011.

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


    How would I find out if the item in the player's hand is bonemeal?
  2. Offline


    Isn't that one of the dyes?

    If so, I think that's hard/broken at the moment. Every time I try to access ItemStack.getData() (the way I'm assuming you would do this), I get null back.

    So, you can't differentiate dyes or wools in the inventory, or on the ground (as an ItemStack).

    I may be wrong, and I'd love to know if I am so I could make paint work with colored dye!
  3. Offline


    wow. that is sad :(
    --- merged: Jan 28, 2011 12:33 AM ---
    yeah. I just checked. all return as ink sack :/
    --- merged: Jan 28, 2011 12:39 AM ---
    Well. to answer my own question: check the damage of the ink. make sure its itemId 351, 15 damage is bonemeal.

    edit. for some reason I can't compare the byte...
  4. Offline


  5. Offline


    lol. for some reason, that just doesn't work for me :(

    edit: for some reason it wants to work now. but growbie did exactly what I was doing. so, no longer need to do that.
Thread Status:
Not open for further replies.

Share This Page