Automatic sell macro for tree farming

Discussion in 'Basic Tutorials' started by MarshmallowDerp, Oct 6, 2017.

  1. MarshmallowDerp

    Joined:
    Jul 1, 2017
    Messages:
    165
    Trophy Points:
    560
    Gender:
    Male
    Ratings:
    +113
    THIS PROJECT IS A WORK IN PROGRESS AND WILL BE CHANGED OVER TIME. THE CURRENT MACRO IS UNSTABLE AND SPAMS THE SERVER LOGS.

    You heard it right - no more having to stop and sell all your wood. With this, all your wood gets sold straight away!

    Tree Farming Macro

    Hey everyone, I only just installed macro a couple of days ago and let me tell you right now - it's amazing. Now, I love going into the technical side of stuff so I began to learn how scripting in macro works. I started off with a bit of a struggle, but just a few minutes later I had made my first ever macro - the tree farming macro.

    What can this do?

    Simple - the moment you collect wood, it sells it for you? There's no more need to stop and manually type it, from now on it's automatic!

    Sweet! How can I get it?

    Firstly, you need to make sure that macro is installed properly into your Minecraft client. There are plenty of tutorials all over the internet, and even on the "Basic Tutorial" section, which you're on right now! Next, create a new text file and create a new file called "Wood.txt" (or really anything you want). Paste this script into the text file:
    Code:
    $${[/SIZE][/LEFT]
    [SIZE=4][LEFT]IF(%PICKUPITEM%="Spruce Wood")
       ECHO( /sell log:1)
    ENDIF
    }$$



    Now, create a new macro in the "Events" section called "onPickupItem". Type in $$<Wood.txt> (replace Wood with whatever you named your text file).

    After that, you should be all set! Enjoy automatically selling your wood whenever you tree farm!

    IMPORTANT: In the text code I have assumed that you are farming spruce wood. You may have to edit this, depending on what wood you are farming. Simply change "Spruce Wood" with whatever you are farming and change log:1 to the type of wood as well.

    log = Oak
    log:1 = Spruce
    log:2 = Birch
    log:3 = Jungle
    Log_2 = Acacia
    Log_2:1 = Dark Oak
     
    #1 MarshmallowDerp, Oct 6, 2017
    Last edited: Oct 6, 2017
  2. Capbo_

    Capbo_ President

    Joined:
    Jun 21, 2016
    Messages:
    889
    Trophy Points:
    2,550
    Gender:
    Male
    EcoDollars:
    $753
    Ratings:
    +1,331
    Just add a delay or wait command. I forgot what it was called :).
     
  3. MarshmallowDerp

    Joined:
    Jul 1, 2017
    Messages:
    165
    Trophy Points:
    560
    Gender:
    Male
    Ratings:
    +113
    The wait command won't work, as it just delays the spam by however seconds ;-;
     
  4. Enzonium

    Enzonium Mayor

    Joined:
    Aug 17, 2017
    Messages:
    43
    Trophy Points:
    230
    Gender:
    Male
    Ratings:
    +7
    Whats the name of the mod called?
     
  5. MarshmallowDerp

    Joined:
    Jul 1, 2017
    Messages:
    165
    Trophy Points:
    560
    Gender:
    Male
    Ratings:
    +113
    Macro mod
     
  6. Enzonium

    Enzonium Mayor

    Joined:
    Aug 17, 2017
    Messages:
    43
    Trophy Points:
    230
    Gender:
    Male
    Ratings:
    +7
    May you please provide a link.
     
  7. Capbo_

    Capbo_ President

    Joined:
    Jun 21, 2016
    Messages:
    889
    Trophy Points:
    2,550
    Gender:
    Male
    EcoDollars:
    $753
    Ratings:
    +1,331
    You have to follow the thread. The author would prefer you not.
     
  8. Enzonium

    Enzonium Mayor

    Joined:
    Aug 17, 2017
    Messages:
    43
    Trophy Points:
    230
    Gender:
    Male
    Ratings:
    +7