Macro/Keybind Mod help

Discussion in 'Programming' started by andrejonas, Jan 24, 2020.

  1. Hello so I'm currently trying to create a Macro which auto farms and also auto sells when my inventory is full and so far I have this codde ;
    Code (Text):
    $${
    IF(@farm);
    LOG("&2[%PLAYER%] &CarrotFarm disabled.");
    UNSET(@farm);
    STOP;
    ELSE;
    SET(@farm);
    LOG("&2[%PLAYER%] &CarrotFarm enabled.");
    DO;
        SLOT(9);
        PICK("Harvest_hoe");
        if(%HIT_AGE% == 7)
            key(attack)
            wait(1t)
            if(%HIT_ID% == DIRT)
                if(%ITEM% == "carrot")
                    key(use)
                    wait(5t)
               endif;
            endif;
        endif;
                ifmatches(%CHATCLEAN%, "Unable to harvest crop, your inventory is full!")
                pick(carrot)
                do;until(%ITEM%=="Carrot")
                echo("/sell all")
                do;until(%ITEM%!="Carrot")
                pick(diamond_hoe)
            endif;
    WHILE(@farm);
    ENDIF;
    }$$

    But my problem is that the auto sell does not work when the inventory is full or when the chat message " -Unable to harvest crop, your inventory is full!" I've been trying for many hours now and I cannot figure it out. Anyone of you got any ideas on how to get this to work? idk if this is the correct place to post but I'm trying my luck