Different Stages of Crops

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

Kezard

Member
May 22, 2020
11
0
1
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.
 
There was already similar thread
You can try experiment with this skript:
Code:
on right click on soil:
    if player's tool is seeds named "&aCucumber Seed":
        set {_loc} to location 1 above event-location
        set {crops::cucumber::%{_loc}%} to {_loc}
 
on crop growth:
    if event-location is {crops::cucumber::%event-location%}:
        if data value of event-block is 7:
            set event-block to fern
 
on break of fern:
    if event-location is {crops::cucumber::%event-location%}:
        drop 1 melon slice named "&aCucumber" at event-location
        set {_drop} to a random number between 1 and 3
        drop {_drop} of seeds named "&aCucumber Seed" at event-location
        clear {crops::cucumber::%event-location%}
 
on break of crops:
    if event-location is {crops::cucumber::%event-location%}:
        cancel event
        set event-block to air
        drop 1 of seeds named "&aCucumber Seed" at event-location
        clear {crops::cucumber::%event-location%}
 
Status
Not open for further replies.