Check For Full Grown Crops

Discussion in 'Plugin Development' started by Connor McGrory, Aug 9, 2013.

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

    Connor McGrory

    I was using the BlockDamageEvent to sense when a player punches a certain crop.
    But I have no way of sensing if the crop is fully grown.
    Is there anyway to do this?
    Thanks,
    Connor
     
  2. Offline

    caseif

    Call .getData() on the Block and compare it to the value of the crop when fully grown.
     
  3. Offline

    Connor McGrory

    I don't think the crop has a value when fully grown if it's carrots or potatoes.
     
  4. Offline

    Tirelessly

  5. Offline

    Connor McGrory

    ok thanks.
    got it, and it works now
    thank you!
     
Thread Status:
Not open for further replies.

Share This Page