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

the dig command of turtles not working

Started by dolphinia73, 09 February 2013 - 02:56 PM
dolphinia73 #1
Posted 09 February 2013 - 03:56 PM
Title: the dig command of turtles not working

When trying to use the dig command I get no such program. I have tried it as dig, dig down, dig up, digdown, digup, digDown, digUp, and many other combinations with capital and lower case letters, with and without a space in between. Nothing seems to work. What do I have to do to get the dig functionality in my turtles?
NumberBoxGamer #2
Posted 09 February 2013 - 04:23 PM
One thing you might want to try first is doing

turtle.dig()

Make sure you have the parentheses, or it will not work. If it persists, then it might be because it does not have fuel, or is not able to mine there. If it is the latter it should be returning "false" when you use it.
Kingdaro #3
Posted 09 February 2013 - 04:40 PM
One thing you might want to try first is doing

turtle.dig()

Make sure you have the parentheses, or it will not work. If it persists, then it might be because it does not have fuel, or is not able to mine there. If it is the latter it should be returning "false" when you use it.
Should probably specify that this is done in the "lua" program.
dolphinia73 #4
Posted 09 February 2013 - 06:11 PM
I guess I am just not understanding this, I went into the lua file and under help it shows that turtle.dig() is there, but when I am in game and input the dig command to a turtle it says no such program, same thing with place. What am I doing wrong? I am using the computer craft version 1.481 but can not get the turtles to dig… please help
The_Awe35 #5
Posted 09 February 2013 - 06:54 PM
okay, try this. place your turtle down. open it up. enter "lua" the lua interactive prompt should show up. now, enter "turtle.dig()" (dont use the quotes). It has to be spelled the exact same for it to work, parenthesis included. If there was a block in front of it, it should have broken it. if you enter "turtle.digDown()" or "turtle.digUp()" breaking the blocks above or below it respectively. Now, exit lua by entering "exit()". create a program by entering "edit (program name)" you can now enter any of those commands, in any order. press ctrl, and save the program. press ctrl again and exit. start the program you just made by entering the name of the program you made. it should now dig, dig up, or below, depending on what you entered.
I hope this helped you.

Edit: Rereading this, it now seems like you tried to use it as a program just from startup. you can't do that. You either need to use it in lua, or make a program and use it there.
ComputerCrafter #6
Posted 09 February 2013 - 06:59 PM
  1. Fire up your turtle
  2. Type edit dig
  3. Now you should be editing a new program.
  4. Type turtle.digDown
  5. Press ctrl
  6. Press enter
  7. Press ctrl
  8. Press the right arrow key
  9. Press enter
  10. Put coal in the very bottom right slot in the turtle's inventory (Or any fuel)
  11. Type dig
  12. Press enter
  13. It should dig down :)/>
Happy coding!
Lyqyd #7
Posted 09 February 2013 - 07:05 PM
  1. Fire up your turtle
  2. Type edit dig
  3. Now you should be editing a new program.
  4. Type turtle.digDown
  5. Press ctrl
  6. Press enter
  7. Press ctrl
  8. Press the right arrow key
  9. Press enter
  10. Put coal in the very bottom right slot in the turtle's inventory (Or any fuel)
  11. Type dig
  12. Press enter
  13. It should dig down :)/>/>
Happy coding!

This is incorrect. Fuel is not required to dig, and placing fuel in any slot but not doing anything else with it obviously won't do anything. Also, you would need to have the parentheses to actually call the digDown function at all!