2 posts
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?
3 posts
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.
1688 posts
Location
'MURICA
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.
2 posts
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
71 posts
Location
Nerdfightaria Island
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.
46 posts
Posted 09 February 2013 - 06:59 PM
- Fire up your turtle
- Type edit dig
- Now you should be editing a new program.
- Type turtle.digDown
- Press ctrl
- Press enter
- Press ctrl
- Press the right arrow key
- Press enter
- Put coal in the very bottom right slot in the turtle's inventory (Or any fuel)
- Type dig
- Press enter
- It should dig down :)/>
Happy coding!
8543 posts
Posted 09 February 2013 - 07:05 PM
- Fire up your turtle
- Type edit dig
- Now you should be editing a new program.
- Type turtle.digDown
- Press ctrl
- Press enter
- Press ctrl
- Press the right arrow key
- Press enter
- Put coal in the very bottom right slot in the turtle's inventory (Or any fuel)
- Type dig
- Press enter
- 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!