Cant figure out how to detect growth stage

  • 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.

EliPlayz32

Member
Dec 1, 2019
14
0
0
27
Hello, I am trying to make a skript where if you right click on wheat, it gives you one wheat, and drops 1-3 seeds. I got to the point where I can right click on the wheat and trigger an event fine, but I cant make it only trigger if the wheat is fully grown. I have tried various solutions such as, "wheat:7" or, "if wheat's data/age is 7:" but none of it worked. Any way to detect crop age? Thank you, and here is my script:

on rightclick on wheat:7:
set block to wheat
drop wheat
drop a random integer between 1 and 3 of wheat seeds

Error: Can't understand this event: 'on rightclick on wheat:7'
 
Add something like this
Code:
command /testblock:
    trigger:
        message "Block: %targeted block%"
to your code, and use that to figure out the alias for that specific block (or in this case crop).
 
Status
Not open for further replies.