For the game Minecraft using the mod ComputerCraft
NOTE: Instructions focused on Windows 7 since this is where I'm doing this stuff. PC be my gaming platform. The scripts work wherever.
After having successfully installed the mod (this video helped me), create a mining turtle, access its console and type label set {{name}}
where {{name}}
is the name of your turtle. Choose a cute name. Save and quit.
Go to folder %APPDATA%\.minecraft\config
, edit the file CCTurtle.cfg
and set B:turtlesNeedFuel=false
so you don't have to manage fuel (These scripts relay on this fact).
Go to folder %APPDATA%\.minecraft\saves\{{name_of_your_save}}\computer
and you should see numbered folder(s) and labels.txt. The file labels.txt will tell you which folder belongs to which turtle. In this folder throw whatever script you want to use. Then you execute the script from the turtle's console.
Don't use the internal console for editing since the editor's functionalities are non-existent. In Windows you can use gvim and even copy over your settings from your OS X environment (it's still vim), that's what I did. Then you play the game windowed and maximized, and the editor in the other monitor. Profit.
I recommend reading/watching:
In a hurry? Already know another imperative programming language? then check:
That's enough to be dangerous