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

Auto farm in 1.12.2

Discussion in 'Skript' started by ToU26, Oct 8, 2019.

  1. T

    ToU26 Member

    Joined:
    Oct 8, 2019
    Messages:
    7
    Likes Received:
    0
    on rightclick with hoe on wheat
    if data of clicked block is 7:
    ~~~~

    This script doesn't work. And

    on leftclick with hoe:
    if block below is farmland:
    I hope that the data of clicked block will be recreated with 0

    HELP PLZ

    Since I am Korean, my vocabulary can be strange by turning the translator.
     
  2. V

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    41
    Likes Received:
    2
    Code (Text):
    1. on rightclick on ripe wheat plant:
    2.     if player's tool is hoe:
    3.         if player has 1 wheat seed:
    4.             set event-block to freshly planted wheat plant
    5.             drop wheat at event-location
     
    #2 Vorze, Oct 8, 2019
    Last edited: Oct 8, 2019
  3. T

    ToU26 Member

    Joined:
    Oct 8, 2019
    Messages:
    7
    Likes Received:
    0
    It doesn't work
    What kind of add-on do I need?
     
  4. V

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    41
    Likes Received:
    2
    its because error or what ?
     
  5. T

    ToU26 Member

    Joined:
    Oct 8, 2019
    Messages:
    7
    Likes Received:
    0
    t just doesn't work.
    I tried to right-click on the multilateral wheat, but nothing happened.
     
  6. V

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    41
    Likes Received:
    2
    do you have seed on your inventory ?
    --- Double Post Merged, Oct 9, 2019, Original Post Date: Oct 9, 2019 ---
    Code (Text):
    1. on rightclick on ripe wheat plant:
    2.     if player's tool is hoe:
    3.         if player has 1 wheat seed:
    4.             set event-block to freshly planted wheat plant
    5.             drop wheat at event-location
    6.             remove 1 wheat seed from player
     
  7. T

    ToU26 Member

    Joined:
    Oct 8, 2019
    Messages:
    7
    Likes Received:
    0
    Of course
     
  8. V

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    41
    Likes Received:
    2
    do your wheats are ripe ?
    and holding a hoe ?
     
  9. T

    ToU26 Member

    Joined:
    Oct 8, 2019
    Messages:
    7
    Likes Received:
    0
    Fully grown
    wooden hoe
     
  10. V

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    41
    Likes Received:
    2
    change wheat seed to seed
    i'm using 1.14 btw and its work so idk with 1.12.2
     
  11. T

    ToU26 Member

    Joined:
    Oct 8, 2019
    Messages:
    7
    Likes Received:
    0
    It doesn't work...
    but I found it by myself.
    Code (Text):
    1. on block break:
    2.     if player's tool is a hoe:
    3.         if event-block is wheat:
    4.             if player has 1 of seeds:
    5.                 remove 1 seeds from the inventory of player
    6.                 set {_block} to freshly planted wheat
    7.                 set data value of {_block} to 0
    8.                 set event-block to {_block}
    9.         if event-block is carrot_plant:
    10.             if player has 1 of carrot:
    11.                 remove 1 carrot from inventory of player
    12.                 set {_block} to event-block
    13.                 set data value of {_block} to 0
    14.                 set event-block to {_block}
    15.         if event-block is potato_plant:
    16.             if player has 1 of potato:
    17.                 remove 1 potato from inventory of player
    18.                 set {_block} to event-block
    19.                 set data value of {_block} to 0
    20.                 set event-block to {_block}
    21.         if event-block is beetroot_block:
    22.             if player has 1 of beetroot_seeds:
    23.                 remove 1 beetroot_seeds from inventory of player
    24.                 set {_block} to event-block
    25.                 set data value of {_block} to 0
    26.                 set event-block to {_block}
    27.         if event-block is sugar_cane_block:
    28.             if player has 1 of sugar canes:
    29.                 if block below event-block is grass:
    30.                     remove 1 sugar canes from inventory of player
    31.                     set event-block to sugar_cane_block
     
Loading...