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.
- Installed Python 2.7+ (https://www.python.org/downloads/)
- OS: Windows 10 recommended
- Install Python if you don't already installed.
- Clone the repository to a folder on your PC.
- Open Powershell and go to the folder that you extracted from step 2
- Run this command in Powershell to install required libraries
pip install -r requirements.txt
- Copy config.txt.default to config.txt file
- Copy sample.default to sample folder
- Captured your Pixels game screen and crop it just like sample images on each one (avatar.png will use your avatar with least background).
- Start the bot by double click at pixelsbot.py or use command python pixelsbot.py in Powershell (You need to open the game at maximized on this step).
- If it not doing right, you need to adjust configurations in config.txt to fir your screen. (You need to change the values and try few times until it works) This should be one time work.
- If you want to stop you just open something to hide the game screen and close your running script window.
** 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 |
- This bot is created very quickly and might have some glitchs or bugs.
- If you would like to donate me that will be really appreciated. You can send ETH, DAI, USDT, USDC to this crypto currency wallet below: 0xbf20064C795362e7A87F6d21fe3C57Bd99e4a9A5
- Added grainbow type sample image
- You can now config PLANT_TYPE to grainbow
- You can now config to use shortcut key to select tools instead of click on screen (Alpha)
- Added
WALK_TO_ENABLED
config - Added
KEY_SHORTCUT_ENABLED
config - Added
KEY_SHORTCUT_WATERING
config - Added
KEY_SHORTCUT_SCISSOR
config - Added
KEY_SHORTCUT_SEED
config - Added
KEY_SHORTCUT_FRUIT
config - Added
KEY_SHORTCUT_FERTILIZE
config
- Added popberry type sample image
- Added butterberry type sample image
- You can now config PLANT_TYPE to popberry or butterberry
- Added watering system
- Added dry.png sample image
- Added
DRY_CONFIDENCE
config - Added
WAIT_AFTER_WATER
config - Added
MOVEMENT_DURATION
config
- Disabled warp to next farm
- Update support new version
- Update avatar locate instead of name
- Added avatar.png sample image
- Added avatar2.png sample image
- Added
AVATAR_CONFIDENCE
andAVATAR2_CONFIDENCE
configs
- Added plant type gold
- Added
PLANT_TYPE
andROTTEN2_CONFIDENCE
configs
- Added slight random click feature
- Added
RANDOM_CLICK_SIZE
configs
- Added rotten.png sample image
- Added clean rotten out when harvest
- Added
WAIT_DURATION_AFTER_WARP
configs
- Added config file and sample default
- Added
START_MAP_WALK_DIR
andSTART_MAP_WALK_STEP
configs - Fixed error when character not found
- Added fertilize bot to loop harvest, plant, fertilize, refill energy on the same map until run out of fertilize
- Added sameple images of fertilize, grow1, grow2
- Added walk to warp feature to find most right warp on the screen and walk toward it
- Inital project