Skip to content

Instantly share code, notes, and snippets.

@mrk21
Created November 10, 2018 17:37
Show Gist options
  • Save mrk21/e278f166d7a37815bba89248597fe0a4 to your computer and use it in GitHub Desktop.
Save mrk21/e278f166d7a37815bba89248597fe0a4 to your computer and use it in GitHub Desktop.
on run
repeat
set pid to executeAutoClicker()
log pid
delay 5
activateMinecraft()
delay 1
toggleAutoClick()
delay 60
killAutoClicker(pid)
delay 5
end repeat
end run
on activateMinecraft()
tell application "System Events"
tell (first process whose name is "java")
set frontmost to true
delay 1
key code 53 -- escape
end tell
end tell
end activateMinecraft
on executeAutoClicker()
set appPath to "~/Downloads/RenderFX-3.0.0/RenderFX-3.0.0.jar"
set pid to do shell script "java -jar " & appPath & " &> /dev/null & echo $!"
return pid
end executeAutoClicker
on toggleAutoClick()
tell application "System Events"
key code 100 -- F8
end tell
end toggleAutoClick
on killAutoClicker(pid)
do shell script "kill " & pid
end killAutoClicker
@mrk21
Copy link
Author

mrk21 commented Nov 10, 2018

What's this

This script is in order to execute/exit Render(fx) on Minecraft automatically. The reason that I implement this script is Render(fx) hang up when it executed long time.

How to use

  1. Download Render(fx)
  2. Set the config of Render(fx)
  3. Run Minecraft
  4. Prepare the cursor position for auto click
  5. Run this script

Refer to

Render(fx)

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