Solved Farming

  • 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 community!

    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.

IDuckz_

Active Member
Jul 25, 2019
106
2
18
Um im trying to make it whenever they are holding right click with a hoe, it gives them wheat (but theres a progress thing) and if they're not holding a hoe and they try right clicking, it will say "You must hold a hoe to farm a crop!" But I can't get that to working, heres my code:

Code:
on rightclick on a wheat:7:
    if player's gamemode is creative:
        stop
    if player's gamemode is survival:
        if player is not holding any hoe:
        send "&cYou must hold a hoe to farm this crop!"
        stop
    if player is holding any hoe:
        wait 1 second
        send "&eProgress: 33%%"
        wait 1 second
        send "&eProgress: 66%%"
        wait 1 second
        send "&aProgress: 100%%"
        give player 1 wheat
        stop

The skript plugins im using are: Skript, SkQuery, Skellet, SkRayFall, TuSKe, and Sk-NBeeT

My skript version: 2.2-dev36 (Latest version for 1.12.2)

Edit: When they release holding right click, it will stop the progress till they hold rightclick again.

Another Edit: I also want it they can do it 1 by 1 and not spam it. Sorry for requesting too much.
 
Last edited:
Status
Not open for further replies.