I'm not updating this project anymore, but feel free to fork or pull request.
This is a farm bot for pixels.xyz [For education purpose only] This will plant seeds and watering, wait for xx seconds and harvest for you infinity loop. Not yet imprement for official released (still looking for the best solution) You can go to your own farm or free farm plots at the north map (only 4 plots) and use popberry for starting. Then after you get enough money, you can get yourself own land and soils to have more plots to plant.
pip install -r requirements.txt
You need to walk your avatar to be in range to farm (currently won't walk to the plots automatic) Don't forget to replace your sample folder with the new sample.default (You can copy only subfolder and files that you don't have in your sample folder)
There are default configurations that suit my screen, but you can adjust to suit your screen. Adjust values inside config.txt file to suit your screen and run bot smoothly.
Name | Description | Type | Default | Options |
---|---|---|---|---|
PLANT_TYPE | Which plant to use | Option | popberry | popberry, carrot, butterberry, grainbow |
START_MAP_WALK_DIR | To move when start the new map in which direction | Option | down | down, up, left, right |
START_MAP_WALK_STEP | How many seconds will you walk at the start of the new map | Second | 0.1 | |
WARP_NEAR_DECISION | How many screen pixels to decide that you are near the warp enough to be able to go through it | Pixel | 150 | |
WARP_NEAR_STEP | How many seconds for each walk try to go to the warp | Second | 0.3 | |
WARP_NEAR_TRY_LIMIT | Maximum times to try to go to warp | Count | 100 | |
EMPTY_CONFIDENCE | Percentage confidence to find matching empty.png image on screen | Percentage | 0.6 | |
GROW1_CONFIDENCE | Percentage confidence to find matching grow1.png image on screen | Percentage | 0.8 | |
GROW2_CONFIDENCE | Percentage confidence to find matching grow2.png image on screen | Percentage | 0.8 | |
FULL_CONFIDENCE | Percentage confidence to find matching full.png image on screen | Percentage | 0.75 | |
DRY_CONFIDENCE | Percentage confidence to find matching dry.png image on screen | Percentage | 0.75 | |
ROTTEN_CONFIDENCE | Percentage confidence to find matching rotten.png image on screen | Percentage | 0.8 | |
ROTTEN2_CONFIDENCE | Percentage confidence to find matching rotten2.png image on screen | Percentage | 0.9 | |
FERTILIZE_CONFIDENCE | Percentage confidence to find matching fertilize.png image on screen | Percentage | 0.9 | |
WARP_CONFIDENCE | Percentage confidence to find matching warp.png image on screen | Percentage | 0.7 | |
AVATAR_CONFIDENCE | Percentage confidence to find matching avatar.png image on screen | Percentage | 0.9 | |
AVATAR2_CONFIDENCE | Percentage confidence to find matching avatar2.png image on screen | Percentage | 0.9 | |
REFILL_AMOUNT_PER_MAP | How many times to refill energy on each map | Count | 10 | |
WAIT_DURATION_AFTER_WARP | How many second to wait after warp | Second | 10 | |
WAIT_DURATION_AFTER_WATER | How many second to wait after water | Second | 60 | |
MOVEMENT_DURATION | How many second to move mouse from one position to another (For smooth movement) | Second | 0.3 | |
RANDOM_CLICK_SIZE | To prevent bot detection it will slightly random click position | Pixel | 5 | |
WALK_TO_ENABLED | (Alpha) Enable walk to target (plant, watering, harvest, fertilize) before do the action to prevent too far from target | Enable | 0 | 0,1 |
KEY_SHORTCUT_ENABLED | (Alpha) Enable use key shortcut to select tools instead of click on screen (This will be faster to do actions but need some specific config) | Enable | 0 | 0,1 |
KEY_SHORTCUT_WATERING | (Alpha) Shortcut key of the watering can (position of watering can in your inventory) | Number | 1 | 1-6 |
KEY_SHORTCUT_SCISSOR | (Alpha) Shortcut key of the scissor (position of scissor in your inventory) | Number | 2 | 1-6 |
KEY_SHORTCUT_SEED | (Alpha) Shortcut key of the seed (position of seed in your inventory) | Number | 3 | 1-6 |
KEY_SHORTCUT_FRUIT | (Alpha) Shortcut key of the fruit (position of fruit in your inventory) | Number | 4 | 1-6 |
KEY_SHORTCUT_FERTILIZE | (Alpha) Shortcut key of the fertilize (position of fertilize in your inventory) | Number | 5 | 1-6 |
WALK_TO_ENABLED
configKEY_SHORTCUT_ENABLED
configKEY_SHORTCUT_WATERING
configKEY_SHORTCUT_SCISSOR
configKEY_SHORTCUT_SEED
configKEY_SHORTCUT_FRUIT
configKEY_SHORTCUT_FERTILIZE
configDRY_CONFIDENCE
configWAIT_AFTER_WATER
configMOVEMENT_DURATION
configAVATAR_CONFIDENCE
and AVATAR2_CONFIDENCE
configsPLANT_TYPE
and ROTTEN2_CONFIDENCE
configsRANDOM_CLICK_SIZE
configsWAIT_DURATION_AFTER_WARP
configsSTART_MAP_WALK_DIR
and START_MAP_WALK_STEP
configs