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

Arithmetic Error in Turtle Program

Started by Aiden, 29 June 2013 - 05:20 PM
Aiden #1
Posted 29 June 2013 - 07:20 PM
So I've been working on a system that works like this.

tell computer which food you want
computer tells turtle to retrieve item from chest via rednet
turtle drops item into enderchest

All but one part is working; The turtle either doesn't stop when it supposed to, or, if I alter the code slightly; it moves one block and prints this error; "Attempt to perform arithmetic __sub on number and nil"

I'm still figuring how to put up my codes, so I'll just create this post for now and add the code in a bit.

Thanks for your help.

Ok so I can't figure out how to show you guys my code, any help with that?

Thanks again
Lyqyd #2
Posted 02 July 2013 - 01:46 PM
Split into new topic.

Copy and paste the code into your post or upload it to pastebin and link to it here.