One-Click Emerald Farm

Discussion in 'Community Discussion' started by fishmeal, May 4, 2015.

  1. I made you guys a present.



    $${
    if(ruppez);
    unset(ruppez);
    log(Mission aborted.);
    else;
    log("Making emeralds.");
    set(ruppez);
    do;
    PICK(spawn_egg:120);
    wait(50ms);
    key(use);
    wait(350ms);
    key(use);
    wait(350ms);
    &searchitem = paper;
    for(#forsearch,3,38);
    getslotitem(%#forsearch%,&founditem);
    if(%&founditem% = %&searchitem%);
    slotclick(%#forsearch%);
    slotclick(0);
    wait(250ms);
    getslotitem(2,id,#stacksize);
    if(%#stacksize%>=1);
    slotclick(2,l,true);
    else;
    slotclick(0,l,true);
    wait(50ms);
    press(e);
    wait(200ms);
    Pick(stick);
    wait(50ms);
    key(use);
    endif;
    endif;
    next;
    wait(100ms);
    while(ruppez);
    endif;
    end;
    }$$


    Follow the instructions, paste the code onto the key of your choice in the in-game gui (shift + ~), put a villager egg and a stick in your hot bar, fill your inventory up with paper and press the button.
  2. 1.7 Infinite Paper -> Emeralds trading:



    log("Trading.");

    DO(9);
    key(use);
    wait(800ms);

    &searchitem = paper

    for(#forsearch,3,38);
    getslotitem(%#forsearch%,&founditem);
    if(%&founditem% = %&searchitem%);
    slotclick(%#forsearch%);
    slotclick(0);
    slotclick(2,l,true);


    wait(300ms);
    getslotitem(0,id,#stacksize);
    if(%#stacksize%>=26);
    slotclick(0,l,true);
    wait(300ms);
    press(e);
    wait(2);
    key(use);
    else;
    slotclick(0,l,true);
    wait(300ms);
    endif;



    endif;
    next;

    press(e);

    loop;
    end;

    log("Trade complete.");


    You're going to want a villager and some paper.

    Open the in-game gui with shift + ~. Choose the key you want to use and in the box type: $${emerald.txt}$$. Click "Edit File," and name it "emerald." In that file, paste the code above, and save. Look at a villager, and hit the button.
    UltiPig and Roslyn like this.
  3. Make paper:

    $${log(Crafting paper.);key(use);wait(800ms);slotclick(10);slotclick(1);slotclick(11);slotclick(2);slotclick(12);slotclick(3);wait(300ms);slotclick(0,l,true);slotclick(13);slotclick(1);slotclick(14);slotclick(2);slotclick(15);slotclick(3);slotclick(0,l,true);slotclick(16);slotclick(1);slotclick(17);slotclick(2);slotclick(18);slotclick(3);slotclick(0,l,true);slotclick(19);slotclick(1);slotclick(20);slotclick(2);slotclick(21);slotclick(3);slotclick(0,l,true);slotclick(22);slotclick(1);slotclick(23);slotclick(2);slotclick(24);slotclick(3);slotclick(0,l,true);slotclick(25);slotclick(1);slotclick(26);slotclick(2);slotclick(27);slotclick(3);slotclick(0,l,true);slotclick(28);slotclick(1);slotclick(29);slotclick(2);slotclick(30);slotclick(3);slotclick(0,l,true);slotclick(31);slotclick(1);slotclick(32);slotclick(2);slotclick(33);slotclick(3);slotclick(0,l,true);slotclick(34);slotclick(1);slotclick(35);slotclick(2);slotclick(36);slotclick(3);slotclick(0,l,true);slotclick(37);slotclick(1);slotclick(38);slotclick(2);slotclick(39);slotclick(3);slotclick(0,l,true);slotclick(40);slotclick(1);slotclick(41);slotclick(2);slotclick(42);slotclick(3);slotclick(0,l,true);slotclick(43);slotclick(1);slotclick(44);slotclick(2);slotclick(45);slotclick(3);slotclick(0,l,true);wait(300ms);gui();wait(200ms);log(Paper crafted.);}$$

    Look at a crafting table with an inventory full of sugarcane.

    Free sugarcane at "/v 2635 T."
    UltiPig and Roslyn like this.
  4. This seems super, incredibly OP... Do you have staff permission on it?
    southpark347 and jkjkjk182 like this.
  5. Yep. So do you. It's more of a carpel tunnel saver than a time saver, and no interaction with the game world is allowed while afk no matter how you're doing it, but the mod is straight off the approved mod list, and there's already staff using some of those scripts. Although I finished writing the first one around the same time I posted it.
    TsuriNeko and Roslyn like this.
  6. From what I understand, as long as you reply if/when I mod PMs you then it's ok. It's the doing it while sleeping that is the issue.
    ShelLuser and Bro_im_infinite like this.
  7. Well it will stop working when you're out of paper, so that should last long enough to sprint to your bed.
    UltiPig, Roslyn and ThaKloned like this.
  8. Harvest Haunted Heads/ Horseman Masks/ Pots of Gold:

    LOG("Candy time!")






    SLOT(1);
    KEY(USE);
    WAIT(100ms);
    SLOT(2);
    KEY(USE);
    WAIT(100ms);
    SLOT(3);
    KEY(USE);
    WAIT(100ms);
    SLOT(4);
    KEY(USE);
    WAIT(100ms);
    SLOT(5);
    KEY(USE);
    WAIT(100ms);
    SLOT(6);
    KEY(USE);
    WAIT(100ms);
    SLOT(7);
    KEY(USE);
    WAIT(100ms);
    SLOT(8);
    KEY(USE);
    WAIT(100ms);
    SLOT(9);
    KEY(USE);
    WAIT(100ms);

    KEY(INVENTORY);
    WAIT(100ms);

    WAIT(50ms);
    SLOTCLICK(36);
    WAIT(50ms);
    SLOTCLICK(27);
    WAIT(50ms);
    SLOTCLICK(36);
    WAIT(50ms);
    SLOTCLICK(37);
    WAIT(50ms);
    SLOTCLICK(28);
    WAIT(50ms);
    SLOTCLICK(37);
    WAIT(50ms);
    SLOTCLICK(38);
    WAIT(50ms);
    SLOTCLICK(29);
    WAIT(50ms);
    SLOTCLICK(38);
    WAIT(50ms);
    SLOTCLICK(39);
    WAIT(50ms);
    SLOTCLICK(30);
    WAIT(50ms);
    SLOTCLICK(39);
    WAIT(50ms);
    SLOTCLICK(40);
    WAIT(50ms);
    SLOTCLICK(31);
    WAIT(50ms);
    SLOTCLICK(40);
    WAIT(50ms);
    SLOTCLICK(41);
    WAIT(50ms);
    SLOTCLICK(32);
    WAIT(50ms);
    SLOTCLICK(41);
    WAIT(50ms);
    SLOTCLICK(42);
    WAIT(50ms);
    SLOTCLICK(33);
    WAIT(50ms);
    SLOTCLICK(42);
    WAIT(50ms);
    SLOTCLICK(43);
    WAIT(50ms);
    SLOTCLICK(34);
    WAIT(50ms);
    SLOTCLICK(43);
    WAIT(50ms);
    SLOTCLICK(44);
    WAIT(50ms);
    SLOTCLICK(35);
    WAIT(50ms);
    SLOTCLICK(44);

    WAIT(100ms);
    TYPE("E");
    WAIT(100ms);

    SLOT(1);
    KEY(USE);
    WAIT(100ms);
    SLOT(2);
    KEY(USE);
    WAIT(100ms);
    SLOT(3);
    KEY(USE);
    WAIT(100ms);
    SLOT(4);
    KEY(USE);
    WAIT(100ms);
    SLOT(5);
    KEY(USE);
    WAIT(100ms);
    SLOT(6);
    KEY(USE);
    WAIT(100ms);
    SLOT(7);
    KEY(USE);
    WAIT(100ms);
    SLOT(8);
    KEY(USE);
    WAIT(100ms);
    SLOT(9);
    KEY(USE);
    WAIT(100ms);

    KEY(INVENTORY);
    WAIT(100ms);

    WAIT(50ms);
    SLOTCLICK(36);
    WAIT(50ms);
    SLOTCLICK(18);
    WAIT(50ms);
    SLOTCLICK(36);
    WAIT(50ms);
    SLOTCLICK(37);
    WAIT(50ms);
    SLOTCLICK(19);
    WAIT(50ms);
    SLOTCLICK(37);
    WAIT(50ms);
    SLOTCLICK(38);
    WAIT(50ms);
    SLOTCLICK(20);
    WAIT(50ms);
    SLOTCLICK(38);
    WAIT(50ms);
    SLOTCLICK(39);
    WAIT(50ms);
    SLOTCLICK(21);
    WAIT(50ms);
    SLOTCLICK(39);
    WAIT(50ms);
    SLOTCLICK(40);
    WAIT(50ms);
    SLOTCLICK(22);
    WAIT(50ms);
    SLOTCLICK(40);
    WAIT(50ms);
    SLOTCLICK(41);
    WAIT(50ms);
    SLOTCLICK(23);
    WAIT(50ms);
    SLOTCLICK(41);
    WAIT(50ms);
    SLOTCLICK(42);
    WAIT(50ms);
    SLOTCLICK(24);
    WAIT(50ms);
    SLOTCLICK(42);
    WAIT(50ms);
    SLOTCLICK(43);
    WAIT(50ms);
    SLOTCLICK(25);
    WAIT(50ms);
    SLOTCLICK(43);
    WAIT(50ms);
    SLOTCLICK(44);
    WAIT(50ms);
    SLOTCLICK(26);
    WAIT(50ms);
    SLOTCLICK(44);

    WAIT(100ms);
    TYPE("E");
    WAIT(100ms);

    SLOT(1);
    KEY(USE);
    WAIT(100ms);
    SLOT(2);
    KEY(USE);
    WAIT(100ms);
    SLOT(3);
    KEY(USE);
    WAIT(100ms);
    SLOT(4);
    KEY(USE);
    WAIT(100ms);
    SLOT(5);
    KEY(USE);
    WAIT(100ms);
    SLOT(6);
    KEY(USE);
    WAIT(100ms);
    SLOT(7);
    KEY(USE);
    WAIT(100ms);
    SLOT(8);
    KEY(USE);
    WAIT(100ms);
    SLOT(9);
    KEY(USE);
    WAIT(100ms);












    KEY(INVENTORY);
    WAIT(100ms);

    WAIT(50ms);
    SLOTCLICK(36);
    WAIT(50ms);
    SLOTCLICK(9);
    WAIT(50ms);
    SLOTCLICK(36);
    WAIT(50ms);
    SLOTCLICK(37);
    WAIT(50ms);
    SLOTCLICK(10);
    WAIT(50ms);
    SLOTCLICK(37);
    WAIT(50ms);
    SLOTCLICK(38);
    WAIT(50ms);
    SLOTCLICK(11);
    WAIT(50ms);
    SLOTCLICK(38);
    WAIT(50ms);
    SLOTCLICK(39);
    WAIT(50ms);
    SLOTCLICK(12);
    WAIT(50ms);
    SLOTCLICK(39);
    WAIT(50ms);
    SLOTCLICK(40);
    WAIT(50ms);
    SLOTCLICK(13);
    WAIT(50ms);
    SLOTCLICK(40);
    WAIT(50ms);
    SLOTCLICK(41);
    WAIT(50ms);
    SLOTCLICK(14);
    WAIT(50ms);
    SLOTCLICK(41);
    WAIT(50ms);
    SLOTCLICK(42);
    WAIT(50ms);
    SLOTCLICK(15);
    WAIT(50ms);
    SLOTCLICK(42);
    WAIT(50ms);
    SLOTCLICK(43);
    WAIT(50ms);
    SLOTCLICK(16);
    WAIT(50ms);
    SLOTCLICK(43);
    WAIT(50ms);
    SLOTCLICK(44);
    WAIT(50ms);
    SLOTCLICK(17);
    WAIT(50ms);
    SLOTCLICK(44);

    WAIT(100ms);
    TYPE("E");
    WAIT(100ms);


    SLOT(1);
    KEY(USE);
    WAIT(100ms);
    SLOT(2);
    KEY(USE);
    WAIT(100ms);
    SLOT(3);
    KEY(USE);
    WAIT(100ms);
    SLOT(4);
    KEY(USE);
    WAIT(100ms);
    SLOT(5);
    KEY(USE);
    WAIT(100ms);
    SLOT(6);
    KEY(USE);
    WAIT(100ms);
    SLOT(7);
    KEY(USE);
    WAIT(100ms);
    SLOT(8);
    KEY(USE);
    WAIT(100ms);
    SLOT(9);
    KEY(USE);
    WAIT(100ms);



    LOG("Candy!");

    Fill your inventory except for the top row with promos and activate.
    UltiPig and Roslyn like this.
  9. Is the mod updated to 1.8 though?
  10. I like this mod, I don't have a sugarcane farm though :/ and, with 1.8 coming literally at any minute... I will definitely look for a macro mod for 1.8(or use whatever ends up on the approved mods list) as I have so many good uses for macros. <3
  11. I have added "Access - Everyone" signs to the sugarcane farm at "/v 2635 T."

    I think the mod is, but someone else I spoke with had a little trouble with 1.8 Liteloader. I haven't tried yet, myself, but I did write these particular scripts to be ready for 1.8.
  12. Make sure you've tested this for a long period of time - there's a chance it could disconnect you for hacking if it does the actions too fast.
    jkjkjk182 likes this.
  13. Has anyone actually confirmed this works?
  14. Also this can be optimized to one function - look up the CRAFT() function.
    cadgamer101 and jkjkjk182 like this.
  15. The craft function never works for me or a couple of the other people I've shared it with. It's super buggy and mostly just throws things on the floor, though some people seem to have no trouble with it. For me it's usually waaay slower than doing it manually, too, and is limited to like 16 stacks of items without creating loops. If it works for you though. :p

    It won't. The only one faster than what I can do manually is the crafting one. I guess I could artificially slow it down. The others are about the same as doing it manually, just saves your wrist some work. A couple of those I've been using for months now. Is getting kicked for crafting too fast even a thing?
    The one for Haunted Heads can occasionally (if you are lagging) "throw" your items, which causes EMC to mail them to you if they are soulbound. No matter how long I make the delays, lag seems to make it happen sometimes. If you're using it with Pots of Gold (not soulbound), maybe go somewhere private, and not /spawn in case you toss one. :p
    southpark347 likes this.
  16. So it auto trades for you? *gets macros mod again* :p
    fishmeal likes this.

  17. I used it for the longest time.
    JesusPower2 likes this.
  18. Macro / Keybind Mod

    One of EMC's Official Approved Mods. But has certain limitations on its use due to its Extremely Powerful nature. These limitations include:
    • Absolutely no AFK circumvention.
    • Absolutely no AUTO-CLICK scripts.
    ---

    You're telling me that the AUTO-CLICK prohibition didn't include calls to function slotclick ?
    Wow.
    ScufIsAOriginal likes this.
  19. Is this a virus?
  20. Also, I would like to add that Aikar himself said in Mumble (during the Thanksgiving turkey killing spree), Auto-Click macros are 'ok' if you are just using them to prevent Carpal Tunnel. You just had to be able to reply when a staff pm'd you.