This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Abstract's profile picture

turtle slot selection

Started by Abstract, 06 May 2012 - 01:46 PM
Abstract #1
Posted 06 May 2012 - 03:46 PM
How can I make my turtle select another slot of Items to place?
Cloudy #2
Posted 06 May 2012 - 04:29 PM
Type "help turtle" in the console. That will give you your answer.
Abstract #3
Posted 06 May 2012 - 06:48 PM
sry for that, I'm stupid as hell^^ anyways, i've got another problem now, I always get an "too long without yielding error" how can I fix this (and are there any ways to copy+paste the code on my local machines onto the forums?)
MysticT #4
Posted 06 May 2012 - 07:33 PM
You have to make your program yield for events sometime, you can't have it in an infinite loop. There's a couple of ways to do it, one would be to use sleep(0), another one is adding this:

os.queueEvent("fake")
os.pullEvent("fake")
that would solve the error.
For the copy-paste, you can open the files in .minecraft/saves/<YourWorld>/computer/<ID> where ID is the id of the computer wich you want to access the files.
Abstract #5
Posted 07 May 2012 - 01:04 PM
thanks, worked fine^^ also good to know where the computerprograms are located, now I'll never lose a file again