This is a quick guide to setup an AFK clicker in Minecraft. An example of where you might want to use this would be a zombie or skeleton xp farm. You can use this to automatically swing your sword every second or 2. Then you can leave the computer, grab some lunch, and when you come back you will have a few more levels.
Works for Java and Bedrock on Windows only.
AutoHotkey
You can download AutoHotkey at this link. Follow the directions from AutoHotkey to install it.
Auto Clicker Script
You can get the script from this link. Click the Download Zip button in the top right to download. Unzip the script file on your desktop.
Simply double-click the script and it should start in the background. You will see a "H" logo in your taskbar, this lets you know the script is running.
Ctrl+K
Start clickingCtrl+S
Stop clickingCtrl+Q
Quit the script. Shutsdown and other commands will not work until you start the script again.
You will need to open the script file in a text editor like notepad. Right click on the script file and go to Open with
to select your editor of choice.
Change click delay
Find the line that says Sleep
. This time is in milliseconds, 1000 = 1 second. The default is 2 seconds.
Change to right click
Find the line that says Click
. Change this line to Click, right
.