Skip to content

Instantly share code, notes, and snippets.

@benhovinga
Last active June 18, 2024 06:33
Show Gist options
  • Save benhovinga/3d502d235750b594870635664898eb31 to your computer and use it in GitHub Desktop.
Save benhovinga/3d502d235750b594870635664898eb31 to your computer and use it in GitHub Desktop.

Minecraft AFK Clicker

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.

Prerequisites

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.

Running the script

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.

How to use

  • Ctrl+K Start clicking
  • Ctrl+S Stop clicking
  • Ctrl+Q Quit the script. Shutsdown and other commands will not work until you start the script again.

How to modify the script

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment