Solved Check age of wheat crop

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Blep

New Member
Jun 23, 2020
9
0
1
25
I've searched for an answer but all the posts I saw were out of date. Could anyone help me check the age of a wheat crop?

This is the code I've been trying to modify to get to work
Code:
on block break:
  if event-block is wheat:
    broadcast "1"
 
This should work
Code:
on break:
    if event-block is freshly planted wheat plant:
        broadcast "&aFreshly planted"
    else if event-block is fully grown wheat plant:
        broadcast "&aFully grown"
    else if event-block is stage 8 wheat plant:
        broadcast "&aStage 8"
    else:
        broadcast "&aOther"
Obviously you can compact this more and modify it to your liking but this works.
 
This should work
Code:
on break:
    if event-block is freshly planted wheat plant:
        broadcast "&aFreshly planted"
    else if event-block is fully grown wheat plant:
        broadcast "&aFully grown"
    else if event-block is stage 8 wheat plant:
        broadcast "&aStage 8"
    else:
        broadcast "&aOther"
Obviously you can compact this more and modify it to your liking but this works.
Thanks so much, I just couldn't figure out where to put the block data and what the words were lol
 
Status
Not open for further replies.