1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Different Stages of Crops

Discussion in 'Skript' started by Kezard, Dec 20, 2020.

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

    Kezard Member

    Joined:
    May 22, 2020
    Messages:
    11
    Likes Received:
    0
    Code:
    on break of carrot plant:
    if player's tool is netherite hoe named "&b&lHarvest Hoe":
    if the data value of event-block is 1, 2, 3, 4, 5, or 6:
    if {block::%location of event-block%} is true:
    cancel event
    else:
    if {block::%location of event-block%} is true:
    if the data value of event-block is 1, 2, 3, 4, 5, or 6:
    cancel event
    set event-block to air
    drop 1 carrot named "&a&lCucumber"
    set {block::%location of event-block%} to false

    So I'm trying to make a harvest hoe skript and data value skript won't do its job is there any other way I can do this because when I use carrot plant it only does the first stage.
     
  2. MusicManSK

    MusicManSK Active Member

    Joined:
    Nov 30, 2017
    Messages:
    232
    Likes Received:
    11
    There was already similar thread
    You can try experiment with this skript:
    Code (Text):
    1. on right click on soil:
    2.     if player's tool is seeds named "&aCucumber Seed":
    3.         set {_loc} to location 1 above event-location
    4.         set {crops::cucumber::%{_loc}%} to {_loc}
    5.  
    6. on crop growth:
    7.     if event-location is {crops::cucumber::%event-location%}:
    8.         if data value of event-block is 7:
    9.             set event-block to fern
    10.  
    11. on break of fern:
    12.     if event-location is {crops::cucumber::%event-location%}:
    13.         drop 1 melon slice named "&aCucumber" at event-location
    14.         set {_drop} to a random number between 1 and 3
    15.         drop {_drop} of seeds named "&aCucumber Seed" at event-location
    16.         clear {crops::cucumber::%event-location%}
    17.  
    18. on break of crops:
    19.     if event-location is {crops::cucumber::%event-location%}:
    20.         cancel event
    21.         set event-block to air
    22.         drop 1 of seeds named "&aCucumber Seed" at event-location
    23.         clear {crops::cucumber::%event-location%}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...