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.

Auto-Harvesters not working

Discussion in 'Skript' started by oHeckGage, Apr 9, 2020.

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

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    106
    Likes Received:
    5
    Code (Text):
    1.  
    2. every 2 seconds in world "world":
    3.     loop all blocks:
    4.         if loop-block-1 is a composter:
    5.             set {autoharvcomp} to {_loc} of loop-block
    6.             loop all blocks in radius 5 around {autoharvcomp}:
    7.                 if loop-block-2 is fully grown wheat plant:
    8.                     set block at loop-block-2 to freshly planted wheat plant
    9.                     loop all blocks in radius 5 around {autoharvcomp}:
    10.                         if loop-block-3 is chest:
    11.                             set {autoharvchest} to block at loop-block-3
    12.                             add 2 wheat to {autoharvchest}'s inventory
    13.                         if loop-block-3 is hopper:
    14.                             set {autoharvchest} to block at loop-block-3
    15.                             add 2 wheat to {autoharvchest}'s inventory
    I have been trying to make an auto-harvester skript, and I just forgot about it for a little, and then it popped up and I forgot that I had posted about it a long time ago and I still need help. There are no errors or anything it just doesn't work.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...