// ==UserScript== // @name Plant random berry and auto harvest - pokeclicker.com // @namespace Violentmonkey Scripts // @match https://www.pokeclicker.com/ // @grant none // @version 1.8 // @author DrAK // @description Automatically plant and harvest berries. // @downloadURL none // ==/UserScript== function loopFarm() { var farmLoop = setInterval(function () { for (let i = 0; i < 25; i++) { if (i == 12) { //leave middle empty App.game.farming.harvest(i, true); i++; } if(App.game.farming.plotList[i].stage() == 4 && App.game.farming.plotList[i].age > (App.game.farming.plotList[i].berryData.growthTime[4] * 0.7) ) { App.game.farming.harvest(i, true); App.game.farming.plant(i, Math.floor(Math.random() * (App.game.farming.highestUnlockedBerry()+0.25)), true); } } }, 5000); } loopFarm();