Posted 03 May 2012 - 07:20 PM
Hi guys ive made a script that makes it easy to handle the turtle without having to edit your lines in the game.
it uses a program called autohotkey.
when you have autohotkey installed you can just write a file like test.ahk and paste this code in it.
after that just run the code.
If you add a file next to it called "code.lua" you can paste your code into the code.lua
and once you hit The home key it starts to print the contents to minecraft (you must have a minecraft active for this to work)
it uses a program called autohotkey.
when you have autohotkey installed you can just write a file like test.ahk and paste this code in it.
after that just run the code.
If you add a file next to it called "code.lua" you can paste your code into the code.lua
and once you hit The home key it starts to print the contents to minecraft (you must have a minecraft active for this to work)
; This script can be run in autohotkey. look at http://www.autohotkey.com
; Insert writes the code from the file "code.lua" to your screen
; Home deletes the ingame file and ads the new one under the name "script"
; And the other keys are :
; look at the arrows of the numpad those are the directions
; 8 = forward, 6 right, 2 back, 4 left
; + = up
; - = down
; 0 = dig forward
; * = dig up
; / = dig down
; pageup = go up until you hit something
; pagedown = go down until you hit something
; all these codes should work in the lua enviroment
; or by adding them in the editor
; LOOK OUT !! when you enter a command in the lua editor you must wait
; with the next command until the last one is finished
Home::
Send rm script{enter}
Sleep 1000
Send edit script{enter}
Sleep 1000
FileRead, Contents, *t code.lua
Send %Contents%
Send {Ctrl} {enter} {Ctrl} {Right} {enter}
return
Ins::
FileRead, Contents, *t code.lua
Send %Contents%
return
NumpadDiv::
Send turtle.digDown(){enter}
return
NumpadMult::
Send turtle.digUp(){enter}
return
Numpad0::
Send turtle.dig(){enter}
return
PgDn::
Send while turtle.detectDown() == false do turtle.down() end
return
PgUp::
Send while turtle.detectUp() == false do turtle.up() end
return
NumPad2::
Send turtle.back(){enter}
return
NumPad8::
Send turtle.forward(){enter}
return
NumPad4::
Send turtle.turnLeft(){enter}
return
NumPad6::
Send turtle.turnRight(){enter}
return
NumPadAdd::
Send turtle.up(){enter}
return
NumPadSub::
Send turtle.down(){enter}
return