Your paste for the file 'controller' is private, see here.Otherwise, the Turtle Client looks good - Just for future reference, it's nice to make your code look nice by
indenting.
e.g
if command == 'up' then
turtle.up()
end
I would also recommend the use of '
elseif', because there can only be one case per received rednet message, so you really don't need to check for all of them.
e.g
if command == 'up' then
turtle.up()
elseif command == 'down' then
turtle.down()
elseif command == 'forward' then
turtle.forward()
elseif command == 'back' then
turtle.back()
elseif command == 'left' then
turtle.turnLeft()
elseif command == 'right' then
turtle.turnRight()
elseif command == 'fuel' then
turtle.select(16)
turtle.refuel()
end
Another thing that would make/break this program (if it had the controller) is the ability to dig & place (with up varieties), and select (maybe clicking the button and then entering the slot number).
Also, where you have
id, command = rednet.receive()
I would recommend checking to see if the commands are coming from your pocket computer, like so.
--Run program 'id' on Pocket Computer to get id number.
id, command = rednet.receive()
if id == 1337 then -- This checks the received id to make sure you can only send commands.
if command == "up" then
turtle.up()
elseif command == "other commands" then
--etc
end
end
This is useful because if someone else is receiving messages, they can broadcast these same commands and then potentially control your turtle.
Otherwise it looks good keep working on this homie :)/>.