// ==UserScript== // @name Plant random berry and auto harvest - pokeclicker.com // @namespace Violentmonkey Scripts // @match https://www.pokeclicker.com/ // @grant none // @version 1.5 // @author DrAK // @description Automatically plant and harvest berries. // @downloadURL none // ==/UserScript== var whichBerry = Math.floor(Math.random() * 8); 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] / 2) { App.game.farming.harvest(i, true); } App.game.farming.plant(i, Math.floor(Math.random() * App.game.farming.highestUnlockedBerry()), true); } }, 5000); } loopFarm();